Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

SharePoint Lookup Columns Filter Delegation

Posted on by 2
Hi, 

I am building an app to filter to exclude status = Draft.

I use this formula

 
Filter('Meeting Request',ReqStatus.Value <> "Draft")



but turns out it has delegation warning on .Value <> Draft



I checked on my other apps, it was not a problem there



Any idea why this happens?

  • Verified answer
    SebS Profile Picture
    SebS 4,149 on at
    SharePoint Lookup Columns Filter Delegation

    Hi,

    The ReqStatus.Value is a Choice column, which is considered complex in Power Apps. As a result, many functions, including In, Not, and <>, are not delegable operators in SharePoint. This is a common pitfall, as people often use these operators without considering how to reverse-engineer the filter logic for a Status field.

    Typically, you'll have a limited number of statuses, such as Approved, Rejected, Draft, Complete, or Started, depending on your design. Instead of filtering out records that are "Draft," why not reverse the logic and filter for records that match the other statuses?

    In your case, assuming you have three statuses Approved, Rejected, and Draft you can filter your ReqStatus column like this:

    Filter('Meeting Request', ReqStatus.Value = "Approved" || ReqStatus.Value = "Rejected")

    This approach will effectively exclude items with the status "Draft" by focusing on the other statuses you want to include.
     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,246

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,884

Leaderboard