web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Trouble Filtering a Co...
Power Apps
Answered

Trouble Filtering a Combobox with a toggle to filter values

(0) ShareShare
ReportReport
Posted on by 32

Hi all,

 

I have a Combobox that is a dropdown selection to filter a Gallery, I also have a toggle box that selects regions to filter the Combobox to have less entries - However I just can't get my filter to work.

 

If(
    locationToggle.Value = false,
        Filter(
            Choices([@Sharepoint_data].Europe),
            "Paris" || "London" || "Berlin" in Value
        ),
    locationToggle.Value = true,
        Filter(
            Choices([@Airbus_Handovers].USA),
            "NYC" || "Seattle" || "Chicago" in Value
         )
)

 

It sort of works, but it makes the combo box only have the final city entry, so "Berlin" when the toggle is Europe, and "Chicago" when the toggle is USA, rather than all of them. I'm assuming you cant use an or operator there, but I don't know what syntax to do or where to turn next.

 

Any help would be much appreciated!

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,967 Most Valuable Professional on at

    Hi @OJBridger ,

    If you are going to hard-code the choices required, why bother with the Filter and fields?

    If(
     !locationToggle.Value
     ["Paris","London","Berlin"],
     ["NYC","Seattle","Chicago"]
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • OJBridger Profile Picture
    32 on at

    Works perfectly! I was definitely over complicating things.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard