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

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

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,667)