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

The Fabric Community site will be in read-only mode on Monday, Feb 24 from 12:01 AM to 8 AM PST for scheduled upgrades.

Reply
Cervelle
New Member

breakdown measure on pie chart for Power BI - data managing issue

Hello,

 

I have a set of data and I create a table like this:

zMaij05n

Data looks like that: 

JpnhuDV2

I am trying to make a pie chart.

As you can see, each column "selling obj" is independent measure.
When creating a pie chart since this columns are independent it does not breakdown by selling object, I need to add all of them as value and I cannot sort them.

 

I am looking for a way to have a breakdown by selling object so I can sort them.

 

Your help is appreciated. Thanks

1 ACCEPTED SOLUTION
freginier
Solution Sage
Solution Sage

Hey there!

 

If I understood, you are facing an issue where each "selling obj" is a separate column, making it difficult to break down values by selling object in a pie chart.

 

To make "Selling Object" a single category (instead of multiple columns), we need to unpivot the data.

First open your Power Query: Select the table containing selling obj 1, selling obj 2, and selling obj 3.

Then Highlight the columns selling obj 1, selling obj 2, and selling obj 3.
- Click Transform → Unpivot Columns. Power BI will now create two new columns:
"Attribute" (which stores "selling obj 1", "selling obj 2", etc.).
"Value" (which stores the corresponding values).

 

Next rename Columns
- Rename "Attribute" → "Selling Object".
- Rename "Value" → "Sales Amount".

 

Then just create your pie chart!

- Drag "Selling Object" into Legend.
- Drag "Sales Amount" into Values.
- Now, the pie chart will group sales by Selling Object.

 

Hopefully this works for you! 😁😁

View solution in original post

2 REPLIES 2
Cervelle
New Member

hi there,

 

It seems to be exacty what I need.

I think now I can sort it out on a larger amnount of data.

 

merci freginier !

freginier
Solution Sage
Solution Sage

Hey there!

 

If I understood, you are facing an issue where each "selling obj" is a separate column, making it difficult to break down values by selling object in a pie chart.

 

To make "Selling Object" a single category (instead of multiple columns), we need to unpivot the data.

First open your Power Query: Select the table containing selling obj 1, selling obj 2, and selling obj 3.

Then Highlight the columns selling obj 1, selling obj 2, and selling obj 3.
- Click Transform → Unpivot Columns. Power BI will now create two new columns:
"Attribute" (which stores "selling obj 1", "selling obj 2", etc.).
"Value" (which stores the corresponding values).

 

Next rename Columns
- Rename "Attribute" → "Selling Object".
- Rename "Value" → "Sales Amount".

 

Then just create your pie chart!

- Drag "Selling Object" into Legend.
- Drag "Sales Amount" into Values.
- Now, the pie chart will group sales by Selling Object.

 

Hopefully this works for you! 😁😁

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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