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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Applicable88
Impactful Individual
Impactful Individual

Pie Chart Show Top 5, but after selection it show all in table

Hello,

 

i have a pie chart with where I use the TOP N option in the filter panel to show me TOP 5 products with most errors. 

When I select a category to see every row single product in a table, it is not showing all products of that category, but the already 

filtered ones from the TOP N of the pie chart. 

How to carry over the category selection, but ignore all other filters, which might been set?

 

Cheers.

Best. 

2 ACCEPTED SOLUTIONS
v-yalanwu-msft
Community Support
Community Support

Hi, @Applicable88 ;

You can create a measure and apply it to Filter on Visual.

method 1:

create a flag measure.

flag1 =
IF( MAX([Sub]) in  SUMMARIZE( TOPN(5,ALLSELECTED('Table'),[value],DESC),[Sub]),1,0)

Then apply it into pie chart.

vyalanwumsft_0-1649662484670.png

Method 2:

flag2 = RANKX(ALLSELECTED('Table'),CALCULATE( SUM([value])),,DESC,Dense)

Then apply it into pie chart.

vyalanwumsft_1-1649662549130.png


Best Regards,
Community Support Team _ Yalan Wu
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

I already explained it. Pie charts imply that the entire data subject (100%) is represented. Any filters that you apply to that data subject will skew that perception and lead to the wrong insights.

View solution in original post

4 REPLIES 4
v-yalanwu-msft
Community Support
Community Support

Hi, @Applicable88 ;

You can create a measure and apply it to Filter on Visual.

method 1:

create a flag measure.

flag1 =
IF( MAX([Sub]) in  SUMMARIZE( TOPN(5,ALLSELECTED('Table'),[value],DESC),[Sub]),1,0)

Then apply it into pie chart.

vyalanwumsft_0-1649662484670.png

Method 2:

flag2 = RANKX(ALLSELECTED('Table'),CALCULATE( SUM([value])),,DESC,Dense)

Then apply it into pie chart.

vyalanwumsft_1-1649662549130.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Please do not use Pie charts unless you show 100% of the data.  Using TOPN with a pie chart is highly discouraged.

@lbendlin can you explain why. 

I already explained it. Pie charts imply that the entire data subject (100%) is represented. Any filters that you apply to that data subject will skew that perception and lead to the wrong insights.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.