Forum Discussion
Prior Year Data - Multiple Months
- 6 years ago
Make sure you have a Date table and mark it as a Date table, then you can take advantage of the Time Intelligence functions to easily do your calculation with DATEADD(), SAMEPERIODLASTYEAR(), etc. Please see this post for detailed explanation.
https://exceleratorbi.com.au/dax-time-intelligence-beginners/
If this works for you, please mark it as solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
Make sure you have a Date table and mark it as a Date table, then you can take advantage of the Time Intelligence functions to easily do your calculation with DATEADD(), SAMEPERIODLASTYEAR(), etc. Please see this post for detailed explanation.
https://exceleratorbi.com.au/dax-time-intelligence-beginners/
If this works for you, please mark it as solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
- Anonymous6 years agoNot applicable
you are my hero buddy! Had not heard of SAMEPERIODLASTYEAR(), but it works so well! thanks so much for your help