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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors