cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
genarich
Helper V
Helper V

Alternative code to eliminate delegation warning

Are there any alternatives to writing the below code? I keep on getting a delegation warning.

 

My goal is to display multiple values selected on the combo box field.

 

genarich_0-1630819528510.png

 

SortByColumns(
Filter(
'Demand App - Log Issues',
Status in ComboBox1.SelectedItems || IsBlank(ComboBox1.Selected.Value) || IsEmpty(ComboBox1.SelectedItems)
),
"LoggedDate",
Descending
)

3 REPLIES 3
WarrenBelz
Super User
Super User

@genarich ,

The in Filter is not Delegable and as you are not using any other filter, there is no Delegation workaround. How many items are in the list?

Currently, there are 6 items.

 

But is there any other way to remove this warning? It is not a problem as of yet, since I don't have numerous list, but it may in the future.

 

genarich_0-1630848874552.png

 

Drrickryp
Super User
Super User

@genarich 

In the future you may have to prefilter your data, perhaps by a date range to keep the number below 2k items and then apply your formula. There are examples in @WarrenBelz 's  blog Practical PowerApps of how to do this.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,521)