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).
Table 1 contains four columns: Employee, Project, Hours, Cost
Table 2 contains two columns: Project, Revenue
I am trying to create a New Column within Table 2 named Profit. Both tables are joined by Project name. Table 1 will have many entries (cost) for a single project name. Table 2 will have only one entry (revenue) for a single project name. Within the New Column in Table 2 I want to subtract the SUM of all Costs for a single Project in Table 1 from the Revenue for the matching Project in Table 2.
I'm just starting to work with Power BI and I'm not finding the DAX commands or format to help me.
Thank you.