Reply
Frequent Visitor
Posts: 9
Registered: ‎02-20-2018
Accepted Solution

Cummulative Percentage with filter for Pareto chart

[ Edited ]

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

 

pareto4.PNGData

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:

pareto2.PNGSlicer

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:

pareto22.pngCummulative with slicer

pareto3.PNGPareto

 

Thanks.

 


Accepted Solutions
Super Contributor
Posts: 755
Registered: ‎08-27-2015

Re: Cummulative Percentage with filter for Pareto chart

@ThunderRoad

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

View solution in original post

Highlighted
Frequent Visitor
Posts: 9
Registered: ‎02-20-2018

Re: Cummulative Percentage with filter for Pareto chart

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

 

 

pareto5.PNGyay!

Thanks a lot for the help @kcantor.

 

 

 

View solution in original post


All Replies
Super Contributor
Posts: 755
Registered: ‎08-27-2015

Re: Cummulative Percentage with filter for Pareto chart

@ThunderRoad

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

Highlighted
Frequent Visitor
Posts: 9
Registered: ‎02-20-2018

Re: Cummulative Percentage with filter for Pareto chart

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

 

 

pareto5.PNGyay!

Thanks a lot for the help @kcantor.