Forum Discussion
Comparing values to same period last year
- 5 years ago
tWdex , Best is to create a date table and compare using measures
measures
Current = sum(Table[hours])
Year behind hours= CALCULATE([Current ],dateadd('Date'[Date],-1,Year))
Year behind hours= CALCULATE([Current],SAMEPERIODLASTYEAR('Date'[Date]))Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uATo 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.
tWdex , Best is to create a date table and compare using measures
measures
Current = sum(Table[hours])
Year behind hours= CALCULATE([Current ],dateadd('Date'[Date],-1,Year))
Year behind hours= CALCULATE([Current],SAMEPERIODLASTYEAR('Date'[Date]))
Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA
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.
Thanks! It's working and I understood what error I was making