Retrieve a value from related rows with condition

I have a table "a" with columns: "matricole" (text) , "last firmware" (text)
I have a table "b" with colums: "matricola" (text), "data intervento" (date), "firmware" (text)
Tables are correlated 
In a row of table "a" I correctly see the related "box" with the rows of table "b" that are in relation
I need to set value "last firmware" of this table as value of "firmware" in table "b" in the row where the "data intervento" is the older value.
I have tried with combinations of MAX() and SELECT() functions but without results.
Thanks in advance

 

Solved Solved
0 9 180
2 ACCEPTED SOLUTIONS

LOOKUP(
 MAXROW("b","data intervento",[ref to table a]=[_THISROW])
 "b",
 "key of b",
 "firmware"
)

View solution in original post

looks like you are missing a comma

LOOKUP(
MAXROW("InterventiMisuratori","Data",[MATRICOLA]=[_THISROW]),
"InterventiMisuratori",
"MATRICOLA",
"FW"
)

View solution in original post

9 REPLIES 9
Top Labels in this Space