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 / Delegation Warning - D...
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
)
)

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,123 Most Valuable Professional on at

    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.

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @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.

  • Florida712 Profile Picture
    78 on at

    Thank you this worked well.

  • Florida712 Profile Picture
    78 on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard