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.
only Region appears. The Abbreviation column is a single line of text in the list. It is a SharePoint list.
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.
The label works and shows the value of the Abbreviation.
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.
Now, when I click on the dropdown it is clickable, but doesn't show a list of choices. It just remains a blank dropdown.
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'
Sample values were showing when i changed it. I changed it back and still no values showing in dropdown 2.
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?
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.
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.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
192 | |
67 | |
46 | |
41 | |
22 |
User | Count |
---|---|
252 | |
122 | |
84 | |
80 | |
69 |