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 / Gallery with multiple ...
Power Apps
Unanswered

Gallery with multiple filters and combobox delegation issue

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have a gallery with multiple filters from dropdowns, search bar and a combobox, I am having issues with delegations since I have more than 2000 records. Can you suggest any other workarounds that is delegable. You may see my code below: 

 

 

 

Filter('Laptop Pickup Scheduler', StartsWith(Allocation, txtSearch.Text) Or StartsWith(Title, txtSearch.Text) Or StartsWith('Ticket Number', txtSearch.Text),
btnTransactions.Text = "All" || 'Transaction Type' = btnTransactions.Text, Status = "For Rebuild" || Status = "For Remed" || Status = "For Release" || Status = "Unclaimed" || Status = "Cancelled", IsBlank(cbStatusFilter.SelectedItems), IsEmpty(cbStatusFilter.SelectedItems), Status in cbStatusFilter.SelectedItems,
drpBUFilter.Selected.Value = "Select BU" || BU = drpBUFilter.Selected.Value,
drpLocationFilter.Selected.Value = "All" || Location = drpLocationFilter.Selected.Value,
IsBlank(dpDateFilter.SelectedDate) || 'Pick Up Date'>= dpDateFilter.SelectedDate && 'Pick Up Date' <= dpDateFilter_2.SelectedDate )

 

 

Categories:
I have the same question (0)
  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @VinChua   

     

    Is this for SharePoint?

     

    It looks like the issue you have is the use of the 'in' operator, which is not delegable in SharePoint

     

    Status in cbStatusFilter.SelectedItems

     

    Am I right in assuming you are allowing multi select in the cbStatusFilter? - if so, what you can do is replace that element (the above extract) of your code with something like this,

     

        Status.Value = Last(FirstN(cbStatusFilter.SelectedItems , 1)).Value ||
        Status.Value  = Last(FirstN(cbStatusFilter.SelectedItems , 2)).Value ||
        Status.Value = Last(FirstN(cbStatusFilter.SelectedItems , 3)).Value ||
        Status.Value = Last(FirstN(cbStatusFilter.SelectedItems , 4)).Value ||
        Status.Value = Last(FirstN(cbStatusFilter.SelectedItems , 5)).Value
     
    The above is based on an assumed total 5 nr of potential Status options - if you have more or less potential status options, you can adjust the number of items accordingly
     
    Hope this helps
  • VinChua Profile Picture
    on at

    Hi Amdev thanks for replying, yes this is for sharepoint and yes I have multiple options for my combobox which can be selected simultaneously.

     

    I have already tried your suggestion but nothing is showing in my gallery even if I haven't selected any at my filters yet

  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    Can you share the items property and data for the cbStatusFilter like as follows?

     

    AmDev_0-1704791615725.png

     

    Can you also share your updated code and confirm the column type for 'Status'?

     

    Cheers

  • VinChua Profile Picture
    on at

    Hi @AmDev ,

     

    I manage to fix the issues with some tweaks with your code, it is now working with the filters I needed. thank you!

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#2
11manish Profile Picture

11manish 192

#3
Valantis Profile Picture

Valantis 128

Last 30 days Overall leaderboard