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
William_Moreno
Helper II
Helper II

Cumalative column (not measure)

Hello everyone,
I need help to solver this problem! 

 

Unit BussinessCodeValueCumative Value
Chicago10050000150%50%
Chicago10050000220%70%
Chicago10050000315%85%
Chicago10050000410%95%
Chicago1005000055%100%
Paris10050000150%50%
Paris10050000220%70%
Paris10050000315%85%
Paris10050000410%95%
Paris1005000055%100%

 

I've tried to develop a function to create the column Cumulative Value in powerbi, but I  can't do this!
I need that cumulative as a column not as a measure.

Thanks in advanced.

3 REPLIES 3
amitchandak
Super User
Super User

@William_Moreno ,

A new column

 

Column = sumx(filter(Cumm, Cumm[Unit Bussiness] = EARLIER(Cumm[Unit Bussiness]) && [Code] <=EARLIER(Cumm[Code])),[Value])

 

New measure

 

Measure = sumx(filter(ALLSELECTED(Cumm), Cumm[Unit Bussiness] = max(Cumm[Unit Bussiness]) && [Code] <=max(Cumm[Code])),[Value])

 

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

@amitchandak thanks for your post, but I forgot to mention the data are not organized from the top to the bottom, In this case, how can we solver this problem?

Hi @William_Moreno ,

 

In Power Query, Sort your data so that it is ordered correctly, or create an index column and use that in your dax column



I hope this helps,
Richard

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

Proud to be a Super User!


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.