Forum Discussion
Zdenek_Moravec
Feb 17, 2022Brass Contributor
Lookup date from one table within date range in another table
Dear colleagues, I have a table with list of names and their vaccination date. Next table contains the names and when they were hospitalized from – to. Vaccination table Hospital table ...
- Feb 18, 2022
As variant
=LET( d, FILTER( T_Vacc[vaccination date], T_Vacc[Name] = [@Name] ), check, (MAX(d) >= [@[Hospitalized from]]) * (MIN(d) <= [@[Hospitalized to]]), IF(check, "Yes", "No") )
SergeiBaklan
Feb 18, 2022Diamond Contributor
As variant
=LET(
d, FILTER(
T_Vacc[vaccination date],
T_Vacc[Name] = [@Name]
),
check,
(MAX(d) >= [@[Hospitalized from]]) *
(MIN(d) <= [@[Hospitalized to]]),
IF(check, "Yes", "No")
)
Zdenek_Moravec
Feb 19, 2022Brass Contributor
@ Sergei Baklan, thank You for a modern solution. This is the way, how to learn new functions ...