Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.

I need max to return only the column value, not the entire row

I need the most recent "target date" (column value) from the table "Record" where "Target Name" in table Record matches the "Target Key" where this expression lives

I have tried 

LOOKUP(MAX(SELECT( "record"[target date], ([_THISROW].[Target Key] = [Target Name]) ) ))

but it gives me the following error

"Function 'LOOKUP' should have exactly four parameters: LOOKUP(lookupValue, tableName, lookupColumn, returnColumn)"

 

Thank You in advance,

 

Solved Solved
0 2 104
1 ACCEPTED SOLUTION

I figured it out.

Here is what worked:

max(select(record[target date],[Target Key]=[_THISROW].[Target Key], ))

simple now that I see it. 

 

View solution in original post

2 REPLIES 2

hello, 

look this : https://support.google.com/appsheet/answer/10107920?sjid=4323320065697431288-EU

anything like that : 

select( "record"[target date], In([your id],maxrow("record", "target date", [_THISROW].[Target Key] = [Target Name])))

 

I figured it out.

Here is what worked:

max(select(record[target date],[Target Key]=[_THISROW].[Target Key], ))

simple now that I see it. 

 

Top Labels in this Space