Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
I am having a below table called "Data"
I wanted to calculate YTD and MTD for sales. My data has both 2022 and 2023 data. I created date table and connect with the above table
I used below measure to calculate MTD but no success
MTD = TOTALMTD(SUM(Data[Sales]), 'Date'[Date])
The above MTD calculation is incorrect, it just printing the same value and not adding.
Attached PBIX here https://we.tl/t-xzzcQZ86ku
Can anyone advise what is wrong with my DAX?
Solved! Go to Solution.
I'm wondering why so many beginners opt for such a meaningless, huge calendar date.
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
I'm wondering why so many beginners opt for such a meaningless, huge calendar date.
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!