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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ChrisAZ
Helper V
Helper V

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

Unfortunately, only a few people responded previously, and they have not come back to follow up so I am left stuck and hoping some others might be able to help.

 

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-1743206336646.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
danextian
Super User
Super User

Hi @ChrisAZ 

 

You can create a measure that subtracts  part, labor, etc from the total revenue as other then add all those measures to a pie or  dounut chart.

danextian_0-1743218256678.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

3 REPLIES 3
rohit1991
Super User
Super User

Hi @ChrisAZ

 

You can achieve this by creating a simple DAX measure like this

 

Expense % of Revenue =
DIVIDE(
    SUM('Table'[Expenses]),
    SUM('Table'[Revenue]),
    0
)

 

Once you've added this measure, place Segment or Category in the pie chart's legend and the new Expense % of Revenue measure into values.

 

Your pie chart will look like this:

rohit1991_0-1753735844163.png

 


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!
danextian
Super User
Super User

Hi @ChrisAZ 

 

You can create a measure that subtracts  part, labor, etc from the total revenue as other then add all those measures to a pie or  dounut chart.

danextian_0-1743218256678.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Thank you, this works!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.