web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Cascading dropdown

(0) ShareShare
ReportReport
Posted on by 46

I have drop downs using 2 different tables connected by a key in each table. For simple problem say

Table1 has these columns

Officename, City, Countyid

 

Table2 has these columns

Countyid, Countyname, State

 

Countyid is a unique value

 

So I need the default in dropdown2 to show the Countyname based on the officename selected in dropdown1.

Categories:
I have the same question (0)
  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @Memtiger,

     

    You would have to filter the datasource mentioned in DropDown2's Items property. The code will look similar to:

    Filter(
     Table2, 
     IsBlank(Dropdown1.Selected) || Dropdown1.Selected.Countryid = Countryid
    )
    //If you only want the Countyname, you could append the filter with .Countyname

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • Memtiger Profile Picture
    46 on at

    Yes, that does the cascading when I put the filter in the items like you described. So that is a step in the right direction for me. When I change dropdown1 it does put the proper value in dropdown2 but what if I still wanted all the items available from table2 to be listed but only the default changed. 

  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    @Memtiger,

     

    In that case you could leave the Items property simply as:

    Table2 

     

    To change the default selection, we will need to add the following code to the Default property of your second dropdown:

    LookUp(
     Table2, 
     Dropdown1.Selected.Countryid = Countryid
    ).Countyname

    In order for this to work, make sure that Countyname is the field being displayed within your second dropdown.

     

    I hope this helps!

  • Memtiger Profile Picture
    46 on at

    That is perfect thank you very much.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard