When calculating the average sales per day, I have the following measure for NumOfDays
:
NumOfDays = IF (
[Sales Amount] > 0;
COUNTROWS ( Date )
)
What this is doing is removing the number of days for those dates when there are no sales.
Thus, I have the following visual:
As you can see, the total is wrong. This is due to the fact that the database has more years than those shown in the matrix. How can I define the granularity for "day" when calculating NumOfDays? That is, how can I count the rows for those days with sales only?
Thanks!
I recommend two things:
This calculation may work - but you may need to specify the actual date column inside your Date table.
If there is more to the problem, let me know what exactly you are expecting to see in your matrix.