Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Governance and Administ...
Answered

Working with more than 2000 records

(0) ShareShare
ReportReport
Posted on by 22

Is there any method to work with more than 2000 records in PowerApps?

 

When  I open my form which has some Dropdowns and one Gallery I only get one single record instead of 33. 

 

This is my code:

Form: OnVisible: ClearCollect(colAll;Quellendaten)

 

Gallery: Items: SortByColumns(Filter(colAll;If(IsBlank(DropdownAbteilung.SelectedText.Value); true ;Title=DropdownAbteilung.SelectedText.Value)&&If(IsBlank(DropdownKlasse.SelectedText.Value); true ;Klasse=DropdownKlasse.SelectedText.Value)&&If(IsBlank(DatePickerAU.SelectedDate); true ;Datum=DatePickerAU.SelectedDate));"Klasse";If(SortDescending1;Descending;Ascending))

 

Or is there any other way how I can filter records from my SharePoint list? 

  • hpc Profile Picture
    36 on at
    Re: Working with more than 2000 records

    Hi Sik,

    the filter works correct, I get all the items.

    Thank you for your patient and extensive help. It is really much appreciated!

    Best regards,

    Hans Peter

  • v-siky-msft Profile Picture
    on at
    Re: Working with more than 2000 records

    Hi @AppsBe-Med ,

     

    it looks good now, but do you still think the gallery doesn't show all match item?

    Is there any delegation warning there? How many items it should be?

    BR

    Sik

  • hpc Profile Picture
    36 on at
    Re: Working with more than 2000 records

    Hi Sik,

    it works (All.png, All.png)!

    How about the date transfer into numbers? This also doesn't work for big datasets.

    Best regards,

    Hans Peter

  • AppsBe-Med Profile Picture
    22 on at
    Re: Working with more than 2000 records

    Hi Sik,

    so far it works (if.png).

    Best regards,

    Hans Peter

  • Verified answer
    v-siky-msft Profile Picture
    on at
    Re: Working with more than 2000 records

    Hi @AppsBe-Med ,

     

    Thanks for you debug, that reminds me a thread I ever answered: Hitting Non-Delegable query limit when I think I'm using delegable functions  .

    It seems the IF function in the SortByColumns/Filter function will cause the non-delegation error. And the workaround is to move If part function to the beginning of the formula, first to check IF condition. Although you have three if condition, the code could be much complex, I think it deserves a try.

    Best regards,

    Sik

  • AppsBe-Med Profile Picture
    22 on at
    Re: Working with more than 2000 records

    Hi Sik,

    selection by "Klasse" works as well. 

    If the first two dropdowns ("Abteilung" and "Klasse") are blank and the DatePicker shows the date of today then all the records of today should be shown. How can I handle this as I may not use If()?

    Best regards,

    Hans Peter

  • hpc Profile Picture
    36 on at
    Re: Working with more than 2000 records

    Hi Sik,

    here is what I got: "Sort" and "Filter" works (SortFilter.png), but "If" doesn't work (If.png).

    Is there any other way to select for "Abteilung" and "Klasse" or empty?

    Best regards,

    Hans Peter

     

  • v-siky-msft Profile Picture
    on at
    Re: Working with more than 2000 records

    Hi @AppsBe-Med ,

     

    Could you check if the Date2Num column has been all converted into number successfully?

    What's the type of Title and Klasse column? Can you remove the sortbycolumns function and the first two condition to check if what causes the non-delegation?

    I have test on my side: the Num is number column converted from date by ForAll function

    Snipaste_2019-11-20_10-02-21.png

    Then I set the limitation for non-delegable requires to 1, set the gallery Items as below. Finally it still displays all items matched

    Filter(test1,Num = Value(Text(DatePicker1.SelectedDate,"[$-en]ddmmyyy")))

      Annotation 2019-11-20 100325.png

    Could you test, as I did, adding more function one by one to debug which function would cause the non-delegable error?

    Best regards,

    Sik

  • AppsBe-Med Profile Picture
    22 on at
    Re: Working with more than 2000 records

    Hi Sik,

    thanks for your instructions.

    Unfortunately I still get the same result. All data shown by limitation of non-delegable queries to 2000, only one old record by limitation of non-delegable queries to 500 records.

    Best regards,

    Hans Peter

     

     

  • Verified answer
    v-siky-msft Profile Picture
    on at
    Re: Working with more than 2000 records

    Hi @AppsBe-Med ,

     

    Oh, Sorry for that the Calculated Column isn't delegable in PowerApps, it should be the real Text/Value column which is delegable.

    so we should first to convert the date column to Number column, and then add Number column to Patch expression to keep the column up to date when creating the new items later.

    To transfer the Date column to real Number column, I provide a workaround: Create a Number column is SP, use ForAll function to convert date to Number column in PowerApps.

    ClearCollect(temcol;'SP list');;ForAll(temcol;Patch('SP list';LookUp('SP list'; ID=temcol[@ID]);{'Date2Num':Value(Text(temcol[@Datum];"ddmmyyy"))})) 
    /* temcol[@ID] isn't delegable, set the limit to 2000 */

     Then apply Date2Text column into the code.

    SortByColumns(Filter(colAll;If(IsBlank(DropdownAbteilung.SelectedText.Value); true ;Title=DropdownAbteilung.SelectedText.Value)&&If(IsBlank(DropdownKlasse.SelectedText.Value); true ;Klasse=DropdownKlasse.SelectedText.Value)&&If(IsBlank(DatePickerAU.SelectedDate); true ;Date2Num=Value(Text(DatePickerAU.SelectedDate,"ddmmyyy"))));"Klasse";If(SortDescending1;Descending;Ascending))

    Hope this can help.

    Best regards,

    Sik 

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Featured topics