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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Pie Chart - Top 5 - Rest named Other without count from data table

need to show Top 5 from pei chart and rest named others. i saw the plenty of solutions. But my data source is diffrent . There is no numeric (count) column.

 

fields are ProjectID and Product Components.

 

ProjectIDProd Component
1A
1B
1C
2D
3A
3B
3D

 

I had to keep this format cause i this pie chart is one visual out of main dashboard. so i have filters and when clicking filters this chart should be change accordingly. Is there any way to show top 5 using this format?had  to keep project ID to create connection between tables. If i convert to prod componet with count column it doest change when i clicking slicers.

 

PBIX File:

https://drive.google.com/file/d/13V8zVc8fWhdDVmykIyS5Fm0XQ6v68k_v/view?usp=sharing

please have a look on this. Here i both teams and product pie chart changing  accordingly when i click quaters. But when i create product by count its doesnot change. The thing is to show TopN i need to table with count.

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

You can try the following method without the product count table.

Measure:

Count Product = COUNT('product'[Product])

vzhangti_0-1655446083039.pngvzhangti_1-1655446100084.png

At this point the pie chart will change with the choice of quarter.

 

Rank = RANKX(ALLEXCEPT('product','product'[RM]),[Count Product],,DESC,Skip)

vzhangti_2-1655446209043.png

Suppose you only want to show the values of the first 3 in the pie chart.

Measure = IF([Rank]<3,1,0)

vzhangti_3-1655446298989.png

Is this the output you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

You can try the following method without the product count table.

Measure:

Count Product = COUNT('product'[Product])

vzhangti_0-1655446083039.pngvzhangti_1-1655446100084.png

At this point the pie chart will change with the choice of quarter.

 

Rank = RANKX(ALLEXCEPT('product','product'[RM]),[Count Product],,DESC,Skip)

vzhangti_2-1655446209043.png

Suppose you only want to show the values of the first 3 in the pie chart.

Measure = IF([Rank]<3,1,0)

vzhangti_3-1655446298989.png

Is this the output you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

No i need to show top N and rest should be show as  "Others". lets say i need to show topN and all others should be displayed as "Others"

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.