So I have a gallery that populates correctly. Within the gallery I have a column for “STATUS” … that column does a lookup to another table … and gets a last scheduled date. I want to compare that date against today’s date to return an “ACTIVE” or “INACTIVE”.
If (
LookUp(‘lookuptable’, CUST_NUM = ThisItem.CUST_NUM && LAST_UPDATE_LOC = ThisItem.LAST_UPDATE_LOC, SCHEDULE_DATE) >= Today()
"ACTIVE",
"INACTVE"
)
The lookup might have more than one row to return, but will only return one row. How can I sort the SCHEDULE_DATE to return the most recent? Currently it is pulling just the customer's first date.
Tried many ways without success. Even tried to put ‘ && SCHEDULE_DATE >= Today()’ in the formula … but that didn’t work either.