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 / How to solve delegatio...
Power Apps
Answered

How to solve delegation issue of filter with conditions?

(0) ShareShare
ReportReport
Posted on by 6

Hi all,

 

Still new to Power Apps, and couldn't quite google myself out of this issue.

I have a gallery that I want to filter on partner name using text input, and using a toggle for optional inclusion of completed items.

By default the completed items are hidden.

Below code on items of BrowseGallery1 is working as intended, but has a delegation risk.

 

If(Toggle1.Value = false,
Filter('Learning Demand',
'Demand Status2' <> "Completed",
StartsWith('Partner Name',TextSearchBox1.Text)),
Filter('Learning Demand',

StartsWith('Partner Name',TextSearchBox1.Text)))

 

Who can help me solve this?

 

Many thanks!

Rianne

Categories:
  • Verified answer
    timl Profile Picture
    37,374 Super User 2026 Season 2 on at

    @Rianne1 

    Assuming that SharePoint is your data source, the problem is that the <> is not delegable.

    There's no simple workaround except to use the = operator and to specify all the other status types other than "Completed".

    If(Toggle1.Value = false,
    Filter('Learning Demand',
    'Demand Status2' = "Started" || 'Demand Status2' = "In Progress" || 'Demand Status2' = "etc..",
    StartsWith('Partner Name',TextSearchBox1.Text)),
    Filter('Learning Demand',
    
    StartsWith('Partner Name',TextSearchBox1.Text)))
  • Rianne1 Profile Picture
    6 on at

    @timl That was an easy fix, 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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 337 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard