cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
s44
Super User
Super User

New problem Cascading dropdown with choice type columns

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

15 REPLIES 15
WarrenBelz
Super User
Super User

Hi @s44 ,

Try this

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

 

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

I just tried your solution, but I still have the same problem. The items of "Filiere" are empty on the Power Apps form 😞 @WarrenBelz 

 

s44_1-1650015176422.png

 

s44_0-1650015059625.png

 

Pavan_Mani_Deep
Helper I
Helper I

Hi @s44,

 

Please see this video for more clarity https://www.youtube.com/watch?v=SKMwayf_cuM.

 

Hope this helps...

 

Cheers,

PMDY

What Shane Young does in his video doesn't work. Because I have ComboBoxes and not DropDowns @Pavan_Mani_Deep 

Indeed the video does not offer any solution to solve your problem. But I'm just as stuck as you. It's a very strange problem.

I've been stuck for 2 days 😞

@s44 ,

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

 

I have 7 lines ^^ @WarrenBelz 

s44_1-1650020249822.png

 

WarrenBelz
Super User
Super User

@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

 

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,692)