Forum Discussion
Miska
Helper I
4 years agoGetting Previous Year values for Selected month in SLicer
Hi Experts! I have a report wherein I need to Display a KPI card for Current Year Sales amount based on the Year selected which is single selecte and Month Selection which is a multi Select filt...
- 4 years ago
DATEADD works with any Date Table selection:
But you do need a proper date table with unique, continuous date values
PaulDBrown
Community Champion
4 years agoTry:
Previous year values =
CALCULATE([Your measure], DATEADD(Date Table [Date], -1, YEAR))
Miska
Helper I
4 years agoI have already tried that but the issue here is that the DATEADD needs a continous selection of months in the slicer , cannot do random months for the calculation.
- PaulDBrown4 years ago
Community Champion
DATEADD works with any Date Table selection:
But you do need a proper date table with unique, continuous date values