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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ahasanahp
Regular Visitor

Summarize Data into Pie Chart but from Different Columns

Hi,

 

I need to summarize data into a pie chart with the following table

IDFirst Transport Qty First TransportSecond Transport QtySecond Transport
11TRUCK7CAR
23MOTORCYCLE  
31CAR2TRUCK
45BICYCLE3MOTORCYCLE
52TRUCK2TRUCK

 

I need to have a Pie Chart that displays the total split % or volume such as :

TRUCK - 7

CAR - 8

BICYCLE - 5

MOTORCYCLE - 6

 

The problem is that I have 2000 rows and can only pull out the "First Transport" column only, I can't include the "Second Transport" column.

 

How can I create a pie chart that shows all of the data labels with their combined values?

 

Thanks

1 REPLY 1
whitch
Resolver I
Resolver I

Imagine how much easier this would be if your data was structured like this:

QtyTransportType
1TRUCKFirst
3MOTORCYCLEFirst
1CARFirst
5BICYCLEFirst
2TRUCKFirst
7CARSecond
0nullSecond
2TRUCKSecond
3MOTORCYCLESecond
2TRUCKSecond

 

Can you make it like this in Power Query?  You'll probably want to duplicate your current table, have one copy just for firsts, the other for seconds, then apppend together to get a result like the above (you can disable data-load for the intermediary tables).

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.