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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter doesn't work in...
Power Apps
Unanswered

Filter doesn't work in Power app

(0) ShareShare
ReportReport
Posted on by 4

We passed 2000 rows when using our app at work, so we are trying to apply an additional filter. However, this one does not appear to work.

 

SortByColumns(Filter([@'Product Inventory - Part 1'],Order="Part1" Or Order="Part2", TextInput1.Text in Title), "field_1", If(SortDescending1, Descending, Ascending))

 

The two filters work separately (Order="Part1" Or Order="Part2" -> this one causes more than 2000 rows to be seen), but together they no longer work.

Would anyone know how I can solve this?

Categories:
I have the same question (0)
  • Rusk Profile Picture
    1,369 Super User 2024 Season 1 on at

    Hi @Automation6 

     

    Try this:

    SortByColumns(
     Filter(
     [@'Product Inventory - Part 1'],
     (Order = "Part1" Or Order = "Part2") And TextInput1.Text in Title
     ),
     "field_1",
     If(SortDescending1, Descending, Ascending)
    )
  • Automation6 Profile Picture
    4 on at

    Hi @Rusk 

    Thanks for the quick reply!

     

    Now when I search for something where I know there are results in both Part 1 and Part 2, I still only get the results from Part 1.

    (Part 1 has 2000 entries, Part 2 just under 2000).

  • victorcp Profile Picture
    2,350 Moderator on at

    Hi,

    Unfortunately the maximum number of items retrieved in a single call is 2000, I would suggest adding another filter to get exactly what the user needs

     

    I hope it helps 🙂

  • Rusk Profile Picture
    1,369 Super User 2024 Season 1 on at

    Good morning @Automation6 

     

    I noticed your data source is named 'Product Inventory - Part 1'.  Does this data source actually have "Part2"in it?

  • Automation6 Profile Picture
    4 on at

    Hi! @Rusk

    Yes, it's just because I also have a list with the name Product Inventory.

     

  • Rusk Profile Picture
    1,369 Super User 2024 Season 1 on at

    I tested and it looks like the filter should be working fine... 

    Rusk_1-1677259377981.png

    The issue is no doubt what @victorcp mentioned

     

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

Forum hierarchy changes are complete!

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard