Forum Discussion
JohnLow
5 years agoHelper I
Using a measure on a line chart.
Hi, I'm currently having an issue with a measure on a line chart and when I try to run a filter, it just disappears. I created a measure as follows: Measure15 = CALCULATE(SUM('Table (2)'[Bu...
- 5 years ago
- 5 years ago
SAMEPERIODLASTYEAR works best with a Date table, so create a date table (with a date column and year column), link it your fact table, and replace any field in the visuals with appropriate fields from the date table.
Change the measure to :
Measure15 = CALCULATE(SUM('Table (2)'[Budget total]), SAMEPERIODLASTYEAR(TableDates[Date]))Good luck.
JohnLow
5 years agoHelper I
Brilliant, thank you.
Ashish_Mathur
5 years agoSuper User
You are welcome.