I have a Gallery.
I need to filter said Gallery in three different ways.
1. If User is 'Associate' filter Gallery based on UserName
- Associate can only see their own data in Gallery.
2. If User is 'Supervisor' filter Gallery based on UserName and all subordinates there under
- Supervisor can see their own data and all 'Associates' assigned to them.
- My data source (SPList2 has a line item for each 'Associate' and a column for
'Supervisor'
- If User is HR no filter applied; HR user can see all data
I've gotten most of it to work using the following -
If(PositionFld.Text="Associate",
Filter(Collection1, AssociateFullName = User().FullName),
SortByColumns(Filter(Collection1,
StartWith(AssociateLastName,
AssociateLastNameFld.Text)),
"AssociateFullName"))

Report
All responses (
Answers (