I'm facing the problem with FY PY calculations.
In my model I have a fact table with 2 connected dimensions:
- Order Date
- Posting Date
In the model already exists the measure which calculate the PY value (I use crossfilter to allow using 2 date dimensions in one measure):
IF(ISCROSSFILTERED('Posting Date'),
CALCULATE([Sales Order Value Actual], SAMEPERIODLASTYEAR('Posting Date'[Date])),
CALCULATE([Sales Order Value Actual], SAMEPERIODLASTYEAR('Order Date'[Date])))
The same way I decided to create FY PY calculations however I'm facing problem with showing up years without the data (1900 and 2000), as you can see it below. I can't remove the dates from the date dimension. How can I exclude 1900 and 2000 (these years doesn't hold any data)?