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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
rampsaladi
Frequent Visitor

All Other Products in Pie Chart

Hi All,

 

I have requirements where I need to create a Pie Chart with a certain set of products and All other products as one group. The Products and sales information are in the same table and I also have another Product called ALl products along with the Sales. as shown below

 

Product$ Amt
All Products120
Product 13
Product 25
Product 37
Product 49
Product 530
Product 610
Product 730

 

I need to get All Other Products by Subtractinig from ALl products sum of Products 1to 7 and then include this as part of the Pie chart as shown below. Any Help on this would be appreciated

Pie Chart.PNG

1 ACCEPTED SOLUTION

Hi @rampsaladi

 

May be you can use the Query Editor to add a row for "ALL other products"

 

- You can pivot the Products Column>> all your products would be in columns

-Then add a column "All other products" subtracting Products 1 to 7 from ALL products

-Now unpivot the products to bring data to orginal form

 

View solution in original post

3 REPLIES 3
Zubair_Muhammad
Community Champion
Community Champion

HI @rampsaladi

 

How about a new calculated table which you can use in the pie chart...From the modelling tab>>>New Table

 

Table =
UNION (
    FILTER (
        SUMMARIZE ( TableName, TableName[Product], "$ Amt", SUM ( TableName[$ Amt] ) ),
        [Product] <> "All Products"
    ),
    ROW (
        "Product", "All other Products",
        "$ Amt", CALCULATE ( SUM ( TableName[$ Amt] ), TableName[Product] = "All Products" )
            - CALCULATE ( SUM ( TableName[$ Amt] ), TableName[Product] <> "All Products" )
    )
)

 

@Zubair_Muhammad Thanks for the reply

 

I have thought of it but it gets more complicated as the data I showed will be associated to a specific market and time period. I would need to be able to do this for different markets and time periods. If that can be achieved that would be great and you can provide me details on how to 

Hi @rampsaladi

 

May be you can use the Query Editor to add a row for "ALL other products"

 

- You can pivot the Products Column>> all your products would be in columns

-Then add a column "All other products" subtracting Products 1 to 7 from ALL products

-Now unpivot the products to bring data to orginal form

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.