Forum Discussion
vejas
Helper I
8 years agoCompare Sales
Hello , I want to compare sales from different periods. This is my table My Calendar Table - 2016-01-01 till 2018-12-31 Measures: Sales Total = SUM(Sales[Amount]) Sales Pre...
vejas
Helper I
8 years agoFor Sales Change my solution is
Sales Change = IF(OR(ISBLANK([Sales Total]);ISBLANK([Sales Previous Year]));BLANK();[Sales Total]-[Sales Previous Year])
PaulDBrown
Community Champion
8 years agoWhat I’m saying is that if you use the measure I posted for each of your measures, the table will only display the values you,ve circled in green.
EDIT: Actually, that might filter out the previous years values for 2017. Try the following with the measures:
<<New Measures>> = IF(OR(calendar[year]= YEAR(TODAY()) - 1 , calendar[year] = YEAR(TODAY()) && calendar[month] < MONTH(TODAY())), [<<YOUR OLD MEASURE>>], BLANK())