web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Assistance with 2000 record limit issues

(0) ShareShare
ReportReport
Posted on by
Hello,
 
I'm running into the 2000 record limit issue with my gallery. I'm trying to follow Raza’s  method with the pagination, but my formula only pulls 2000 records, and my current source has 2002 items. I have pasted my "OnStart" formula, GalleryHidden, and Gallery2 Formula. Thanks!
 
 

OnStart Screen Formula

  

Set(popUpVis, true);

 

Set(varSortColumn, "ID");

 

Set(varSortDirection, SortOrder.Descending);

 

Set(varDelegationLimit, 500);

 

// Clear and collect data directly from your data source

 

ClearCollect(

 

    CollectionName,

 

        'Virtual Personnel Portal Ticket'    

 

);

  
 

GalleryHidden Formula 

  

Filter(

 

    CollectionName,

 

    // Section filtering

 

    If(

 

        Gallery1.Selected.Value = "All",

 

        true,

 

        'FSS Section' = Gallery1.Selected.Value

 

    ) &&

 

    // Ticket status filtering

 

    (

 

        IsBlank(ComboBox1.SelectedItems) ||

 

        'Ticket Status' in ComboBox1.SelectedItems

 

    ) &&

 

    // Additional section filtering

 

    (

 

        IsBlank(ComboBox1_1.SelectedItems) ||

 

        'FSS Section' = ComboBox1_1.Selected.Value

 

    ) &&

 

    // Technician filtering

 

    (

 

        IsBlank(ComboBox1_3.SelectedItems) ||

 

        Technician = ComboBox1_3.Selected.Value

 

    ) &&

 

    // Text search filtering

 

    (

 

        IsBlank(IDFilter_1.Text) ||

 

        StartsWith(Text(ThisRecord.ID), IDFilter_1.Text) || // Correctly converting ID

 

        StartsWith('Last Name', IDFilter_1.Text) ||

 

        StartsWith(Technician, IDFilter_1.Text) ||

 

        StartsWith(Issue_Text, IDFilter_1.Text) ||

 

        StartsWith('Customer Comment', IDFilter_1.Text)

 

    )

 

)

 

 

Gallery2 Formula 

  

If(

 

iconNext.DisplayMode = DisplayMode.Disabled,

 

// Handling last set of records

 

LastN(

 

FirstN(

 

GalTicketHidden.AllItems,

 

drpPaginationSize.Selected.Value * varPageNumber

 

),

 

drpPaginationSize.Selected.Value - (drpPaginationSize.Selected.Value * varPageNumber - CountRows(GalTicketHidden.AllItems))

 

),

 

LastN(

 

FirstN(

 

GalTicketHidden.AllItems,

 

drpPaginationSize.Selected.Value * varPageNumber

 

),

 

drpPaginationSize.Selected.Value

 

)

 

)


 
 
 
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    152,827 Most Valuable Professional on at
    Assistance with 2000 record limit issues
    Assuming you have your Data Row Limit set at 2,000, you can collect up to 4,000 items like this
    With(
       {
          _Asc,
          Sort(
             'Virtual Personnel Portal Ticket',
             ID
          ),
          _Desc,
          Sort(
             'Virtual Personnel Portal Ticket',
             ID,
             SortOrder.Descending
          )
       },
       ClearCollect(
          CollectionName
          _Asc,
          Filter(
             _Desc,
             !(ID in _Asc.ID)
          )
       )
    )
    
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    Buy me a coffee
  • WarrenBelz Profile Picture
    152,827 Most Valuable Professional on at
    Assistance with 2000 record limit issues
    A quick follow-up to see if you received the answer you were looking for or if you need further assistance.

    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps   

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 819 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 308 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 222 Super User 2025 Season 2

Last 30 days Overall leaderboard