March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Team,
I have following data.
I have created chart countrywise & city wise. there are couple of other filters too.
I want to show data in 80-20 ration.
1. state wise total vs 80% amount
2. statewise total vs 80% countrows.
please help me on this
Solved! Go to Solution.
Hi @NILU090 ,
In your mind, you're trying to use the 80-20 rule to figure out that 80 percent of sales are made in the top 20 percent of states, right?
In the example data you gave, we used CITY as a demo to help you with your question due to the small variety of STATES. We first use the co-ordering of amounts and cities to ensure that we are adding up from the largest amount, then we add up the values for each different city until we get to 80 percent, and finally find out which cities make up 80 percent of the total.
City rank = RANKX(ALL('80_20_data'),CALCULATE(MAX('80_20_data'[Amount]),ALLEXCEPT('80_20_data','80_20_data'[City])),,DESC)
Cumulative Amount =
DIVIDE(
CALCULATE(SUM('80_20_data'[Amount]),FILTER(ALL('80_20_data'),'80_20_data'[City rank]<=MAX('80_20_data'[City rank]))),CALCULATE(SUM('80_20_data'[Amount]),ALL('80_20_data')),0)
I hope my answer can solve your questions, if you still have more recent questions, you can feel free to contact me me, I will be the first time to reply you after receiving your message!
Hope it helps!
Best regards,
Community Support Team_ Tom Shen
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @NILU090 ,
In your mind, you're trying to use the 80-20 rule to figure out that 80 percent of sales are made in the top 20 percent of states, right?
In the example data you gave, we used CITY as a demo to help you with your question due to the small variety of STATES. We first use the co-ordering of amounts and cities to ensure that we are adding up from the largest amount, then we add up the values for each different city until we get to 80 percent, and finally find out which cities make up 80 percent of the total.
City rank = RANKX(ALL('80_20_data'),CALCULATE(MAX('80_20_data'[Amount]),ALLEXCEPT('80_20_data','80_20_data'[City])),,DESC)
Cumulative Amount =
DIVIDE(
CALCULATE(SUM('80_20_data'[Amount]),FILTER(ALL('80_20_data'),'80_20_data'[City rank]<=MAX('80_20_data'[City rank]))),CALCULATE(SUM('80_20_data'[Amount]),ALL('80_20_data')),0)
I hope my answer can solve your questions, if you still have more recent questions, you can feel free to contact me me, I will be the first time to reply you after receiving your message!
Hope it helps!
Best regards,
Community Support Team_ Tom Shen
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @NILU090 ,
To achieve an 80-20 split, you need to calculate the total amount or countrows for each state and then identify the threshold where 80% of the total is reached.
If I have resolved your question, please consider marking my post as a solution🎉. Thank you!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |