Hi everyone!
I want to build a pivot table with year as pivot, month and day as dimentions and the KPI that counts distinct CASE_IDs within the day but just simply sums them up for month or year.
So my daily KPI looks at the moment like
COUNT(DISTINCT (CASE WHEN table1.Activity1"=A then table1.CASE_ID ELSE NULL END))
The problem is that I want a simple sum of daily counts for the months and years result. Is there a way to aggregate the values by day in the form
sum(for each day COUNT (DISTINCT (CASE WHEN table1.Activity1"=A then table1.CASE_ID ELSE NULL END)) )?
Thanks!
Best,
Maria
DrWindy:
.
Unfortunately Im not but had a thought when I saw your example.
Kind regards,