Hallo everyone,
We are currently working in a project where the customer made a request where we are not sure if we found the best solution.
The powerpivot model is about sales data. The sales data have multiple date dimensions (mainly shipment date and posting date). The customer want’s to be able to use multiple date dimensions in the same report.
We created a couple of time-intelligence-functions (such as Revenue Previous Year = IF(ISERROR(FIRSTDATE(SAMEPERIODLASTYEAR('Dim Posting Date’[Posting Date]])));BLANK();
CALCULATE([Revenue]; ALL('Dim Posting Date‘); SAMEPERIODLASTYEAR('Dim Posting Date’[Posting Date]))
)
This is working when the customer is filtering in the posting date. However if they decide that they want to slice and dice according to the shipment-date the previous-year measures of course won’t work.
I came up with the following possible solutions:
Thanks in advance!
Regards,
julianwi
We are currently working in a project where the customer made a request where we are not sure if we found the best solution.
The powerpivot model is about sales data. The sales data have multiple date dimensions (mainly shipment date and posting date). The customer want’s to be able to use multiple date dimensions in the same report.
We created a couple of time-intelligence-functions (such as Revenue Previous Year = IF(ISERROR(FIRSTDATE(SAMEPERIODLASTYEAR('Dim Posting Date’[Posting Date]])));BLANK();
CALCULATE([Revenue]; ALL('Dim Posting Date‘); SAMEPERIODLASTYEAR('Dim Posting Date’[Posting Date]))
)
This is working when the customer is filtering in the posting date. However if they decide that they want to slice and dice according to the shipment-date the previous-year measures of course won’t work.
I came up with the following possible solutions:
- Do not allow multiple date dimensions on one report - would be a big limitation
- Create multiple (one per date dimension) Previous Year-Measures – this would not be very comfortable for users
- Change the measures so that no PY-value would be displayed when more than one date dimension is on the pivot. The measure however would have to be smart enough to change to filtering based on the chosen date dimension
Thanks in advance!
Regards,
julianwi