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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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/

Share with Power BI Enthusiasts: 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])))

 

Share with Power BI Enthusiasts: 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/

Share with Power BI Enthusiasts: 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors