Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi all, here i am trying to calculate pareto calculations based on region.
consider if a rank is selected at 50% then i need to calculate the top 50 items sum in the region level and the top 50 items need to be displayed too, if the rank is 90%, then i need to calculate sum for the top 90 items in the region level and the top 90 items need to be displayed too. Rank is dynamic, so how can i achive it in power bi, when the slicer is selected, then according to slicer (rank) selection, i need to calculate top items sum on region levels and those items need to be displayed. Please help me out with this.
Solved! Go to Solution.
Hi @Anonymous ,
I created some data:
Here are the steps you can follow:
1. Modeling – New parameter -- Set the interval size.
2. Create measure.
Rank =
RANKX(FILTER(ALL('Table'),'Table'[Region]=MAX('Table'[Region])),CALCULATE(SUM('Table'[Value])),,DESC,Dense)Flag =
var _top=SELECTEDVALUE('Parameter'[Parameter])
return
IF(
[Rank]<=_top,1,0)Rank =
RANKX(FILTER(ALL('Table'),'Table'[Region]=MAX('Table'[Region])),CALCULATE(SUM('Table'[Value])),,DESC,Dense)
3. Place [Flag]in Filters, set is=1, apply filter.
4. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Anonymous ,
I created some data:
Here are the steps you can follow:
1. Modeling – New parameter -- Set the interval size.
2. Create measure.
Rank =
RANKX(FILTER(ALL('Table'),'Table'[Region]=MAX('Table'[Region])),CALCULATE(SUM('Table'[Value])),,DESC,Dense)Flag =
var _top=SELECTEDVALUE('Parameter'[Parameter])
return
IF(
[Rank]<=_top,1,0)Rank =
RANKX(FILTER(ALL('Table'),'Table'[Region]=MAX('Table'[Region])),CALCULATE(SUM('Table'[Value])),,DESC,Dense)
3. Place [Flag]in Filters, set is=1, apply filter.
4. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 58 | |
| 55 | |
| 43 | |
| 30 | |
| 24 |