Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I am a NEWBIE to Power BI and DAX. Any help is greatly appreciated!
I have 2 tables (screenshots attached).
Table 1: TKHours
Table2: PPEAmounts
What I am trying to acheive is:
Thank you in advance for any feedback,
Brett
Solved! Go to Solution.
@brettmeyers You need to create relationship between two tables using common field such as Jobnumber in your case. Once relation is there you can simply create calculated column to get value for each row or create a measure to get difference using sum(PPEAmounts[Amount]) / sum(TKHours[Hours]).
Hi brettmeyers,
Ankipatira ‘s point seems well, you could also use LOOKUPVALUE function to create a measure to achieve your requirement.
I find these tables all have a jobnumber column, I use this column as the search column: (Since I can’t find a same jobNumber between two tables, I have modified the jobnumber)
Dax:
Measure = SUM(PPEAmounts[Amount])/LOOKUPVALUE(TKHours[Hours],TKHours[JobNumber],VALUES(PPEAmounts[JobNumber]))
Result: (I added a column to store and display the measure)
Regards,
Xiaoxin Sheng
Hi brettmeyers,
Ankipatira ‘s point seems well, you could also use LOOKUPVALUE function to create a measure to achieve your requirement.
I find these tables all have a jobnumber column, I use this column as the search column: (Since I can’t find a same jobNumber between two tables, I have modified the jobnumber)
Dax:
Measure = SUM(PPEAmounts[Amount])/LOOKUPVALUE(TKHours[Hours],TKHours[JobNumber],VALUES(PPEAmounts[JobNumber]))
Result: (I added a column to store and display the measure)
Regards,
Xiaoxin Sheng
@brettmeyers You need to create relationship between two tables using common field such as Jobnumber in your case. Once relation is there you can simply create calculated column to get value for each row or create a measure to get difference using sum(PPEAmounts[Amount]) / sum(TKHours[Hours]).
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 29 | |
| 26 | |
| 24 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 54 | |
| 49 | |
| 41 | |
| 32 | |
| 22 |