cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ahhollan
Helper V
Helper V

cascading dropdown complexity

I have a table called TPS Regions. It houses a region like Chattanooga and an abbreviation column like CHA.  I have another table called TPS Sites. It houses sites like A, B,C and also has a column for Region that is the abbreviation column from TPS Regions.

I have a dropdown on my power app that lists the full region name like Chattanooga.  I have another drop down that should list all available sites in that region from the TPS Sites table.  How do I filter by the abbreviated value for region? Only abbreviated value is present in TPS Sites table.

 

thanks.

19 REPLIES 19

only Region appears.  The Abbreviation column is a single line of text in the list. It is a SharePoint list.

@ahhollan 

Something is not right then with that datasource.

Please put a Label on your screen and set the Text property to:

   First('TPS Regions').Abbreviation

 

First, see if Abbreviation even shows as a hint after you type the period.

If NOT, then try to refresh your datasource.  Still not...then remove the datasource and add it back in.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

The label works and shows the value of the Abbreviation. 

@ahhollan 

Okay, then we know the datasource is good.  The DropDown should show it as an available value in the property pane.  If not, first try removing (ctrl-x) the dropdown and then undo (ctrl-z) to bring it back.  That will refresh the dropdown control. 

Let's see if that gets us anywhere.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Now, when I click on the dropdown it is clickable, but doesn't show a list of choices. It just remains a blank dropdown.

@ahhollan 

DropDowns have always been picky about their datasource items.

Change the Items to DropDownSample.  Click on the DropDown to see that it has sample values.

Then change it back to 'TPS Regions'

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Sample values were showing when i changed it.  I changed it back and still no values showing in dropdown 2.

@ahhollan 

So, is Dropdown 1 now working properly?  Does it have it's values?  And, more importantly, when you reference it with Dropdown1.Selected.Abbreviation (say on a label) - does Abbreviation show up now?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Both dropdowns are now working properly.  I used your idea and changed it a little. I created a text input dependent on dropdown1 to display the abbreviation. Then I filtered dropdown2 based on the same abbreviation in the sites table. Working like a charm now. Thanks for your help.

@ahhollan 

Glad you got the results you needed.  But, just for reference - there is no need to go through those interim steps to get those results, as what you are trying to do works very well.  Something else is at play there that should be investigate, should time permit.

Post again if you run into issues.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

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 (3,582)