Forum Discussion
Comparing Snapshots current year vs Last year
Hello Experts,
I am trying to Compare Snapshot dates current vs the previous year.
I used SAMEPERIODLASTYEAR and DATAADD but my measure result is blank although there is data for the previous year.
The date table has 2 dates for each month due to snapshots biweekly.
Any suggestions or thoughts ...
Thank you so much .
1 Reply
- amitchandak
Super User
Anonymous , Make sure you are using date table marked as date date with all dates and correct join
example
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.