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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.