Forum Discussion
Omega
9 years agoImpactful Individual
Merge tables using latest dates
Dears, I am new to BI and I have a small challenge: I have 3 tables: Sales, QTY and Mapping: Sales: QTY: Mapping: Item| Sales ...
- 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] ) )
v-jiascu-msft
9 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
Omega
9 years agoImpactful Individual
Thanks for the reply. I'll try to implement and let you know if I'm having challenges. :)