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 / Filter with &&& Delega...
Power Apps
Answered

Filter with &&& Delegation Warning

(0) ShareShare
ReportReport
Posted on by

Hi

I am trying to filter data directly from the data source using FILTER. But, as I have a couple of AND statements in there, I am getting a delegation warning. 

 

My thoughts therefore are to filter the datsource to a collection with just a single fitler query and then to filter the collection again for the gallery item. Is this the best way?

 

Best wishes.

Categories:
  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @jed76 ,

     

    Can you please share a bit more context?

     

    1. Please share the full formula

    2. What data source are you using (Dataverse, SharePoint, SQL, etc.)

    3. What are the types of the columns that you are using in the filter conditions?

  • jed76 Profile Picture
    on at

    Many thanks. 

     

    Yes, it's a SP List and I am trying to filter based on "Employee=curUser.FullName && LeaveType="Leave".

     

    It seems that I get a delgation warning with the "&&" section so I thought it best to just get the Employee name into a Collection first and then filter the collection based on LeaveType?

     

     

  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @jed76 ,

     

    What types of columns are Employee and LeaveType? 

  • jed76 Profile Picture
    on at

    Single line Text.

  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @jed76 ,

     

    In that case you should not be getting a delegation warning.

     

    Having said that, it can be that a warning is given whilst you are editing the formula, but when finished it should disappear:

     

    While editing: 

    BCBuizer_0-1682331356130.png

    When finished:

    BCBuizer_1-1682331395612.png

     

  • jed76 Profile Picture
    on at

    Thanks. That's really odd actually as I've just tried something similar and I am not getting the delegation warning. Earlier it definitely mentioned that the "&&" option wasn't delegable?

  • Verified answer
    BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @jed76 ,

     

    For SharePoint, the documentation specifically mentions that && (And) is delegable: https://learn.microsoft.com/en-us/connectors/sharepointonline/#delegation-notes

     

    In case your issue has been resolved, please press the "Accept as Solution" button on the post that has the solution for the benefit of the community.

  • jed76 Profile Picture
    on at

    I'm now getting a delegation warning for this saying that the 'Add' operator is not delegable??

     

    If(chk30days.Value = false,

    Sort(
    Filter(
    'Time Off Requests', TimeOffType_ = "Sick", From >= Today()-365 ),From,SortOrder.Descending),

    Sort(
    Filter(
    'Time Off Requests', TimeOffType_ = "Sick", From >= Today()-30 ),From,SortOrder.Descending))

  • Verified answer
    BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @jed76 ,

     

    In this case "add" refers to the arrhythmic operator "-" which is not delegable. Instead use the DateAdd funtion. Also your formula contains a few duplicates, so I went ahead and compacted it a bit:

     

    Sort(
    	Filter(
    		'Time Off Requests',
    		TimeOffType_ = "Sick",
    		From >= DateAdd(
    			Today(), 
    			If(
    				chk30days.Value,
    				-30,
    				-365
    			)
    		)
    	),
    	From,
    	SortOrder.Descending
    )

     

  • jed76 Profile Picture
    on at

    Many thanks!! 

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard