Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
sudhav
Helper V
Helper V

Which DAX function can use in real time projects TOTALMTD or DATESMTD

Hai my dear professionals, in real time projects or real time working , which dax function we can use to calculate cummulative/running total of Month, DatesMTD or TotalMTD

Please repl me 

TIA

1 ACCEPTED SOLUTION

@sudhav , both do the same Job.

datesmtd can be used with calculate.

totalmtd can be used without calculate, you have option to give on filter condition. More than that you need to use calculate

 

I usually use datesmtd

 

refer for more

https://www.reddit.com/r/PowerBI/comments/rr8l0u/totalmtd_vs_calculate_datesmtd_in_dax/

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@sudhav , You need to create date table 

 

For monthly cumulative

MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))

Quarterly cumulative 

QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(('Date'[Date])))

 

yearly

YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))

 

Overall

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

ya sir i know the formulae, but i am asking that which dax function we can use, total mtd or datesmtd

could you please tell me

@sudhav , both do the same Job.

datesmtd can be used with calculate.

totalmtd can be used without calculate, you have option to give on filter condition. More than that you need to use calculate

 

I usually use datesmtd

 

refer for more

https://www.reddit.com/r/PowerBI/comments/rr8l0u/totalmtd_vs_calculate_datesmtd_in_dax/

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

wow, really great video , thankyou so much sir

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.