Forum Discussion
Anonymous
7 years agoNot applicable
Closest lookup date in Power Query / M-language
Hi, In the Excel table "Purchases" I want to add a New column where I use the Date row to lookup an exchange rate in the "Exchange Rates" table and calculate the new currency cost column based on th...
- 7 years ago
Anonymous
Try this new custom column
=let mydate=[Date] in Table.Max( Table.SelectRows(#"Exchange Rates",each [Date] <= mydate),"Date")[Rate]
Zubair_Muhammad
7 years agoCommunity Champion
Anonymous
Try this new custom column
=let mydate=[Date] in Table.Max( Table.SelectRows(#"Exchange Rates",each [Date] <= mydate),"Date")[Rate]