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
JANSAN
Frequent Visitor

Cumulation of the same value doesnt work

Can you help in PowerBi. I made measures which do what they have to do mostly, but there is one thing off about that. I give you my measures:

 

Bruch (kg) = SUM('Unpivoted Bruch'[AnzahlBruch(kg)])

 

 

 

 Cumulative Total = VAR cumulativbruch = [Bruch (kg)] RETURN CALCULATE( [Bruch (kg)], FILTER( ALLSELECTED('Unpivoted Bruch'[Material_Bruch]), [Bruch (kg)] >= cumulativbruch ) ) 

 

The second measure cumulatitve total gives the cumulated values of Bruch(kg).

The one problem I have now is that if there are 2 values of Bruch(kg) which are the same, then the second (same) value wont get cumulated. Example: 1000, 500, 500 My Cumulativ table would give me: 1000,1500,1500 this is wrong I need to fix that.

1 REPLY 1
amitchandak
Super User
Super User

@JANSAN , Try with window function give a second argument

 

example

Cumm Based on net = CALCULATE([Net], Window(1,ABS,0,REL, ADDCOLUMNS(ALLSELECTED('Item'[Brand]), "_net", [Net]),ORDERBY([_net],DESC, [Brand])))

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

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.