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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
sathishdgl
Frequent Visitor

TotalMTD , TotalYTD is very slow for a specific table

I created following measure in 2 tables, orders and shipments. Both are showing correct value. However measure in orders loads very fast but same measure formula in shipments is extremely slow

 

TOTALMTD( orders[amount], calendar[date])

 

time : 1524

 

is very fast but 

 

TOTALMTD (ship[amount], calendar[date])

 

is slow

 

time :6454

 

calendar is not marked as date table because it is having duplicates. i don't mind, because it is showing correct values

1 REPLY 1
some_bih
Super User
Super User

Hi @sathishdglDAX functions like TOTAMTD or TOTALYTD are from group Time Intelligence which means the best work on Calendar / Date table. It is good for you to compare performance and similar, but to implement best practice create Calendar / Date table (and mark it without duplicate) and after that check perfomance.

Hope this help, kudos appreciate.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.