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 nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello!
I made a pareto to show the distribution of spend for suppliers but when I filter to "Top 20 Suppliers, the pareto and ranking are wrong. How do I fix this?
Without Filter:
With Filter:
Here are the formulas I've been using:
This is what the ranking and percentages look like
Hi,
Share the download link of the PBI file.
Hi, how would i do that?
Google Drive link.
Hi @adibhaan98 ,
Please have a try.
Rank =
IF(
HASONEVALUE('Oracle Data'[Supplier]),
RANKX(
ALLSELECTED('Oracle Data'[Supplier]),
[Total Spend]
),
BLANK()
)Cumulative Invoices =
IF(
HASONEVALUE('Oracle Data'[Supplier]),
SUMX(
TOPN(
[Rank],
CALCULATETABLE(
VALUES('Oracle Data'[Supplier]),
ALLSELECTED('Oracle Data')
),
[Total Spend]
),
[Total Spend]
),
BLANK()
)Cumulative Percentage =
[Cumulative Invoices] /
CALCULATE(
[Total Spend],
ALLSELECTED('Oracle Data')
)
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is the same formula I used.
Hi @adibhaan98 ,
I have changed the formula.
Change All to Allselected.
Rank =
IF(
HASONEVALUE('Oracle Data'[Supplier]),
RANKX(
ALLSELECTED('Oracle Data'[Supplier]),
[Total Spend]
),
BLANK()
)
Cumulative Invoices =
IF(
HASONEVALUE('Oracle Data'[Supplier]),
SUMX(
TOPN(
[Rank],
CALCULATETABLE(
VALUES('Oracle Data'[Supplier]),
ALLSELECTED('Oracle Data')
),
[Total Spend]
),
[Total Spend]
),
BLANK()
)
Based on the formulas you've provided, it seems we need to adjust the context in which the rankings are being calculated when the filter is applied. The issue may be arising because the function is removing all the filters when calculating the rank and cumulative values, which is why your pareto distribution is not accurate after filtering.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I tried it and it's still not working
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 24 | |
| 24 | |
| 17 | |
| 14 | |
| 13 |
| User | Count |
|---|---|
| 66 | |
| 41 | |
| 39 | |
| 39 | |
| 38 |