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

Cummulative % of column total

Hi there, 

 

I've got a tricky question. I cound't find any solution on forum. 

I connect to two databases, grab quantity of sales from one source add quantity of sales from the other and I've got TOTAL QUANTITY. 

Then in PRODUCTS table I have all information about products. 
In another measure SALES KG I just multiply TOTAL QUANTITY by weight of each of my products from PRODUCTS table. 

To get % of column total I just divide each row by total weight sold. To this point everything calculates correctly. 

piotr_gor_1-1648454999866.png



Question I've got is how do I get cummulative % CT Sales KG ?

I can't use Date['Date'] <= MAX( Date['Date'] ) cause I don't use dates in this matrix. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@piotr_gor , What I you using if yot are not using date in the matrix

 

You should refer to this blog , I like the cumulative approach there

https://exceleratorbi.com.au/pareto-analysis-in-power-bi/

 

You can use allselected in place of all there

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

View solution in original post

3 REPLIES 3
AilleryO
Memorable Member
Memorable Member

Hi,

 

If you cannlot use the Date['Date'] <= MAX( Date['Date'] ), maybe you can add an index colum to your data to do something like :

VAR Index = SELECTEDVALUE( Index ) or else based on your situation. 

and then

Table['Index'] <= VarIndex

Hope it helps

amitchandak
Super User
Super User

@piotr_gor , What I you using if yot are not using date in the matrix

 

You should refer to this blog , I like the cumulative approach there

https://exceleratorbi.com.au/pareto-analysis-in-power-bi/

 

You can use allselected in place of all there

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

Great website! Thanks. I'm almost there. In some reasons it did calculate cummulative % but the other way around. How do I change that? 


EDIT: ok, I've got it
 piotr_gor_0-1648457584057.png

 

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.