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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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