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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
AlbLS
Frequent Visitor

Group Smaller Slices with condition in Pie Charts

Hi everybody,

I have a problem that I can not fix, I hope your help can save me!

I would like to group the small slices of a pie chart with one condition, when the percentage of total is less than 5%.

 

Problem.JPG

 

I know the option to create a group by categories in the pie chart but this option does not work because the group always contains the same categories.

 

Here I found an example for SQL Server, but not for POWER BI:

https://docs.microsoft.com/en-us/sql/reporting-services/report-design/collect-small-slices-on-a-pie-... server-2017

 

I leave you my Power BI file here:

https://drive.google.com/open?id=1wrs1uh9u8SUOUISg1hvFGqTB_IRUbLtA

 

I thank you in advance!!

Best regards

 

Alberto

1 ACCEPTED SOLUTION
mussaenda
Super User
Super User

Hi,

 

Not expert n PBI but maybe you can try these measures:

GT = CALCULATE(SUM(Feuil1[value]), ALL(Feuil1))
% value = CALCULATE( SUM(Feuil1[value]) / [GT], ALLEXCEPT(Feuil1, Feuil1[categorie]))
Category New = IF([% value] > .05,  Feuil1[categorie], "Others" )

2019_07_10_18_50_14_SmallSlices_Read_Only_Power_BI_Desktop.png

View solution in original post

15 REPLIES 15

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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