Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi everyone,
I need DAX formula for calculating previous and current YTD, previous and current QTD and previous and current MTD.
Solved! Go to Solution.
Hi @AishwariyaV
You may try below measures. Below is the similar post for your reference.
Sales_YTD = TOTALYTD(SUM('Table'[Sales]),'Table'[Date])
Sales_YTD_Previous = CALCULATE([Sales_YTD],SAMEPERIODLASTYEAR('Table'[Date]))
https://community.powerbi.com/t5/Desktop/Prior-Year-YTD-won-t-calculate/td-p/463729
Regards,
It is not working
Hi @AishwariyaV
You may try below measures. Below is the similar post for your reference.
Sales_YTD = TOTALYTD(SUM('Table'[Sales]),'Table'[Date])
Sales_YTD_Previous = CALCULATE([Sales_YTD],SAMEPERIODLASTYEAR('Table'[Date]))
https://community.powerbi.com/t5/Desktop/Prior-Year-YTD-won-t-calculate/td-p/463729
Regards,
User | Count |
---|---|
98 | |
89 | |
82 | |
71 | |
67 |
User | Count |
---|---|
114 | |
104 | |
101 | |
72 | |
65 |