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
vaibhav_osc
Helper I
Helper I

Dynamic Top N and Others

I have a problem with implementing a donut showing top N and Others groups for a measure. My underlying dimension data is of below type:

ProductGroup
1A
2A
3A
4B
5B
6B
7C
8C
9C
10C

 

It has a measure connected on Product column. I need to get the top N [Group] as shown below where the blue segment is "Others" group. 

Donut chart

The problem is with naming the "Others" as when I am doing it in another calculated column, it is static and doesn't work well when any filters are applied on the report. Is there any way to make it responsive to filters, so that respective Top N [Group] are shown for different selection ?

1 ACCEPTED SOLUTION
SqlJason
Memorable Member
Memorable Member

The key to it woyld be to use a calculated table with an extra member for Others. I recently wrote a similar blog 

http://sqljason.com/2017/03/dynamic-grouping-in-power-bi-using-dax.html

 

In this case, the measure in my blog will have to be replaced by the TopN part. Let me know if you have difficulties applying this and if yes, I can explain in more detail (especially if you can give sample data and show the results also, so that I can put it together in apower bi file)

View solution in original post

12 REPLIES 12

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