How can I filter all the last unique records to show in a deck view.
Example:
DATE NAME PRIVILEGES
1.1.2019 Helen 1
1.1.2019 Miriam 1
1.12019 George 2
2.1.2019 Helen 1
2.1.2019 Miriam 1
2.12019 George 2
I would only like to filter last unique rows from NAME column. So that I would see only those records in a deck view:
2.1.2019 Helen 1
2.1.2019 Miriam 1
2.12019 George 2
Thank you in advance!
Lynn
May 5, 2019, 8:29pm
2
Hi @David_H Have you had a look at MAXROW()
Iâve tried with MAXROW(âMyTableâ, â_ROWNUMBERâ), but all I get is âThe expression is valid but its result type âRefâ is not one of the expected types: Yes/Noâ .
Steve
May 9, 2019, 12:15am
4
If youâre using a slice:
(
[_ROWNUMBER]
= MAX(
SELECT(
MyTable[_ROWNUMBER],
([Name] = [_THISROW].[Name])
)
)
)
5 Likes
Thank you Steve! This is exactly what I was trying to figure out and been struggling with it. You just made my day :).
1 Like
Hi Steve,
I am using this formula
[_THISROW]
= MAXROW(
"Survey_Current_User",
"Visit DateTime",
([_THISROW].[Store_ID] = [Store_ID])
)
Which achieve the same result i guess. However, I am facing some performance issue and I guess this is due to this formula.
Do you know if your approach (MAX() and SELECT() ) is more âpower friendlyâ for Appsheet?
Thanks for your help
RedVox
March 21, 2023, 11:57am
7
This is very interesting! I would not have guessed that [_THISROW] could be used in the context of a slice filter. Thanks!