Skip to main content

The error message says " Cannot mix aggregate and non aggregate comparisons or results in "IF" expressions.

 

Here is the formula:

IF [AI Status] = "Pending" THEN DATEDIFF('day', ATTR([DB].[Date]), TODAY()) END

 

the ATTR was automatically added but does nothing when I remove it. I also added a then statement before and still nothing.

1 answer
  1. Nov 20, 2023, 7:18 PM

    Try: IF ATTR([AI Status]) = "Pending" THEN DATEDIFF('day', ATTR([DB].[Date]), TODAY()) END

     

    Best, Don

    (Please, don't forget to click Select as Best or Upvote !)

0/9000