cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jay95
Frequent Visitor

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
MarvinBangert
Responsive Resident
Responsive Resident

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
Responsive Resident
Responsive Resident

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')

 

MarvinBangert
Responsive Resident
Responsive Resident

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

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 (59,271)