Forum Discussion
Data Relationships
- Anonymous5 years ago
HiRG010,
You can try measure like this to meet your needs:
Measure =var a=CALCULATE(SUM('Table B'[Target]),FILTER(ALL('Table B'),'Table B'[Target Year]=MAX('Table A'[Start Year])&&'Table B'[Location Name]=MAX('Table A'[Location Name])))ReturnIF(a=BLANK(),"",a)Here is the demo ,please try it :Hope it helps.
Best Regards,
Caitlyn YanIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
HiRG010,
You can try measure like this to meet your needs:
Hope it helps.
Best Regards,
Caitlyn Yan
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
- RG0105 years agoFrequent Visitor
Hi Anonymous ,
Thanks for the demo. This helps to understand the issue. However, it did not solve the problem in my original dataset since for some of the Locations in Table A, for eg, Location B, there does not exist a Job Name entry for the year 2021. Hence, even after creating the measure, I cannot get the Target to display for a Location B for year 2021. Let me know if there is a way to get around this. Thanks in advance.