Forum Discussion
Yearly Calculated Measure
- 5 years ago
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=czNHt7UXIe8and then try measure
sumx(TableB, TableB[Labour]* (TableB[Cost]))
- 5 years ago
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.
- Anonymous5 years ago
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 $] * _rateBest 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