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
Anonymous
Not applicable

Cummulative Percentage with filter for Pareto chart

(Link to the pbix: Pareto.pbix)

 

Hi. I've been struggling with this for a while. I've read a lot of answers and blogs but neither of those addressed an issue I'm having. The data: 

 

DataData

The thing is, I need to filter this in the report with a couple of slicers (by Group and Date) so I CAN'T rank the defects in power query or with a calculated column (depending on the slicer I'll have to deal with different data).

 

Now, I've got this:

SlicerSlicer

Using these measures:

 

  • Cumm = CALCULATE(SUM(Table1[Quantity]), FILTER(VALUES(Table1[Defects]), RANKX(ALL(Table1), SUM(Table1[Quantity]), , DESC)))

 

  • Total = CALCULATE(SUM(Table1[Quantity]), ALLSELECTED(Table1))

 

  • Perc = 100 * DIVIDE([Cumm], [Total], 0)

 

  • Rank = RANKX(ALLSELECTED(Table1[Defects]), [Cumm], , DESC)

 

Could someone help me to get the cummulative percentage for the pareto? The end result would be this:

Cummulative with slicerCummulative with slicer

ParetoPareto

 

Thanks.

 

2 ACCEPTED SOLUTIONS
kcantor
Community Champion
Community Champion

@Anonymous

This can help you get what you need. I had the help of some friends to complete this but I now have three functioning paretos that can be filtered, cross filtered, and sliced/diced anyway I need it.

https://community.powerbi.com/t5/Desktop/Pareto-80-20-calculation-for-items-making-up-80-of-Sales/m-p/30715/highlight/true#M10487





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

Proud to be a Super User!




View solution in original post

Anonymous
Not applicable

Man I don't know how I didn't find that post...

 

It worked great! I didn't use your accepted solution though (didn't want to use SUMMARIZE, my table is much smaller anyways). I used this solution.

 

The new measures I used:

 

  • Total_Amount = SUMX(Table1, Table1[Quantity])

 

  • Rank_All = RANKX(ALL(Table1[Defects]), [Total_Amount])

 

  • Pareto_Value = SUMX(TOPN([Rank_All], ALL(Table1[Defects]), [Total_Amount]), [Total_Amount])

 

  • Amount_All = CALCULATE([Total_Amount], ALL(Table1[Defects]))

 

  • Pareto_% = DIVIDE([Pareto_Value], [Amount_All], BLANK())

 

 

yay!yay!

Thanks a lot for the help @kcantor.

 

 

 

View solution in original post

3 REPLIES 3
kcantor
Community Champion
Community Champion

@Anonymous

This can help you get what you need. I had the help of some friends to complete this but I now have three functioning paretos that can be filtered, cross filtered, and sliced/diced anyway I need it.

https://community.powerbi.com/t5/Desktop/Pareto-80-20-calculation-for-items-making-up-80-of-Sales/m-p/30715/highlight/true#M10487





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

Proud to be a Super User!




Anonymous
Not applicable

Man I don't know how I didn't find that post...

 

It worked great! I didn't use your accepted solution though (didn't want to use SUMMARIZE, my table is much smaller anyways). I used this solution.

 

The new measures I used:

 

  • Total_Amount = SUMX(Table1, Table1[Quantity])

 

  • Rank_All = RANKX(ALL(Table1[Defects]), [Total_Amount])

 

  • Pareto_Value = SUMX(TOPN([Rank_All], ALL(Table1[Defects]), [Total_Amount]), [Total_Amount])

 

  • Amount_All = CALCULATE([Total_Amount], ALL(Table1[Defects]))

 

  • Pareto_% = DIVIDE([Pareto_Value], [Amount_All], BLANK())

 

 

yay!yay!

Thanks a lot for the help @kcantor.

 

 

 

You Rock! Thanks.

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.