I am currently filtering my gallery with the following, where varUser = User() and supervisingHCP is a complex people column in sharepoint.
SortByColumns(Filter(BMPatientList, SupervisingHCP.DisplayName = varUser.FullName), "RoomNumber", Ascending)
I like how this works, but I would like to have a certain user, or group of users to have access to the entire gallery. Could I set up an IF statement to filter, where:
IF(varUser.Fullname = *name*, SortByColumns(BMPatientList, "RoomNumber", Ascending), SortByColumns(Filter(BMPatientList, SupervisingHCP.DisplayName = varUser.FullName), "RoomNumber", Ascending))
If that works, is there a way to use the IF argument to include multiple names, instead of just one?