Forum Discussion
Time Intelligence YTD and Previous year calculation.
Hello there Nanakwame ! You can either use the SAMEPERIODLASTYEAR() or the PARALLELPERIOD() with the same formulas that are your current measures. You can check the following documentation on these two formulas:
https://docs.microsoft.com/en-us/dax/sameperiodlastyear-function-dax
https://docs.microsoft.com/en-us/dax/parallelperiod-function-dax
Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!
You can also check out my LinkedIn!
Best regards,
Gonçalo Geraldes
This is what have for sales PYTD
- goncalogeraldes5 years ago
Super User
Nanakwame I'll give you a few examples:
SalesPYTD = CALCULATE([SalesYTD],SAMEPERIODLASTYEAR('Date'[Date].[Date])) SalesPYTD = CALCULATE([SalesYTD],DATEADD('Date'[Date], -1, year)) or alternatively: SalesPY = CALCULATE([Sales], SAMEPERIODLASTYEAR('Date'[Date].[Date])) SalesPYTD = TOTALYTD([SalesPY], 'Date'[Date].[Date])Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!
You can also check out my LinkedIn!
Best regards,
Gonçalo Geraldes- Nanakwame5 years ago
Helper II
I have the same dax function but it appears to be showing the full year previous sales instead of the same period.