Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

filtering delegation

(0) ShareShare
ReportReport
Posted on by 39

Hi everyone,

 

currently I'm creating a material asset tracking apps to track material availability and validity.  

But I'm having an issue with my Filter delegation. How can I solve this delegation issue? please refer snapped below.

Khairul_Amri_0-1709702920343.png

Thank you.

  • Khairul_Amri Profile Picture
    39 on at
    Re: filtering delegation

    its work.

     

    thank you.

     

  • Verified answer
    Sohan Profile Picture
    142 on at
    Re: filtering delegation

    Hello @Khairul_Amri,

    Dealing with delegation warnings in Power Apps can be tricky, especially when using the in operator. You may use this trick.

    Pre-Filtering with With Function:
    The delegation warning arises because the in operator is not fully delegable to your data source. To mitigate this, you can pre-filter your data using the With function.
    Here’s an example of how you can structure your formula:

    With({
    _preFilter: Filter(
    Sharepoint_List,
    StartsWith('Title', TextSearchBox1.Text) &&
    (IsBlank(ComboBox1.Selected.Value) || Satellite.Value = ComboBox1.Selected.Value)
    )
    },
    SortByColumns(
    Filter(
    _preFilter,
    collectionType in typeSelectionFilter.Value,
    collectionArea in areaSelectionFilter.Value
    ),
    "Created",
    If(SortDescending1, Descending, Ascending)
    ))

     

    Replace the placeholders (Datasource, TextSearchBox1.Text, etc.) with your actual field names and variables.

    I hope this helps! Let me know if you have any further questions. If this solves your question, please accept it as a solution & give it a thumbs up to help other community members find it more.

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,587 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard