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

Calculate profit from table

Hello, 

I have a table that looks like this 

Company    hours     total employee cost     Charged amount
  A         .67              $83                   $4000
  A          1               $125                  $4000
  A          2               $250                  $4000

 I summed the cost and hours now to look like this 

Company    hours     total employee cost     Charged amount
  A         3.67             $458                  $4000

 

I am trying to find the total profit from the table which would be $4000 - $458 = $3542 however, when i try to calculate this it is taking the charged amount ($4000) and subtractring from each entry of total employee cost. 

I am getting a table that looks like this

Company    hours     total employee cost     Charged amount     Profit
  A         .67              $83                   $4000         $3917 
  A          1               $125                  $4000         $3875
  A          2               $250                  $4000         $3750

 

The profit is way off and i cannot figure out how to only subtract the charged amount from the total employee cost of all entries in the table. Any help in the right direction is appreciated. Thanks! 

1 ACCEPTED SOLUTION
WaqarArshad
Helper I
Helper I

When the data is aggregated , the charge amount is multiplied(if summed). You will need to take average of charge amount and subtract  sum of total employee cost to get 3542. See below

WaqarArshad_0-1684939903716.png

 

View solution in original post

1 REPLY 1
WaqarArshad
Helper I
Helper I

When the data is aggregated , the charge amount is multiplied(if summed). You will need to take average of charge amount and subtract  sum of total employee cost to get 3542. See below

WaqarArshad_0-1684939903716.png

 

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.