Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
marijane
Helper I
Helper I

Show only the most popular products & Others on the legend of the chart

Hi, I have a chart that has too many products on the legend so I wanted to show only the products with the most sales and the rest named "others". Do you know how can achieve this? 
I build a table with product and sales and create this measure but I know that is wrong because the TOPN is a table and not a column but I don't know how to fix it. Can you please help?

Product & Others = if.eager('Product & Others'[product] in {TOPN( 6,Product & Others'[product]
        ,[sales],DESC)},
        ''Product & Others'[product],"Others")

Product & Others: 
product sales
A100
B200
C400
D50
E74
F300
G56
H53
I21
J80
K150
1 REPLY 1
amitchandak
Super User
Super User

@marijane , refer topn with others

Power BI- TOPN with Others- https://youtu.be/I_TY4hVlzAE

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.