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
Hi,
I have below two tables. The rate in Table A is (Yearly $ / Yearly Hours). I also have another Table B where employees have scheduled labor $'s. Cost in Table B = (Labor $ * Lookup Rate in Table A). The result i want is Sum of Cost by Employees. But it's taking Grand rate of all Years if I don't add Fiscal Year in my result. I tried calculated column in a table but because i already have another calculated column, it's giving me circular reference error.
Thank You in Advance
Solved! Go to Solution.
@NishPatel , If table A and Table B are joined on year and it 1- M reation.
You can create a measure like
sumx(TableB, TableB[Labour]* related(TableA[Cost]))
else get cost in table B using one of the four methods
refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
and then try measure
sumx(TableB, TableB[Labour]* (TableB[Cost]))
Hi, @NishPatel
Please try to use the below measure.
Cost =
SUMX (
TableB,
TableB[Labor $]
* LOOKUPVALUE ( TableA[Rate], TableA[Fiscal Year], TableB[Fiscal Year] )
)
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Hi @NishPatel ,
You can create a calculated column as below:
Column =
VAR _rate =
CALCULATE (
MAX ( 'A'[Rate] ),
FILTER ( 'A', 'A'[Fiscal Year] = 'B'[Fiscal Year] )
)
RETURN
'B'[Labor $] * _rate
Best Regards
Hi @NishPatel ,
You can create a calculated column as below:
Column =
VAR _rate =
CALCULATE (
MAX ( 'A'[Rate] ),
FILTER ( 'A', 'A'[Fiscal Year] = 'B'[Fiscal Year] )
)
RETURN
'B'[Labor $] * _rate
Best Regards
Hi, @NishPatel
Please try to use the below measure.
Cost =
SUMX (
TableB,
TableB[Labor $]
* LOOKUPVALUE ( TableA[Rate], TableA[Fiscal Year], TableB[Fiscal Year] )
)
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
@NishPatel , If table A and Table B are joined on year and it 1- M reation.
You can create a measure like
sumx(TableB, TableB[Labour]* related(TableA[Cost]))
else get cost in table B using one of the four methods
refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
and then try measure
sumx(TableB, TableB[Labour]* (TableB[Cost]))
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 |
|---|---|
| 28 | |
| 26 | |
| 26 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 51 | |
| 49 | |
| 43 | |
| 38 | |
| 36 |