Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

New problem Cascading dropdown with choice type columns

(0) ShareShare
ReportReport
Posted on by 691

Hello, I have 2 SharePoint lists with "Choice" type columns that look like this : 

s44_1-1649930038901.png

s44_0-1649930015736.png

 

I would like to create "Cascading Dropdown" on a form with Power Apps, by connecting to my SharePoint lists. But I don't understand at all how to do this with choice type columns. Everything I try fails. 😞

For example, I tried to write this:

 

s44_0-1650009347716.png

s44_1-1650009394463.png

 

But when I launch my Power Apps form, it doesn't work, the items of "Filiere" are empty :

s44_2-1650009460233.png

 

Can you help me please ? Thanks in advance ><

  • s44 Profile Picture
    691 on at
    Re: New problem Cascading dropdown with choice type columns

    Ohh, I had to change the "Value" to "Result"! It's work now ! Thank you so much for not abandoning me despite this mess :0 !!!! @WarrenBelz 

  • s44 Profile Picture
    691 on at
    Re: New problem Cascading dropdown with choice type columns

     .

  • Verified answer
    WarrenBelz Profile Picture
    146,679 Most Valuable Professional on at
    Re: New problem Cascading dropdown with choice type columns

    The below simply should work - particularly when you are not getting any errors (which implies all the references are correct)

    Distinct(
     AddColumns(
     Filter(
     'Categorie et Filiere'; 
     Categorie.Value = DataCardValue2.Selected.Value
     ),
     "FiliereValue",
     Filiere.Value
     ),
     FiliereValue
    ).Result

    I assume you see this when you select Edit in the right pane  - if so I have no other answer - it simply should work (and does do when I tested it here).

     

    WarrenBelz_0-1650026207966.png

  • s44 Profile Picture
    691 on at
    Re: New problem Cascading dropdown with choice type columns

    Yes, single-select dropdowns. And in the Sharepoint list "Categorie" and "Filiere" are of choice type 😕 @WarrenBelz 

  • WarrenBelz Profile Picture
    146,679 Most Valuable Professional on at
    Re: New problem Cascading dropdown with choice type columns

    @s44 ,

    The data source drop-down will always be disabled when custom code is used in the Items. I have no more ideas as this simply should work - it is a very basic filter - I assume both of these are single-select combo boxes ?

  • s44 Profile Picture
    691 on at
    Re: New problem Cascading dropdown with choice type columns

    I'm sure, but here "Source de données" is grayed out. Maybe that's the problem? @WarrenBelz 

    s44_0-1650022682351.png

     

  • WarrenBelz Profile Picture
    146,679 Most Valuable Professional on at
    Re: New problem Cascading dropdown with choice type columns

    @s44 ,

    The syntax is valid - I just did a test here to confirm this as below - Items of the second combo box

    WarrenBelz_0-1650022069932.png

    and the output

    WarrenBelz_1-1650022114175.png

    Are you sure this is not a data issue?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • s44 Profile Picture
    691 on at
    Re: New problem Cascading dropdown with choice type columns

    I have 7 lines ^^ @WarrenBelz 

    s44_1-1650020249822.png

     

  • WarrenBelz Profile Picture
    146,679 Most Valuable Professional on at
    Re: New problem Cascading dropdown with choice type columns

    @s44 ,

    How many items are in the list 'Categorie et Filiere' ? The Distinct filter is not Delegable

     

  • s44 Profile Picture
    691 on at
    Re: New problem Cascading dropdown with choice type columns

    I've been stuck for 2 days 😞

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard