Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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,
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |