I am testing this case of ANY as shown on the attachment.
- The Refresh action (button) only updates a text column with NOW() value.
- I have repeatly hit the button like 30-40 times already.
- I have even changed the values directly in the google sheet (as the data source), re-sync the app, then hit the button like 10 more times.
According to AppSheet official document: ANY() - AppSheet Help
Returns an item from a list, as follows:
The first item from a list if it is constructed (for example, using
LIST()).An arbitrary item if a list is a generated list (for example, using
FILTER()orSELECT()).Blank if the list is empty.
Note: The order of the list cannot be guaranteed unless wrapped in
SORT().Sample usage
ANY(Students[Name])returns an arbitrary value from theNamecolumn of theStudentstable. Arbitrary because the order of values in theStudents[Name]column list isn’t guaranteed unless wrapped inSORT(). Equivalent toANY(SELECT(Students[Name], TRUE))
WHAT I EXPECTED:
- An arbitrary value of ID of the child table would be returned.
WHAT I GOT AS RESULT:
- Only the ID of the first row, which is “99” is returned.
So, im just wondering if it is a new change that:
- The order of a list generated by a REF_ROWS column, table[column], or SELECT() is now preserved, sorted by _ROWNUMBER?
- ANY() always returns the first item in a list?
Thank you in advanced!
