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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Sean-OReilly
Helper IV
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%" ?

 

Sean-OReilly_0-1602331606104.png

 

1 ACCEPTED SOLUTION

Hi @Sean-OReilly ,

 

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" )

V-lianl-msft_0-1602491841459.pngV-lianl-msft_1-1602491874720.png

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.

View solution in original post

2 REPLIES 2
negi007
Community Champion
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.

 

negi007_0-1602341228068.png

 

Let me know if it works for you.

 




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



Proud to be a Super User!


Follow me on linkedin

Hi @Sean-OReilly ,

 

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" )

V-lianl-msft_0-1602491841459.pngV-lianl-msft_1-1602491874720.png

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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