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 Platform Community / Forums / Power Apps / Azure SQL cascading dr...
Power Apps
Answered

Azure SQL cascading dropdowns

(0) ShareShare
ReportReport
Posted on by 42

Dear Community,

 

I'm currently building a powerapp using MS Azure SQL Database as a backend. I followed Shane's videos around this topic, great stuff!! However I'm having some difficulties to get some cascading dropdowns working properly.

 

Previously with a sharepoint list I got it working using the following formulas within the Items property of the dropdown:

 

Dropdown 1:

Sort(Distinct(Sharepointlist; Columnname);Result)
 
Dropdown 2:
Sort(Distinct(Filter(Sharepointlist; Columname_search = DataCardValue.Selected.Result);Columname_result); Result)
 
For SQL DB I have applied the following formulas:
 
Dropdown 1:
ShowColumns('SQL Database'; "column"; "ID")
 
In total I have 4 cascading dropdowns with interdpendency. Basically I need to combine Distinct & Filter with ShowColumns formulas but I haven't got this working yet.
 
Any Ideas?

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @sbossler_079 ,

    Do you want to set up your cascading Dropdowns 2 through 4 based on the Dropdown1?

     

    Based on the needs that you mentioned, I have made a test on my side, please consider take a try with the following workaround:

    Set the Items property of the Dropdown1 to following:

    ShowColumns('SQL Database'; "column"; "ID")

    Set the Items property of the Dropdown2 to following:

    Distinct(
     Filter(
     'SQL Database';
     ID = Dropdown1.Selected.ID
     ),
     "Column2"
    )

    Set the Items property of the Dropdown3 to following:

    Distinct(
     Filter(
     'SQL Database';
     Column2 = Dropdown2.Selected.Result
     ),
     "Column3"
    )

    Set the Items property of the Dropdown4 to following:

    Distinct(
     Filter(
     'SQL Database';
     Column3 = Dropdown3.Selected.Result
     ),
     "Column4"
    )

    Please consider take a try with above solution, then check if the issue is solved.

    Note: You could also apply Sort function to above Distinct formula as your previous formula mentioned

     

    Best regards,

  • Rsalame Profile Picture
    14 on at

    I have a same concern for cascading dropdown with SQL , but for multiple table .  each dropdown will show different column from different table. So is it possible to achieve cascading dropdown with multiple table for sql in power apps. If possible please let me some walk through

  • Rsalame Profile Picture
    14 on at

    I have 5 table in sql database.  each table connected with each other through a primary and foreign.

    Like 1st table is connected with 2nd 

    2nd  table is connected with 3rd likewise.

    So cxan we create dependent dropdown for such scenario in  power apps.

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard