Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Cascading drop for Country and State based on lookup field from other list

(1) ShareShare
ReportReport
Posted on by 56

Hi Team,

 

Need to display Country and State value in to two different dropdown based on the selection from two different lists.

 

Country List: 

         Country_Name                Country_Code     

UNITED STATES

US

ARGENTINA

AR

 

State List: 

State_Name           State Code     Country_Code  (lookup column from Country list)

Corrientes

04

AR

Entre Rios

05

AR

Jujuy

06

AR

Mendoza

07

AR

Alaska

AK

US

Alabama

AL

US

Arkansas

AR

US

 

Poweapps:

 

Country Dropdown: Should display Country_Name

State Dropdown: Should display State_Name list based on the Country selected.

 

Please assist how to write the formula for both the fields will be a great help.. 

  • Ganesh_naga Profile Picture
    56 on at
    Re: Cascading drop for Country and State based on lookup field from other list

    Hi Anand,

     

    For the line ddCountry.Selected.Country_Code,  I am not getting Country_Code. Only showing ddCountry.Selected.Value

     

  • anandm08 Profile Picture
    1,936 Super User 2025 Season 1 on at
    Re: Cascading drop for Country and State based on lookup field from other list

    hi @Ganesh_naga ,

    Assuming you have two SharePoint lists or collections (CountryList and StateList) as described:

    • CountryList contains:

      • Country_Name (Text)
      • Country_Code (Text)
    • StateList contains:

      • State_Name (Text)
      • State_Code (Text)
      • Country_Code (Lookup to CountryList)

    Step 2: Set the Items property of the Dropdowns

    Country Dropdown (ddCountry)

    Set the Items property of the Country dropdown (ddCountry) to display Country_Name from CountryList:

     

    CountryList.Country_Name

     

    State Dropdown (ddState)

    Set the Items property of the State dropdown (ddState) to filter StateList based on the selected Country_Code from ddCountry:

     

    Filter(StateList, Country_Code = ddCountry.Selected.Country_Code).State_Name

     

  • mmbr1606 Profile Picture
    12,108 Super User 2025 Season 1 on at
    Re: Cascading drop for Country and State based on lookup field from other list

    hey @Ganesh_naga 

     

    this video should show everything you need to know:

    How to create Cascading (Dependent) Dropdowns in Power Apps (youtube.com)

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard