Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
I want to calculate the sales of top 5 companies as % of total, alll things worked well, but I found I have name "Others" as a company name. I want to exclude it from the top 5 companies, so the top 5 would only count those with meaningful names, such as Apple or Google. But I also want to keep the data of "Others" in the total number, so I can calculate the concentration ratio of companies.
In this case, simply putting a filter to exclude "Others" is not working.
Here is my current calculation:
Could anyone help? Thanks a lot!
Solved! Go to Solution.
@hill , Try to create a measure like this and rank/TOPN on that
new sales =calculate([Sales], filter(data, data[companyname] <> "Others"))
Please try this expression instead.
Top 5 Concentration =
DIVIDE (
CALCULATE (
[Sales],
TOPN (
5,
FILTER (
VALUES ( data[companyname] ),
data[companyname] <> "Others"
),
[Sales], DESC
)
),
CALCULATE (
[Sales],
ALLSELECTED ( data[companyname] )
)
)
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Please try this expression instead.
Top 5 Concentration =
DIVIDE (
CALCULATE (
[Sales],
TOPN (
5,
FILTER (
VALUES ( data[companyname] ),
data[companyname] <> "Others"
),
[Sales], DESC
)
),
CALCULATE (
[Sales],
ALLSELECTED ( data[companyname] )
)
)
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Thank you! that is really great
@hill , refer for TOPN with Others
https://blog.gbrueckl.at/2019/05/power-bi-dynamic-topn-others-with-drill-down/
Refer TOPN : https://www.youtube.com/watch?v=QIVEFp-QiOk
Thank you for your reply, but I am afraid that you are not answering my question.
"Others" is a company name, not a remaining part of top 5. Instead, it's part of top 5
"Others" is the aggregation of all small companies. So it can be very large to be top 1 in the category
Thank you very much! it works for me
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 46 |