cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Granzo
New Member

Filtering Options in a ComboBox

Good morning.

 

I am attempting to filter a ComboBox based on the selection of another ComboBox.

 

In my current situation, I have two ComboBoxes

 

Division
Team

 

I am trying to filter the list of Teams available based on the Division selected. So for example, I have two of the Divison options i have are.

-Metro Foster Care

-Metro Inact-EFS

If I were to select one of these selections, the Teams ComboBox would be filtered to display only the options that begin with the word "Metro". In this case, it should display 20 selections to choose from. 

 

How would I go about doing this? Any help would be greatly appreciated.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User
Super User

Hi @Granzo 

Have a TextInput box control (say TextInput1) and a Dropdown control (say Dropdown1)

Have the Dropdown control Items property as Filter(yourteamlist, StartsWith(Division,TextInput.Text))

Alternatively you could have two dropdown controls 

In the first one (say Dropdown1) make the Items property Distinct(yourteamlist,Division)

In the second one make the Items property Filter(yourteamlist,Division=Dropdown1.Selected.Result)

(Distinct produces a unique one column table with the field name "Result")

 

 

View solution in original post

1 REPLY 1
Drrickryp
Super User
Super User

Hi @Granzo 

Have a TextInput box control (say TextInput1) and a Dropdown control (say Dropdown1)

Have the Dropdown control Items property as Filter(yourteamlist, StartsWith(Division,TextInput.Text))

Alternatively you could have two dropdown controls 

In the first one (say Dropdown1) make the Items property Distinct(yourteamlist,Division)

In the second one make the Items property Filter(yourteamlist,Division=Dropdown1.Selected.Result)

(Distinct produces a unique one column table with the field name "Result")

 

 

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,898)