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
LiorG
Frequent Visitor

Cost Overview

Hello all, 

 

How do I create something like the picture attached, assuming I use SQL data base and have 4 columns:

1- Total Fee, 2- Third party, 3- Travel Expenses, 4- Other

any ideas? 

pastedImage_0.png

 

Thanks, 

Lior

9 REPLIES 9
Vvelarde
Community Champion
Community Champion

@LiorG

 

Hi, youn can obtain the NETFEE uSing a Calculated Column:

 

NetFee =
[TotalFee]  - [ThirdParty] -[TravelExpenses] -[OtherExpenses] 

 




Lima - Peru

Thanks @Vvelarde

my problem here is more how to create such shape of a graph, the net fee can stay blank if needed

as long as I can get it to look like the picture attached.

any idea how can I create i?

Vvelarde
Community Champion
Community Champion

something like this?

 

likethis.png




Lima - Peru

Exactly like this! 🙂 

how do I do it?

Vvelarde
Community Champion
Community Champion

@LiorG

 

Ok, Look the image and you'll see that i use a Stacked Bar Chart and in values section Use NetFee, ThirdParty and the other columns.

 

You can change the data label going to format and select what do you want to display.




Lima - Peru

@Vvelarde

 

ahh, I taught to use the Total fee as a limit, so I won't need the net fee.

thats because each of the variables located in different files, and when creating calculated column I can only use the data in the same file.
do you know how it's possible to creat maybe new file the variables I need from different files in order to calculate the net fee?

Thanks,
Lior

Vvelarde
Community Champion
Community Champion

@LiorG

 

If the tables are related you can use a Measure to this calculation.

 

NetFee = Calculate(sum('TABLEA'[TotalFee])-sum('TABLEX'[ThirdParty])-sum('TABLEZ'[TravelExpenses])-sum('TABLEW'[OtherExpenses]))

 

 




Lima - Peru

Hi @Vvelarde

seems like unfortunately not all the table are related, I tried the use the line you wrote and power BI does not let me.
I appreciate your help , thank you very much.

Lior

Vvelarde
Community Champion
Community Champion

@LiorG

 

Post  data model and sample Data to try to solve it




Lima - Peru

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.