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 / Help with filters/coll...
Power Apps
Answered

Help with filters/collection

(0) ShareShare
ReportReport
Posted on by 36

3.PNG4.PNG5.PNG1.PNG6.PNG2.PNG

I am trying to filter the gallery by the 2 drop downs, however my collection won't work currently (the records are not being added from either entity). Can anybody see where I am going wrong?

Any help is much appreciated I have been banging my head against the wall for a while now!!

Categories:
I have the same question (0)
  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @bennstef ,

     

    I made a test on my side based on your scenario, please try with the following code.

    Put the following code to Gallery.Items property.

    Filter(
     SKUs,
     'Product Family'.'Product Family' in 'Demand Families'.'Product Family',
     'Product Family'. 'Family Name'=LeftDropdown.Selected.Result,
     Colour=RightDropdown.Selected.Result
    )

    Snipaste_2020-06-18_15-28-30.png

    Sik

  • bennstef Profile Picture
    36 on at

    Thank you for the help dude. I have implemented the above solution with no luck 😞 

    noluck.PNG

     

    If I comment out these two lines:

     

     

     //'Product Family'.'Product Family' in 'Demand Families'.'Family Name',
     //'Product Family'.'Family Name' = Dropdown1.Selected.Result,

     

     


    Then results will appear, so must be something going wrong here ^

    (Demand families has been added as a data source just to clarify that)

    Any ideas?



  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @bennstef ,

     

    How many rows in SKUs entity? 

    Since the formula is not delegable, If it has more than 500 rows records, please try to increase the threshold of non-delegable queries to 2000.

    Snipaste_2020-06-18_16-54-35.png

    Please let me know if it works for your case.

    Sik

  • bennstef Profile Picture
    36 on at

    There is only about 10 records in their atm 😕 

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @bennstef ,

     

    Ok, maybe I misunderstood something.

    Could you please elaborate more about what does the filter condition mean?

    Snipaste_2020-06-18_17-04-24.png

    Product Family in SKUs entity is a lookup field, related to Demand Families entity. I cannot figure out what's the intention of this filter formula.

    Sik 

  • bennstef Profile Picture
    36 on at

    This was an attempt to include to the product family/name from Demand families into a new collection with SKUs. (Someone suggested to try it this way).

    I have removed this code as it looked like the solution you provided did not need this code. 


  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @bennstef ,

     

    From my view, this filter condition doesn't make any sense, because as long as product family field is not null, this filter condition is always true.

    Will the gallery work properly after removing this part of the code?

    Sik

  • bennstef Profile Picture
    36 on at

    I removed this code when I tried your solution with no luck dude.

    Not sure why it won't work its spot on with your code and you have a working example 😞 

    *Continues to bang head against wall*

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @bennstef ,

    Did you check the entity data? Are there any record that meet these filtering criteria?

    Filter(
     SKUs,
     'Product Family'. 'Family Name'=LeftDropdown.Selected.Result,
     Colour=RightDropdown.Selected.Result
    )

    Sik 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 421 Most Valuable Professional

#2
11manish Profile Picture

11manish 153 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 116 Super User 2026 Season 2

Last 30 days Overall leaderboard