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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Automatically Merge Legend Categories in Pie Chart in Conditional Percentage

Hi,

 

I have pie chart that consists dozens of categories in the legend. Is there any way to automatically merge categories whose percentage is less than a certain value (for example less than 2 %) into one category (let's say named "Others"). As this is a live data, I cannot simply merge the category manually because the percentage could always be changed.

 

toontr_0-1608132295860.png

 

Thank you for your help.

Vano.

 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

What is your current data source?

If your data model is liveconnect,I'm afraid that it is impossible to do that in a pie chart  .  Amitchandak 's method  isn't  feasible for pie chart visual. As of now, the legend of the pie chart does not support the measure type field. 

 

If you don’t mind converting the data model into import mode, you can create a calculated column as below:

 

Defect Type2 =
VAR percentage =
    'Table'[Value] / SUMX ( ALL ( 'Table' ), 'Table'[Value] )
RETURN
    IF ( percentage <= 0.02, "others", 'Table'[Defect type] )

 

103.png

 

Best Regards,
Community Support Team _ Eason

 

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

What is your current data source?

If your data model is liveconnect,I'm afraid that it is impossible to do that in a pie chart  .  Amitchandak 's method  isn't  feasible for pie chart visual. As of now, the legend of the pie chart does not support the measure type field. 

 

If you don’t mind converting the data model into import mode, you can create a calculated column as below:

 

Defect Type2 =
VAR percentage =
    'Table'[Value] / SUMX ( ALL ( 'Table' ), 'Table'[Value] )
RETURN
    IF ( percentage <= 0.02, "others", 'Table'[Defect type] )

 

103.png

 

Best Regards,
Community Support Team _ Eason

 

amitchandak
Super User
Super User

@Anonymous , One of the quick things I can think of is TOPN with Other

https://www.youtube.com/watch?v=UAnylK9bm1I

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors