cancel
Showing results for
Did you mean:

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Helper IV

## Need Help with a Pie Chart

Hi

Is there a way to get a cleaner Pie Chart?

In my below Snip I have too many values that are < 5 %.

Can I produce a Pie Chart that would show slices and details for all values up to 5% and then a Slice that says "Others < 5%" ?

1 ACCEPTED SOLUTION
Community Support

Create a calculated column like this and use it as legend.

``````>5% & other =
VAR p =
DIVIDE (
CALCULATE (
SUM ( 'Table'[values] ),
ALLEXCEPT ( 'Table', 'Table'[Customer Name] )
),
CALCULATE ( SUM ( 'Table'[values] ), ALL ( 'Table' ) )
)
RETURN
IF ( p > 0.05, 'Table'[Customer Name], "other" )``````

By the way, when the proportion of the legend field is small and the character length is long, the details may not be displayed.

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

2 REPLIES 2
Community Champion

@Sean-OReilly You can create group for smallar value items and then will appear as one group. And then, you can use matrix visual that will show values basis selection in the pie chart. This is one way of achieveing that you wish to do.

Let me know if it works for you.

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Community Support

Create a calculated column like this and use it as legend.

``````>5% & other =
VAR p =
DIVIDE (
CALCULATE (
SUM ( 'Table'[values] ),
ALLEXCEPT ( 'Table', 'Table'[Customer Name] )
),
CALCULATE ( SUM ( 'Table'[values] ), ALL ( 'Table' ) )
)
RETURN
IF ( p > 0.05, 'Table'[Customer Name], "other" )``````

By the way, when the proportion of the legend field is small and the character length is long, the details may not be displayed.

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

Announcements

#### Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

#### Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

#### Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

#### The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors