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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I have a monthly FX table.
And on my fact table, I want to lookup the monthly FX. For future Delivery Date (ie. Dec 2022 and Jan 2023), I want to return the latest month (ie. Nov 2022) FX amount as shown below.
Please help.
Thank you,
Jeff
Solved! Go to Solution.
Hi,
Write this calculated column formula in Table 2
FX for calc. = lookupvalue('Table 1'[Fx],'Table 1'[Calendar]Date],calculate(max('Table 1'[Calendar Date]),filter('Table 1','Table 1'[Calendar Date]<=earlier('Table 2'[Delivery Date])))
Hope this helps.
Hi,
Write this calculated column formula in Table 2
FX for calc. = lookupvalue('Table 1'[Fx],'Table 1'[Calendar]Date],calculate(max('Table 1'[Calendar Date]),filter('Table 1','Table 1'[Calendar Date]<=earlier('Table 2'[Delivery Date])))
Hope this helps.
supposing the two tables are related, try add a column like
FX =
IF(
[Date]<=TODAY(), RELATED(Table1[CalendarDate]),
CALCULATE(
MIN(Table2[FX]), Table2[DeliveryDate]=MAX(Table1[CalendarDate])
)
)
Thank you @FreemanZ for your replay. It does not work as expected.
Due to other reasons, two tables are not linked and today() may cause other issue in the future. I slightly twisted your sugguestion a bit.
FX=
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!