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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
weiyann83
Frequent Visitor

Issue on MDX/DAX Cumulative by Day

Need help on MDX/DAX expert, I want to perform cumulative day by day, not sure why 7/14/2021 start onwards all cumulative data mess up.
 
Expected Result on  7/14/2021 data should be 7030882 + 1080000 = 8,110,882
  
Formula:
Cumulative Daily Progress =
CALCULATE (
SUM ('Test Run'[Pass Count]), DATESMTD ('Test Run'[Updated Date])
)
 
weiyann83_0-1626514761066.png

 

6 REPLIES 6
daxer-almighty
Solution Sage
Solution Sage

Once again 'cause I see you're not carefully reading my messages: https://dax.guide/DATESMTD

Read the article at the link and you'll know why you're getting wrong results.

CNENFRNL
Community Champion
Community Champion

Debug =
CONCATENATEX(
    DATESMTD( 'Test Run'[Updated Date] ),
    'Test Run'[Updated Date] & ":"
        & CALCULATE( SUM( 'Test Run'[Pass Count] ) ),
    "|"
)

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!

Not sure why 7/14/2021 onwards look back 7/7/2021 all value change from 730000 to 420000

 

weiyann83_0-1626571414328.png

 

I've shown you a way to debug; make your own efforts to look into it.


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!

daxer-almighty
Solution Sage
Solution Sage

MDX? Are you working with Multidimensional models or with Tabular where DAX is used?

 

Read this and you'll know why it's messed up.

tabular, sorry is DAX.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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