Hi all!
I am trying to populate a Gallery's Items based on a check and a Filter function:
If(EmployeeEmailAddress = "user@mail.com", Filter(source, SharePointChoiceColumn, "SharePointChoiceColumnValue"))
but it seems to have issues and it is not working.
I have tried the following which works:
Filter(source, SharePointChoiceColumn, "SharePointChoiceColumnValue")
So this tells me that the If statement is the issue here... But why?
I need to be able to check based on my EmployeeEmailAddress value what records to get from SharePoint.
Something between these lines is what i want (nested checks):
If(EmployeeEmailAddress = "user@mail.com", Filter(source, SharePointChoiceColumn, "SharePointChoiceColumnValue"), If(EmployeeEmailAddress = "anotherUser@mail.com", Filter(source, SharePointChoiceColumn, "AnotherSharePointChoiceColumnValue")))
Can anyone suggest me a way of achieving what i want and explain why this is not working?
Kind regards!

Report
All responses (
Answers (