cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dimi
Impactful Individual
Impactful Individual

Can't Filter Sharepoint source based on Choice column to populate Gallery

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!

0 REPLIES 0

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (88,978)