Forum Discussion
JohnLow
Helper I
5 years agoUsing 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
Helper I
5 years agoBrilliant, thank you.
Ashish_Mathur
Super User
5 years agoYou are welcome.