Forum Discussion
Merge tables using latest dates
- 9 years ago
Hi,
Maybe you didn’t create relationships among the tables. That could be why the sales is empty. Do the relationships look like this below?
If so, you can use these two measures to get “item2” and “sales”.
Item2Measure =
CALCULATE ( VALUES ( Mapping[item2] ), LASTDATE ( Mapping[date] ) )
QTYMeasure =
CALCULATE ( VALUES ( Qty[qty] ), LASTDATE ( Mapping[date] ) )
Are you trying to do this in DAX or M or do you care?
- Omega9 years agoImpactful Individual
Can you please share both if possible and the difference between both in terms of performance and easiness to implement? Thanks!
- v-jiascu-msft9 years agoMicrosoft Employee
Hi, Omega
If you want to use DAX, this formula will help.
QTYMeasure =
CALCULATE ( VALUES ( Qty[qty] ), LASTDATE ( Mapping[date] ) )
Best Regards
Dale
- Omega9 years agoImpactful Individual
Thanks for the reply. I'll try to implement and let you know if I'm having challenges. :)