cancel
Showing results for
Did you mean:
Highlighted
Occasional Visitor

## Calculate profit for multiple projects

hi,

I have two tables. One table has many costs associated with one project and the other table has the revenue for the same project.  I want to calculate the profit (Revenue-Cost=Profit).

Given:

Table1: project number, project revenue

Table2: Project number, labour cost, material cost, subcontractor cost

If i use Profit MEASURE = SUM ( Table1[Revenue] ) - SUM ( Table2[Cost] ) for some reason it dumps all costs and all revenues in one total and calculate difference between those two amounts.

thank you everyone for your help

3 REPLIES 3
Senior Member

## Re: Calculate profit for multiple projects

have you joined the two tables on the project no? Can you share the Model diagram?

Community Support Team

## Re: Calculate profit for multiple projects

Given:

Table1: project number, project revenue

Table2: Project number, labour cost, material cost, subcontractor cost

If i use Profit MEASURE = SUM ( Table1[Revenue] ) - SUM ( Table2[Cost] ) for some reason it dumps all costs and all revenues in one total and calculate difference between those two amounts.

It seems that you have three kinds of cost in table2, which one do you want to calculate or the total of the three costs in table 2?

In addition, have created the relationship between the two tables with Project no?

If it is convenient, could you share some data sample which could reproduce your scenario and your desired output so that we could help furthere on it?

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Community Support Team

## Re: Calculate profit for multiple projects

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements

#### Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

#### Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

#### Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 43 members 1,152 guests
Recent signins: