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 / Delegation warning on ...
Power Apps
Answered

Delegation warning on filtering a text field

(0) ShareShare
ReportReport
Posted on by 18

I have a filter set on the items property of a gallery, the data source is a sharepoint list 'Registration Requests'. The filter is based on the inputs in cbStatus_3 and cbProduct_2, and the columns 'Status' and 'Product Type' are both plain text input field columns. 

 

When I only add the first argument into filter (Status), the filtering works fine. However, when I include the Product Type filtering, I get a delegation warning and the gallery returns no records. The datasource currently only has about 490 records in total but will grow to be quite large. Any ideas???

 

Sort(
Filter(
'Registration Requests',IsBlank(cbStatus_3.SelectedItems.Value) || IsEmpty(cbStatus_3.SelectedItems) || Status = cbStatus_3.Selected.Value,
'Registration Requests',IsBlank(cbProduct_2.SelectedItems.Value) || IsEmpty(cbProduct_2.SelectedItems) || 'Product Type' = cbProduct_2.Selected.Value
),
Created,SortOrder.Descending)

Categories:
I have the same question (0)
  • Verified answer
    ReneeB Profile Picture
    18 on at

    I'm an idiot. Correct formula for users going through something similar: 

    Sort(
    Filter(
    'Registration Requests',

    IsBlank(cbStatus_3.SelectedItems.Value) || IsEmpty(cbStatus_3.SelectedItems) || Status = cbStatus_3.Selected.Value,
    IsBlank(cbProduct_2.SelectedItems.Value) || IsEmpty(cbProduct_2.SelectedItems) || 'Product Type' = cbProduct_2.Selected.Value
    ),
    Created,SortOrder.Descending)

  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @ReneeB,

     

    You indeed only have to mention your datasource once within a Filter() statement - glad the issue is resolved. 🙂

    In order to close the topic and make the solution easier to find - you can accept your reply as a solution.

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 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard