Forum Discussion
Create Approximate Match Relationship
- Anonymous10 years ago
There is no way to delete replies here!? My answer was... not exactly on target :(
You need a way to calculate the "most recent rate". That is the last date in rate table, which is less than (or equal?) to the date in your quantities table.
Maybe something like... ?
=CALCULATE(
LASTNONBLANK(Rates[Date], MIN(Rates[Rate]),FILTER(Rates, Rates[Date] <= MAX(Quantites[Date]))
)
There is no way to delete replies here!? My answer was... not exactly on target :(
You need a way to calculate the "most recent rate". That is the last date in rate table, which is less than (or equal?) to the date in your quantities table.
Maybe something like... ?
=CALCULATE(
LASTNONBLANK(Rates[Date], MIN(Rates[Rate]),
FILTER(Rates, Rates[Date] <= MAX(Quantites[Date]))
)
Sorry for the late reply but thanks, i had had it solved with kinda same solution.
Thanks,
Sami