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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
codyraptor
Resolver I
Resolver I

Cumulative total measure

I'm trying to create a cumulative total measure.  The following is what I have...

 

Developed Exp Disp Cnt = CALCULATE([Exp Disp Count],FILTER(ALLSELECTED(Invoice),Invoice[Days Developed]<=MAX(Invoice[Days Developed])))

 

This is what I get just using the Exp Disp Count measure....

 

 

 

No Cumulative.PNG

 

This is what I get when using the cumulative measure above...

Cumulative.PNG

 

It is obviously giving me the total by days developed.  What I want is for it to cumulate by days developed...but also by date.  Another words...201610 should show 14562 for 30days...and 14563 for 60days.  Suggestions?  Thanks!!

1 ACCEPTED SOLUTION
codyraptor
Resolver I
Resolver I

I think I might have figured out the issue with the following calculation...

Developed Exp Disp Cnt = CALCULATE([Exp Disp Count],FILTER(GROUPBY(ALLSELECTED(Invoice),'Dispatch Date'[FULL_DATE],Invoice[Days Developed]),Invoice[Days Developed]<=MAX(Invoice[Days Developed])))

 

However...for some reason the 'total' is not adding up correctly.

 

I have 2 values...29116 + 25061 that should equal 54177....but the total is 53440??  The measure I'm using to calculate is 

calculate(Distinctcount(Dispatch ID),grss amnt <> 0)   For some reason BI gives the correct number...but totals them incorrectly?

View solution in original post

2 REPLIES 2
codyraptor
Resolver I
Resolver I

I think I might have figured out the issue with the following calculation...

Developed Exp Disp Cnt = CALCULATE([Exp Disp Count],FILTER(GROUPBY(ALLSELECTED(Invoice),'Dispatch Date'[FULL_DATE],Invoice[Days Developed]),Invoice[Days Developed]<=MAX(Invoice[Days Developed])))

 

However...for some reason the 'total' is not adding up correctly.

 

I have 2 values...29116 + 25061 that should equal 54177....but the total is 53440??  The measure I'm using to calculate is 

calculate(Distinctcount(Dispatch ID),grss amnt <> 0)   For some reason BI gives the correct number...but totals them incorrectly?

K...I figured it out.  The data for Dispatch ID was set to 'whole number' rather than 'text'...so it was doing something funky to the calculation.  I'll keep this posted just in case it helps someone.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors