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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ChrisAZ
Helper V
Helper V

Create a pie chart where the Expenses are displayed as a % of Revenue

So I am going to try to explain this as clearly as possible, but essentially, I want to create a pie chart that displays the different expenses categories as a % of the total revenue value. Said another way, the "100%" value of the pie chart would be the revenue amount and then the categories would be shown a sa percent of that, with the remaining shown as "Net Revenue" or something similar. Sample data set would be like this:

ChrisAZ_0-1743108913528.png

So, for example, with the total revenue being the 1,270,758 in this case, we would expect that in a pie chart it would show Part cost as 11.74% (149,190/1,270,758), Labor cost as 15.94% (202,546/1,270,758), and Fuel cost as 16.26% (306,622.51/1,270,758), and the remaining as 56.06% (Total of the other percentages (43.94%) subtracted from 100%.

 

1 ACCEPTED SOLUTION
ChrisAZ
Helper V
Helper V

6 REPLIES 6
ChrisAZ
Helper V
Helper V

v-csrikanth
Community Support
Community Support

Hi @ChrisAZ 

You can follow these steps in your excel.

1.Select the entire table.-->right click--> go to get data from Table/Range.

2. Ctrl+select Part Cost , Labor cost and Fuel cost. Go to Transform tab above and click on unpivot columns as shown.

d0f9b15f-b054-4bd4-9ead-7f4487828993.jpg


If the above information helps you, please give us a Kudos and marked the Accept as a solution.
Best Regards,
Community Support Team _ C Srikanth.

v-csrikanth
Community Support
Community Support

Hi @ChrisAZ ,

You can follow these steps

 Unpivot Part cost, Fuel cost and Labor cost 
vcsrikanth_0-1743176071809.jpeg

Then create a custom column to get % of Truck revenue
vcsrikanth_1-1743176112479.jpeg

 to get cost as % of revenue

You will then have your table look  like this

vcsrikanth_2-1743176231121.jpeg

Finally pull the pie-chart for desired result.

vcsrikanth_3-1743176251282.jpeg


If the above information helps you, please give us a Kudos and marked the Accept as a solution.
Best Regards,
Community Support Team _ C Srikanth.

 

Pardon my ignorance, but you can tell me how I "unpivot" as described here? Thanks!

Deku
Super User
Super User

Create a field parameter, adding each of the cost measures. Then add to pie chart visual


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

I am sorry, can you provide more specifics on what you mean by adding a "field parameter"?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors