Use case:
See a table with two rows:
- Created Projects
- Completed Projects
This is done with a formula field with either “Created” or “Created,Completed”, and a Split function in the report. This is needed because the ones that are completed should also be shown as created. It’s not one or the other.
Next I want a column to show “Last 7 days”. The thing is, depending on the row it should filter for different fields. One is last 7 days based on the Creation Date, and the other on the Done Date. I tried this function:
IF(
SPLIT(
[Count for Analytics],
','
) == 'Created',
COUNTIF(
[Public Id],
[Creation Date (Real)]> ADD_DAY(
DAY(NOW()),
-7
)
),
COUNTIF( [Public Id],
[Done Date]> ADD_DAY(
DAY(NOW()),
-7
)
)
)
Which I think should work, but this error is showing up: Cannot mix aggregate and non-aggregate arguments.
Not sure if there’s a better way to do this, or if I must just do it in two different reports. Open to suggestions!!
Let me know if the need is unclear.
Thanks!