web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / cascading drop down in...
Power Apps
Unanswered

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:
I have the same question (0)
  • 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,297 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard