cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stapes
Post Prodigy
Post Prodigy

Filter Drop Down with not equal?

I am trying to populate my Dropdown box with all locations but the present one:

 

 

Filter(LocationCollection,loCode != txtLocation.Text)

 

loCode is the equivalent field in the collection.

It doesn't like !=

How do I do not equal in this context?

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User
Super User

Filter(LocationCollection,loCode = txtLocation.Text)

If you want not equal to use
Filter(LocationCollection,loCode <>txtLocation.Text)

If loCode is a number field use
Filter(LocationCollection,loCode = Value (txtLocation.Text))

View solution in original post

1 REPLY 1
eka24
Super User
Super User

Filter(LocationCollection,loCode = txtLocation.Text)

If you want not equal to use
Filter(LocationCollection,loCode <>txtLocation.Text)

If loCode is a number field use
Filter(LocationCollection,loCode = Value (txtLocation.Text))

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,719)