cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jay95
Helper III
Helper III

Filter Dropdown values based on User

Hello Expert!!

 

I have created a customized sharePoint form in power apps, In which I have created a dropdown. 

I want that current user of the form can not get own name in the dropdown.

I am getting an error for wrong comparison operator.

Please see below screenshot for better clarity.

 

jay95_0-1617793957963.png

 

Thanks in advance!!

1 ACCEPTED SOLUTION

Accepted Solutions

Sorry, you need to combine Filter() with Not() and "in":

Filter(CollectionApproverList.'Approver Name',Not(Lower(User().FullName) in CollectionApproverList.'Approver Name'))

with "in" you check if an item is in a collection, but because we only want to get rid of the current user, we need to add a not(), then the current user should get filtered out.

 

Best regards
Marvin

If you like this post, give a Thumbs up. If it solved your request, Mark it as a Solution to enable other users to find it.

View solution in original post

3 REPLIES 3
MarvinBangert
Solution Supplier
Solution Supplier

Hi @jay95 

have you tried using 

Not(Lower(User().FullName),CollectionApproverList.'Approver Name')

or

Lower(User().FullName) in CollectionApproverList.'Approver Name'

 

Hope this helps you!

Best regards
Marvin

If you like this post, give a Thumbs up. If it solved your request, Mark it as a Solution to enable other users to find it.

Should I use Filter function before this code?

Not(Lower(User().FullName),CollectionApproverList.'Approver Name')

 

Sorry, you need to combine Filter() with Not() and "in":

Filter(CollectionApproverList.'Approver Name',Not(Lower(User().FullName) in CollectionApproverList.'Approver Name'))

with "in" you check if an item is in a collection, but because we only want to get rid of the current user, we need to add a not(), then the current user should get filtered out.

 

Best regards
Marvin

If you like this post, give a Thumbs up. If it solved your request, Mark it as a Solution to enable other users to find it.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (987)