cancel
Showing results for
Did you mean:
Frequent Visitor

Cummulative Percentage with filter for Pareto chart

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:

Data

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:

Slicer

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 slicer

Pareto

Thanks.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super Contributor

Re: Cummulative Percentage with filter for Pareto chart

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

Proud to be a Datanaut!

Highlighted
Frequent Visitor

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

yay!

Thanks a lot for the help @kcantor.

3 REPLIES 3
Super Contributor

Re: Cummulative Percentage with filter for Pareto chart

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

Proud to be a Datanaut!

Highlighted
Frequent Visitor

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

yay!

Thanks a lot for the help @kcantor.

Frequent Visitor

Re: Cummulative Percentage with filter for Pareto chart

You Rock! Thanks.

Announcements

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Get your latest community news and announcements.

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Top Kudoed Authors
Users Online
Currently online: 6 members 1,499 guests
Recent signins: