Skip to main content
Community site session details

Community site session details

Session Id : u/5L30aMaKpIp/pVhvLc+n
Power Apps - Building Power Apps
Answered

Large Dataset collection, to Filter a Filtered Dataset?

Like (0) ShareShare
ReportReport
Posted on 22 Sep 2020 20:16:32 by

Hi, 

 

Creating an offline mode with my SQL database. 

I have a large SQL database with over 200,000 items records. 

I have 4 columns in that database, Item Code, Item Description, Item Category, and Record ID (Unique ID from 1 to 200,000).

 

I made a download button and OnSelect, I was able to create a Collection (NewDataSet), by filtering the SQLdatabase with up to 2,000 Record ID at a time. 

Ex.  Collect(NewDataSet, Filter(SQLDatabase,  RecordID <2000) ; Collect(NewDataSet, Filter(SQLDatabase,  2000 <Record ID && Record ID < 4000) etc. 

 

This works perfectly, but it collects too much information and crashes the app.

 

I have created a Checkbox using Distinct Values of the Item Category in a Gallery from the SQL Database. The users can select the Categories using the Checkbox and then filter only for the records with the selected item categories. 

 

On the Download Button, my formula is 

ForAll(Filter(Gallery.AllItems, Checkbox.Value),Collect(NewDataSet,Filter(Filter('SQLDATABASE', 'Item Category' = Checkbox.Text),RECORDID <        2000    )));

 

The "'Item Category' = Checkbox.Text" part of this breaks it as the error is "Filter might not work on Large Datasets". 

 

How can I filter the Checkbox based on each set (filtered) of RecordID that I have created? 

 

 

  • Verified answer
    Community Power Platform Member Profile Picture
    on 23 Sep 2020 at 03:30:48
    Re: Large Dataset collection, to Filter a Filtered Dataset?

    @VijayTailor 

     

    Thanks, but this doesn't help. I already know this, and the video explains what I did in the initial stage. 

  • Vijay Tailor Profile Picture
    2,961 on 22 Sep 2020 at 20:30:35
    Re: Large Dataset collection, to Filter a Filtered Dataset?

    Hi,

     
    1st Way - User Concurrent Function with Multiple Part Collection and Once this Done Collect with One Collection. 

    Concurrent

    2nd Way - Use Collect with Dynamics Condition. 

    Have a look with the below Video URL. Hope it will help you to resolve your Issue.

    https://www.youtube.com/watch?v=0PLznP64O9o

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete