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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mehlenbae2
Helper II
Helper II

Top N - percent of total

Hi everyone,

I have a few pie charts that show tickets that are breached by other teams. I was asked by leadership to show only the top 5 groups that breach tickets. 

 

The legend for my pie chart shows Breached Groups (e.g. Helpdesk, Procurement, etc) and the values of the pie chart has a Whole Number count of all of this tickets that are breached (this is from the count column in my dataset). I use Top N for the Breached Groups filter and I get the percent the 5 groups, I need the top 5 groups of the entire data set. Any ideas on how to achieve this?

1 REPLY 1
amitchandak
Super User
Super User

@mehlenbae2 , check if custom label can help

Custom label
https://www.youtube.com/watch?v=IH4bcHhxunw
Dynamic Label
https://www.esbrina-ba.com/time-intelligence-dynamic-legend-in-line-charts/

 

You have to create a % of the Total measure for label


Divide( calculate([measure],topn(10, allselected('Fact Jobs'[job_name]) ,[measure], desc)),calculate([measure],allselected()))

 

 

or try with TOPN with Others

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors