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 / 500 Row Limit for Look...
Power Apps
Answered

500 Row Limit for Lookup function?

(0) ShareShare
ReportReport
Posted on by 69

I was under the impression the lookup function was delegable.  I have a formula that populates the item field of a displayform.  However, it only works for the first 500 rows.  

 

If(Len(tSS_2.Text)=9,Set(itemRecord,LookUp(dataSourceRead,UNIQUE_ID=tSS_2.Text)),
Set(itemRecord, LookUp(dataSourceRead,BADGE=Value(tSS_2.Text))))

Thoughts?

 

 

Categories:
  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    The lookup function is delegable but the Value() is not. You should see a blue squiggly line by that the Value() function.

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @KUNGFUPANDA559 ,

    What is your data source? Can you share the delegation warning details?

    How many rows does data source have?

     

    I have made a test (based on Sharepoint, more than 500 items), and don’t have the delegation issue you mentioned.

    As the image shown, the 512th record can be looked up.

    Annotation 2019-08-22 131214.png

    By the way, the lookup function , the operator ‘=’, and the data source are all the factors that can’t be delegated.

    So please post your data source and delegation warning details to make an accurate judgment.

     

    If you want to overcome the 500 items limitation, you can refer to following:

    1. Increase the total limit items from 500 to 2000(Max) if the amount of record is under 2000.

    Click file (top left corner) > App settings > Advanced settings > set value for non-delegable queries.

    1. If the amount of record is more than 2000, create collection to store the data, and use collection in your formula instead of the current data source.
    • Set the OnStart property of the App control as below:

    Note: assume the amount of datasource is 6000, and have the primary identify type column “ID”.

    Concurrent(
        ClearCollect(VarCollection1, Filter(dataSourceRead, ID >= 1 && ID <= 2000)),
        ClearCollect(VarCollection2, Filter(dataSourceRead, ID >= 2001 && ID <= 4000)),
        ClearCollect(VarCollection 3, Filter(dataSourceRead , ID >= 4001 && ID <= 6000)),
        );
    ClearCollect( VarCollection, VarCollection 1, VarCollection 2, VarCollection 3)
    
    

    Tips: If you don’t know the amount of datasource, you can check this:

    UpdateContext({firstrecord: First(datasource)});
    UpdateContext({lastrecord: First(Sort(datasource, ID, Descending))});
    Amount= lastrecord.ID - firstrecord.ID
    • Modify your formula as below:
    If(Len(tSS_2.Text)=9,Set(itemRecord,LookUp(VarCollection,UNIQUE_ID=tSS_2.Text)), Set(itemRecord, LookUp(VarCollection ,BADGE=Value(tSS_2.Text))))

    Please have a try with above workaround, and check if the issue is solved.

     

    Best regards,

    Sik

  • KUNGFUPANDA559 Profile Picture
    69 on at

    @v-siky-msft I'm using Azure SQL.   Shouldn't i be able to filter the datasource using the conditions in the if then statement?

     

    e.g.

     

    Filter(VarCollection,tss_2.text=unique_id)
  • KUNGFUPANDA559 Profile Picture
    69 on at

    @v-siky-msft 

     

    The data source is dynamic and each could be as many as 200k records.  Surely there has to be an alternative to hardcoding logic for each 2k rows.

  • Verified answer
    KUNGFUPANDA559 Profile Picture
    69 on at

    I found my solution.  In the event you're struggling the following worked for me:

     

    Button Press

     

    Set(dataSource,Filter(dataSourceRead,unique_id=id))

    Form Item property:

     

    first(datasource)

    Form Datasource

     

    datasource

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard