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 80

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,601 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
    80 on at

    Thank you this worked well.

  • Florida712 Profile Picture
    80 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard