Forum Discussion
Anonymous
5 years agoNot applicable
Correct cost date
Hello, I have two different tables, historical cost items, and item movements. The cost of items is updated over time: I have item movements over time. How can I calculate a measure th...
- 5 years ago
Anonymous , A new column in table 2
new column =
var _1 = maxx(filter(Table1, Table1[Date] <=Table2[Date] && Table1[Item] = table2[item]), Table1[Date])
return
maxx(filter(Table1, Table1[Date] = _1 && Table1[Item] = table2[item]), Table1[Cost])
amitchandak
Super User
5 years agoAnonymous , A new column in table 2
new column =
var _1 = maxx(filter(Table1, Table1[Date] <=Table2[Date] && Table1[Item] = table2[item]), Table1[Date])
return
maxx(filter(Table1, Table1[Date] = _1 && Table1[Item] = table2[item]), Table1[Cost])