Hello Community,
In my data model I have calculated fields: occupancy, occupancy prior year, and year over year Var.
The formula for occupancy prior year is:
=CALCULATE( [Occ %] , SAMEPERIODLASTYEAR( DimDates[Date] ) )
This works fine but I want to be able to be able to apply a filter to do the analysis on the 15th of the month or the last day of the month.
I tried to do do this by adding a column to my DimDates table. I added a Day column, End of Month Column, and 15th Column. The End of Month Column and 15th column are true false a values, so I thought I could just apply these filters to the Pivot Table and limit this to the 15th or the last day of month.
However, I'm getting this error message when I try to apply the filter: 'SAMEPERIODLASTYEAR' only works with contiguous date selections.
Please let me know if you have any suggestions on how I might be able to work around this one.
Thanks!
Chris
In my data model I have calculated fields: occupancy, occupancy prior year, and year over year Var.
The formula for occupancy prior year is:
=CALCULATE( [Occ %] , SAMEPERIODLASTYEAR( DimDates[Date] ) )
This works fine but I want to be able to be able to apply a filter to do the analysis on the 15th of the month or the last day of the month.
I tried to do do this by adding a column to my DimDates table. I added a Day column, End of Month Column, and 15th Column. The End of Month Column and 15th column are true false a values, so I thought I could just apply these filters to the Pivot Table and limit this to the 15th or the last day of month.
However, I'm getting this error message when I try to apply the filter: 'SAMEPERIODLASTYEAR' only works with contiguous date selections.
Please let me know if you have any suggestions on how I might be able to work around this one.
Thanks!
Chris