cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lliu_western
Resolver II
Resolver II

Dropdown options change based on previous selection

Hi Community,

 

I have a table of selections which is going to be two dropdown lists in PowerApps. 

 

First drop down, the user would select what country it is.

 

The the second drop-down would be what States/Province it is. 

 

The data/source table looks like this:

 

Country States 
USFL
USAK
USID
USCA
USLA
CanadaBC
CanadaAB
CanadaSK
CanadaQC

 

First drop-down, I have the items formula = Distinct('Source Table',Country)

 

Second drop-down, I have the item formula = Distinct(Filter('Source Table', Country = Edit_Input_Country.Selected.Value), States)

 

even though the formula isn't showing any error, I am not seeing any options (i.e., when I select Canada, options of "AB", "SK" or "QC" isn't showing up).

 

Any help would be great, thank you. 

1 ACCEPTED SOLUTION

Accepted Solutions
lliu_western
Resolver II
Resolver II

Solved my own question.

 

Second drop-down formula in Items: 

 

Distinct(Filter('Source Table', Country in Input_Country.SelectedText.Value),'States')

View solution in original post

1 REPLY 1
lliu_western
Resolver II
Resolver II

Solved my own question.

 

Second drop-down formula in Items: 

 

Distinct(Filter('Source Table', Country in Input_Country.SelectedText.Value),'States')

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 (4,773)