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 / Cascading drop down me...
Power Apps
Answered

Cascading drop down menu: What Am I do wrong?

(0) ShareShare
ReportReport
Posted on by 235

Hi all,

 

I try to build a cascading drop down menu. For example I have two drop downs:

 

dpd_Category => Value defines the items in dpd_Filter

dpd_Filter => Values will be used to filter a column of a SharePoint list

 

The Items of dpd_Category are: ["None", "Color", "Size", "Type"].

No, if I choose a value, the items of the dpd_Filter should be filled with values of the corresponding column of the SharePoint List.

So, in the OnSelect of the dpd_Category property I have the following:

 

ClearCollect(
 dpd_FilterGalleryItems,
 {Result: "None"}
);

Collect(
 dpd_FilterGalleryItems,
 Switch(
 dpd_FilterCategory.Selected.Value,
 "Color",
 Distinct(
 [@lst_Devices],
 Color
 ),
 "Size",
 Distinct(
 [@lst_Devices],
 Size
 ),
 Distinct(
 [@lst_Devices],
 Type
 )
 )
)

 

The result is strange. The items of dpd_Filter sometimes are different numbers or the "Type", even if I do not choose "Type" in dpd_Category. So I think the switch does not work correct. I made a simple check, where I only put text into the switch and it worked.

 

Whre is my mistake with the SharePoint list. Any ideas?

 

Thanks and best regards,

Michael

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    Hi @MichaGue ,

    Firstly, try putting that code on the OnChange rather than the OnSelect of the first drop-down.

     

    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

  • Verified answer
    WarrenBelz Profile Picture
    156,532 Most Valuable Professional on at

    Hi @MichaGue ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    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

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard