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 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.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (4,245)