Hello Appsheet Community,
I have table caseload builder which has a one to many relationship with table site notes. I am creating a virtual column in the caseload builder. Site notes has two relevant columns: noteDate and schedStatus. noteDate is a date&time field and schedStatus is just a text.
My goal is to haee the virtual column pull the value of schedStatus from the related site notes with the highest (most recent as they canโt put one in the future) noteDate. Iโve tried constructing the below but it doesnโt quite work. If there are multiple site notes it wonโt pull the right sched status.
SELECT([Related siteNotes][schedStatus],
([Related siteNotes][noteDate]=LIST(MAX([Related siteNotes][noteDate])))
)
Any guidance here would be much appreciated! Thank you!
Solved! Go to Solution.
I think I figured out a solution. Although inefficient.
I created another virtual column called Max Note Date that just pulls the max note date from related site notes. Then the following formula seems to be working!
SELECT(siteNotes[schedStatus],
AND(
[noteDate]=[_THISROW].[Max Note Date],
([siteID]=[_THISROW].[UID])
)
)
User | Count |
---|---|
38 | |
34 | |
27 | |
23 | |
17 |