Forum Discussion

bcap01's avatar
bcap01
Helper II
3 years ago
Solved

Simple JOIN

Hello,

 

I am a PowerBI/DAX newbie. I am looking to understand how to JOIN two tables to do a simple calculation. 

 

For example, lets say I have two tables Invoices and Costs that JOIN based on JobID.  

 

Invoice Table -  SELECT JobID, InvoiceAmt FROM Invoices

Cost Table - SELECT JobID, Cost FROM Costs

 

In DAX Format I would like to join these 2 tables to show the calculation:  GP = [InvoiceAmt] - [Cost]

 

WHat I have tried is the following but got error message.

 

GP = (Invoice[InvoiceAmt]) - (Costs[Cost])

 

Any help is sincerely appreciated!

 

2 Replies