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 gallery ba...
Power Apps
Answered

Filtering a gallery based on input

(0) ShareShare
ReportReport
Posted on by 23

Hi, I'm trying to filter a gallery based on a text entered by a user, the gallery has a connexion to excel online for business conector and the table contains more than 3000 unique values.

 

I've created a text input named "FilterTextBox" to filter the gallery based on the field "cedula" that has text format in the Tabla1 (the source of the gallery)

Error1.PNG

This is the formula I'm trying in the Item property of the gallery:

Filter(Tabla1; StartsWith(cedula;FilterTextBox.Text))

 

It is retrieving "Runtime errors" indicating "the operation required is not valid" as the photo below:

Incident1.PNG

 

Is there a problem with the conector, the format of the field...? How could I change in my formula to filter by that field?

 

Thanks in advance,

 

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

    Hi @Joan_Zulo

     

    Can you try this

     

    Search(Tabla1; TextSearchBox1.Text; "cedula")

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Joan_Zulo

     

    I created excel online and tested and the below command works.

     

    Set the items property of Gallery to 

    SortByColumns(
     Search(
     [@Tabla],
     TextSearchBox1.Text,
     "cedula"
     ),
     "cedula",
     Descending
    )

      

    This search and sort by desending

  • Joan_Zulo Profile Picture
    23 on at

    Hi @StalinPonnusamy I tried your way but still retrieve the same "RunTime Error"

  • Joan_Zulo Profile Picture
    23 on at

    Still the same error, I don't know if there something related to my connection vs my functions?

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Joan_Zulo 

     

    I suggest reconnecting and try it. Here is the test I made

     

    StalinPonnusamy_0-1630548351857.pngStalinPonnusamy_1-1630548393769.png

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Joan_Zulo

     

    You should be able to see a new column (__PowerAppsId__) once connected to power apps

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Joan_Zulo 

     

    I just looked at the connector and using OneDrive. Can you verify your connector?

     

    StalinPonnusamy_0-1630548781452.png

     

    MS Article for reference

  • Joan_Zulo Profile Picture
    23 on at

    Hi @StalinPonnusamy thanks for your previous answers, I tried them and finally I changed the connector for onedrive for business and now is working with the Filter function, but now It is retrieving only 500 rows and the excel table contains 3000+ how could I bring all of the rows?

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Joan_Zulo

     

    Powerapps Data row limit is 500 by default. But we can change a maximum of 2000. You should be fine as long as your search query brings any result less than the limit of the setting.

     

    To change Data row limit from 200 to 2000.

    • Click the File menu of your app
    • Click "Settings"
    • Change "Data Row Limit" under general settings to your desired number (max is 2000)

     

    Note: Need to add proper filter/more filter to bring the data which less than the max limit

    StalinPonnusamy_0-1630973921020.png

     

  • AmolPomaji05 Profile Picture
    6 on at

    Hello @Joan_Zulo,

    Here, you use the Search Function instead of Filter Function.

    On the text input box, set the default property and in the formula bar set to empty. i.e Default ----> ""

    Now, select the gallery

    Set the Items Property and in the formula bar type the below Search Function :- 

    Search(DataSourceName, inputboxname.Text,"Title")

    then you will get the, Filtered data on based on the user search.Screenshot (114).pngScreenshot (113).png

     

    Now, you will search the data based on the textinput box. it will shows the record in the gallery.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard