cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HubbardInc
Helper III
Helper III

Delegation Issue

Can someone please help me with this delegation warning. I'm not sure how to change my formula for this gallery to be delegate-able. I have the same problem with my item counters as well. Thank you.PowerApps FilterGallery7.jpgPowerApps FilterGallery8.jpg

6 REPLIES 6
eka24
Super User
Super User

If the status column is a choice column, change that portion to;

 

StatusColumn.Value

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

On the first picture i sent, on the if statement, that option worked, however when performing the CountRows function, it did not. CountRows is not a delegate-able function? 

Did you change to StatusColumn.Value?

Also:

Yes CountRows cannot be delegated. How many rows are you dealing with, more than 2000 even after filtering?

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

This is the current formula.

 

CountRows(Filter('IT Support Tickets','Ticket Status'.Value = "In-Progress"))

 

It should return the count of items where the sticket status = "In-Progress"

 

But if CountRows can't be delegated, what are my options?

You didn’t mention what your source for this is. If you use common data service, you can build system views filtered to the records with the desired status to filter your gallery https://www.google.com/amp/s/www.inogic.com/blog/2019/12/avoid-delegation-while-filtering-records-in...

 

how many total records are in your source?

You can use a collection but i asked you how many rows do you have?

Also on you File...Advance settings have increase the delegation to 2000?

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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