Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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])
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.