Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Delegation Warning - Dataverse Gallery Filtering

(0) ShareShare
ReportReport
Posted on by 78

Hello,

I have a Gallery that shows data from Dataverse. My table has >50,000 rows added per year hence I am in Dataverse.
I want to avoid delegation warnings.
I have two comboboxes to use as input for filtering the gallery results. The gallery should be empty unless at one of the filter boxes has a value. I can live with only one of the two filter values being applied.

I use this code but get a delegation warning and do not know why (IsBlank, StartsWith, Filter - all should be delegable)

This is the code to address one combobox based filter only.
Thanks a lot

Filter(
'FPO EMS Truck Entry Data',
If(
IsBlank(cmbFilterCarrier_SRS.Selected.carrier),
true,
StartsWith(
Carrier,
cmbFilterCarrier_SRS.Selected.carrier
)
)

  • Florida712 Profile Picture
    78 on at
    Re: Delegation Warning - Dataverse Gallery Filtering

    I have the FI-statement to allow me to have the gallery empty if no selection was made. Since I have such a large dataset I do not want all data to be brought in prior to filter or search by the user.
    I will work with your approach on a combined filter. Thank you.

  • Florida712 Profile Picture
    78 on at
    Re: Delegation Warning - Dataverse Gallery Filtering

    Thank you this worked well.

  • Verified answer
    RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Delegation Warning - Dataverse Gallery Filtering

    @Florida712 

    Please consider changing your Formula to the following:

    Filter('FPO EMS Truck Entry Data',
     !IsBlank(cmbFilterCarrier_SRS.Selected.carrier) && StartsWith(Carrier, cmbFilterCarrier_SRS.Selected.carrier)
    ) 

     

    I am assuming that Carrier is a text column!

     

    I hope this is helpful for you.

  • Pstork1 Profile Picture
    66,004 Most Valuable Professional on at
    Re: Delegation Warning - Dataverse Gallery Filtering

    I believe you are getting the delegation warning because you are using the IF() inside the filter.  Try adding the IF() portion to a With() outside the filter and then use the value from the With in the filter.  Something like this

    With({filterValue: If(
    IsBlank(cmbFilterCarrier_SRS.Selected.carrier),
    true, false) }
    Filter(
    'FPO EMS Truck Entry Data',
    filterValue,
    StartsWith(
    Carrier,
    cmbFilterCarrier_SRS.Selected.carrier
    )
    )
    
    

    But I'm not sure what you are using the If() for.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard