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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Sylvine_Wyz
Helper IV
Helper IV

a pie chart that creates an "Others" group

Good morning,

I need to create a pie chart that creates an "Others" group when the value is less than 3%.

Could you help me please ?

THANKS

 Tables : 
bi_order :
- EAN
-Quantity

Catalog_ean : 
-EAN
-Brand

Sylvine_Wyz_0-1707993275058.png

 

5 REPLIES 5
v-weiyan1-msft
Community Support
Community Support

Hi @Sylvine_Wyz ,

 

I am not sure how your semantic model looks like.
Based on your description, I tried to create some dummy data.

vweiyan1msft_0-1709108678068.png

Please try code as below to create a Calculated column.

Category Column = 
VAR Total_Value = SUM('Table'[Value])
RETURN
IF (
    'Table'[Value] / Total_Value < 0.03,
    "Others",
    'Table'[Category]
)

Result is as below.

vweiyan1msft_1-1709108703654.png

Is this the result you expect?
If I've misunderstood you, can you share sample data and the results you are hoping for? Show it as a screenshot or excel. Or a sample pbix after removing sensitive data. We can better understand the problem and help you.


Best Regards,
Yulia Yan


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

Hello @v-weiyan1-msft ,

thanks for your return.
You will find below datas exemple : 
First table : 

DateOrderEANquantity
01/01/2023AB12341234567892
02/01/2023AB12351234567893
03/05/2023AB12364567891326
04/05/2023AB12371234567894
05/07/2023AB12381234567892
06/07/2023AB12391234567894
02/01/2024AB12344567891322
03/01/2024AB12351234567893
04/04/2024AB12361234567896
05/04/2024AB12371234567894
06/08/2024AB12381234567892
07/08/2024AB12391234567894
01/01/2023AB456787894561232
02/01/2023AB456797894561233
03/05/2023AB456807894561236
04/05/2023AB456817894561234
05/07/2023AB456824567891322
06/07/2023AB456837894561234
07/07/2023AB45684159846237

4


2nd Table : 

EANBrand
123456789Continental
456789132Goodyear
159846237Hankook
789456123Yokohama


In the pie chart, Brand is the category of segment
The user can choice many filters for example : brand, date etc

I hope you can  help me 🙂 

Thanks 

Sylvine_Wyz
Helper IV
Helper IV

Hello @amitchandak
How are you ? 
do you have a solution for grouping small sectors on pie charts in desktop? like that :

https://learn.microsoft.com/fr-fr/power-bi/paginated-reports/report-design/visualizations/collect-sm...

Sylvine_Wyz_0-1708441932071.png


Thanks for your help 
Have a nice day


daircom
Helper II
Helper II

Use the below and use cateogry_new as the legend I think. Can you check?

GT = CALCULATE(SUM(table[value]), ALL(table))
% value = CALCULATE( SUM(table[value]) / [GT], ALLEXCEPT(table, table[category]))
Category New = IF([% value] > .03,  table[category], "Others" )

thanks for your help but "Category new", i must to add this in the new column in the table bi_order ? 
But the result of the line is necessarily smaller than 3 %.
In fact, the table bi_order have many lines

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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