Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Data row limit affecting delegated results?

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I am looking for someone to save my sanity!  I am just testing a new app that when it goes live will be run against a large data set (SharePoint lists).  To make sure that delegation wouldn't be an issue I set the "Data Row Limit" to 1, theory being that if a function was subject to delegation it would now show up when testing against the smaller test data.  

 

Now the bit that is confusing me, after setting the Data Row Limit to 1 all my combo boxes started showing just 1 item, the first item in the list (putting the limit back to 500 all the items started showing again in the combo boxes).  The functions I am using for these Combo boxes are really basic ones like:

 

Function1.jpg

i.e. listname.column

 

I was under the assumption that this was delegable, maybe it's not or maybe there is something else going on here I am missing. 

 

Any thoughts/comments gratefully received.


Regards

Rob

 

Categories:
  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Data row limit affecting delegated results?

    @Rob_CTL 

    It can feel like that sometimes.  

    If you really want to blow your mind, wait until you discover that datasources refresh on demand automatically!!  Meaning, you don't have to issue a costly Refresh statement on a datasource...it will get new values in real-time!  But, that is off-topic, so I will leave that for another day 😋

  • Rob_CTL Profile Picture
    on at
    Re: Data row limit affecting delegated results?

    Thanks @RandyHayes that explanation has reduced my headache 🙂  I do love PowerApps but it really does sometimes feel like it's one step forward and two back.

  • Verified answer
    RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Data row limit affecting delegated results?

    @Rob_CTL 

    I believe the working in that setting is misleading!

    The only control that will sort of act that way is the Gallery.  However in your other controls, you will be limited to "record limit" number of records regardless of delegable or not.

     

    If you're going to use the Search function, then yes, you will have delegation issues as it is not delegable.  If possible, you could look at the StartsWith function for the Filter.  If the search ability is the only requirement, then the only choice would be to bring in all of the records of the list into a table variable and then perform the search function on that variable.

  • Rob_CTL Profile Picture
    on at
    Re: Data row limit affecting delegated results?

    @RandyHayes thanks for the reply, at the moment I've only changed the data row limit, from the description in PA this limits the number of records where delegation isn't possible (see below).

     

    function2.jpg

     

    So does this mean that the standard function I used above isn't delegable, thus the combobox is going to limited to showing 500 items? Of course that would be a very long scroll box, but I am using the search function within the combobox to speed up locating the desired item, maybe I need to use another function to get around the limit.

     

    Cheers

    Rob

     

  • Pstork1 Profile Picture
    65,942 Most Valuable Professional on at
    Re: Data row limit affecting delegated results?

    One addition to @RandyHayes comments.  What makes this confusing for a lot of people is galleries.  Galleries will ignore the Data Row limits if the Items property is using delegable functions.  That's where the test of setting the data row limit to 1 comes from.  If you want to check whether the Items setting for a gallery is delegable just set the data row limit to 1.  If you get 2-100 records in the gallery then the formula is delegable.  If not then its not.  But in my experience that only works for galleries.

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: Data row limit affecting delegated results?

    @Rob_CTL 

    Record limit and Delegation are two different things.  Record limit determines the number of records that your app will be able to retrieve at one time.  Delegation refers to being able to delegate a query to the datasource and then have it return the results.  If the results are MORE that the Record Limit, you will only get the record limit amount of records returned - even from a delegable query.

     

    I hope this is helpful for 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

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

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,942 Most Valuable Professional

Leaderboard