cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ahhollan
Post Patron
Post Patron

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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

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

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,305)