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
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

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

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
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.