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 in...
Power Apps
Answered

cascading drop down inc. destinct and Filter from sharepoint list

(0) ShareShare
ReportReport
Posted on by 3

hi folks,

 

i got following problem with this few line of code:

 

//This is working
ClearCollect(dDBrancheData,{Result:"All"});
Collect(dDBrancheData,Distinct(Application,Branche));
//This is working this collection stays empty 
ClearCollect(dDSegmentData,{Result:"-"});
Collect(dDSegmentData,[Filter(Application, Branche = dDBranche.Selected.Result),Segment)];

 

but if im using the filter code on item (dropdown) itself it will work.

 

Filter(Application, Branche = dDBranche.Selected.Result),Segment)

 

but why its not working in the collection code ?

 

mybe some on has a clue 🙂

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @eisenhauer 

    I use a different code for creating the items for dropdown and combobox controls that doesn't involve using collections._2.png
    _3.png_1.png

    Hat tip to @WarrenBelz and @RandyHayes for the formulas

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Drrickryp 

    Just an FYI to simplify a little bit...when you are working with one column tables like those from Distinct or Choices, you can shorten the formula for adding the All to:

    Ungroup(
     Table({Items:Table({Result:"ALL"})}, {Items: Sort(Distinct(Table1, state), Result)}),
     "Items"
    ) 

     

    When you need the entire record in the resultant table, I find the Sequence formula to be quicker, but the above can be adapted to do that as well.

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Thanks @RandyHayes 

    Simpler is better!

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 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard