We're giving away 30 tickets for FREE! Share your story, your vision, or your hustle and tell us why YOU deserve a ticket.
Apply nowWin a FREE 3 Day Ticket to FabCon Vienna. Apply now
I have a table with exchange rates holding only the starting date of the exchange rate. I have another table for daily sales data. I want to calculate the exchange rate on the day in the Sales table based on applicable starting date.
For example.
Exchange table
Starting Date | Rate |
01/01/22 | 1.2 |
04/01/22 | 1.5 |
08/01/22 | 1.7 |
Sales table with expected exchange rate from table above.
Sales Posting Date | Expected Exchange rate |
01/01/22 | 1.2 |
02/01/22 | 1.2 |
05/01/22 | 1.5 |
Solved! Go to Solution.
@Danch89 , A new column
new column =
var _max = maxx(filter(Exchange, Exchange[Starting Date] <= Sales[sales posting date]), Exchange[Starting Date])
return
maxx(filter(Exchange, Exchange[Starting Date] =_max), Exchange[Rate])
@Danch89 , A new column
new column =
var _max = maxx(filter(Exchange, Exchange[Starting Date] <= Sales[sales posting date]), Exchange[Starting Date])
return
maxx(filter(Exchange, Exchange[Starting Date] =_max), Exchange[Rate])
User | Count |
---|---|
67 | |
61 | |
47 | |
35 | |
32 |
User | Count |
---|---|
87 | |
72 | |
57 | |
51 | |
45 |