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 / Filtering a Large data...
Power Apps
Unanswered

Filtering a Large data table using the filter function

(0) ShareShare
ReportReport
Posted on by 19

Hi,

 

I have a CDS data table with about 400,000 records and I'm trying to sort a single column. However, it seems even though the filter function is delegable, it cannot seem to filter this much data and either doesn't show anything or doesn't filter it at all. Any solutions?

Categories:
I have the same question (0)
  • SeanHenderson Profile Picture
    1,104 on at

    Hi @dsipowerapps 

    Could you please share a little more about your scenario?

    What field are you trying to filter? What control is the filter being used on? What formula are you using now?

     

    Thanks!

  • mdevaney Profile Picture
    29,991 Moderator on at

    (deleted since SKH already responded)

  • dsipowerapps Profile Picture
    19 on at

    Sorry @SeanHenderson , should've given some more details. I have a CDS entity called APTH containing transaction history for a vendor. When the user searches the app and clicks on a vendor, then clicks the vendor history button, I want to filter the vendor history table to just the vendor they had selected. When they click this button it creates a global variable called "vendor" and sets it to VendorCardValue1 as a text data type. Then, on the vendor history screen, I set the items property on the data table to Filter(APTH, VendorCardValue1.Text = vendor). However, this either results in nothing showing up in the data table or simply just not even sorting it at all.

    vendor details.PNG
    vendor history.PNG
  • SeanHenderson Profile Picture
    1,104 on at

    @dsipowerapps 

    How are they getting to the details screen in the first place? Are they selecting that vendor from a gallery? If so, you can skip the variable and just set your Items property of the data table to Gallery1.Selected.Name (or whatever your gallery name and the company name on your entity are). Then your History button could just navigate to this data table. Then add a back button on the data table screen to go back to the gallery.

     

    ---
    Please hit the "Accept as Solution" button if my post answered your question! If my post was helpful please consider giving it a "Thumbs Up."

  • dsipowerapps Profile Picture
    19 on at

    @SeanHenderson 

    Yes from a gallery that's connected to a separate entity called APVM, this entity contains the vendor and vendor details. The APTH entity is the transaction history for each of those vendors which is connected to the data table. I got rid of the variable and changed the Items property to "Filter(APTH, APVMBrowseGallery.Selected.Vendor = APTHDataTable.Selected.Vendor)." However, even though this does not give any errors, it simply will not render any of the filter data and returned "We didn't find any data to show at this time."

    vendory history 2.PNG
    vendor browse and search.PNG
  • SeanHenderson Profile Picture
    1,104 on at

    Try:

    Filter(APTH, Vendor = APVMBrowseGallery.Selected.Vendor)

     

  • dsipowerapps Profile Picture
    19 on at

    Still left me with the same result. I'm almost sure it has to do with the size of the table, because before I was working with a temp APTH that contained a small portion of the whole data set and it had sorted fine. But after I had imported all of the data it won't filter it at all.

  • SeanHenderson Profile Picture
    1,104 on at

    @mdevaney  Any ideas? I don't have an entity with 400k records to test anything out.

  • mdevaney Profile Picture
    29,991 Moderator on at
    @SeanHenderson
    Neither do I... wish I could help to test here too...
  • dsipowerapps Profile Picture
    19 on at

    @mdevaney @SeanHenderson dang, well thank you for the help cleaning up my logic a little bit. Maybe splitting the entity up into multiple entities, then create collections for each entity, filter each, then combine them in the same screen? Not even sure if this is possible.

     

    @sandeepdknow of any work arounds?

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard