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 / Browse gallery filter ...
Power Apps
Answered

Browse gallery filter not returning results

(0) ShareShare
ReportReport
Posted on by 47

I'm a new Power App user.
I have a sharepoit list with text columns and a number column.
The TextSearchBox should be used to search for both text and numbers.
SortByColumns(Filter([@'Keyspace.iqy-80eafb9d-cf8e-4864-898a-d3b702839f91']; Number= Value(TextSearchBox1.Text) || Title= Text(TextSearchBox1.Text) ||StartsWith(Title; TextSearchBox1.Text )); "Title"; If(SortDescending1; SortOrder.Ascending))

This works, I can search by number as requested

Search for text works like this
SortByColumns(Filter([@'Keyspace.iqy-80eafb9d-cf8e-4864-898a-d3b702839f91']; StartsWith(Title; TextSearchBox1.Text)); "Title"; If(SortDescending1; SortOrder.Ascending))

I want to enter both number and text in the search box. But how ???

Thank you for an answer!

Categories:
  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @Rallf ,

     

    You can do so by introducing a second condition in the Filter function with a logical Or ( || ) operator:

     

     

    SortByColumns(
     Filter(
     [@'Keyspace.iqy-80eafb9d-cf8e-4864-898a-d3b702839f91']; 
     StartsWith(Title; TextSearchBox1.Text) || StartsWith(Number; TextSearchBox1.Text)
     ); 
     "Title";
     If(
     SortDescending1; 
     SortOrder.Ascending
     )
    )

     

     

     

  • Rallf Profile Picture
    47 on at

    Thanks BCBuizer,

    no... I try it. That does not work. See at my formular. I work with the logical OR (||) operation. StartsWith is only for text... i must work with Number=value.

    I can type a number, when i use the first formular and the result ist an number and when i type a Text out of my TEXT column ihe result is a empty field

    When I try it with my second formular... I work also with ( || ) Text Result is ok... Number result is empty.

     

  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @Rallf ,

     

    I see the order of the arguments in the StartsWith functions got mixed up. Try the below:

     

     

     

    SortByColumns(
     Filter(
     [@'Keyspace.iqy-80eafb9d-cf8e-4864-898a-d3b702839f91']; 
     StartsWith(TextSearchBox1.Text;Title) || StartsWith(TextSearchBox1.Text;Number)
     ); 
     "Title";
     If(
     SortDescending1;
     SortOrder.Descending;
     SortOrder.Ascending
     )
    )

     

     

    Edit: I also added a line to the sort order, because one seemed missing.

  • Rallf Profile Picture
    47 on at

    Thats the result or better a Warning

    Part of this formula cannot be evaluated remotely. The StartsWith function cannot be delegated when a field name is present in the second argument

  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @Rallf ,

     

    I'm not sure what you are running into. When testing this myself I didn't have any issues:

    BCBuizer_0-1678795014043.png

     

    Can you please share some sample data where you are not getting results where you do expect it?

     

    Ps. My earlier correction on the order of the arguments in the StartsWith function was not correct as you can see above.

  • Rallf Profile Picture
    47 on at

    Hello BCBuizer,

    here 3 Screenshots. As you see, i want type a name in the TextSerachfield the gallery ist complitly blank. When i type a Key Number out of the column NUMMER the result ist fine.

    My formular:

    SortByColumns(Filter([@'Schlüsselraum.iqy-80eafb9d-cf8e-4864-898a-d3b702839f91']; Nummer= Value(TextSearchBox1.Text) || StartsWith(Title; TextSearchBox1.Text)); "Title"; If(SortDescending1; SortOrder.Ascending))

    Screenshot2.png
    Screenshot.png
    Screenshot 3.png
  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @Rallf,

     

    Perhaps the issue is in the translation. In your list I see the column is named 'Titel', whereas your Items formula says 'Title'. Can you try changing to:

     

     

    SortByColumns(
     Filter(
     [@'Schlüsselraum.iqy-80eafb9d-cf8e-4864-898a-d3b702839f91'];
     Nummer= Value(TextSearchBox1.Text) || StartsWith(Titel; TextSearchBox1.Text)
     );
     "Titel"; 
     If(
     SortDescending1;
     SortOrder.Ascending
     )
    )

     

  • Rallf Profile Picture
    47 on at

    Hi,

    no... the result when ich type at all 178 is fine. When i type the Name- nothing- empty gallery. The logical OR operation is not working.

    Screenshot 4.png
  • BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @Rallf ,

     

    The fact that you do get a result when typing a number means that the logical OR is working as intended. The issue must be in the condition for the Titel column. 

  • Rallf Profile Picture
    47 on at

    Hi BCBuizer,

     

    but this ... SortByColumns(Filter([@'Schlüsselraum.iqy-80eafb9d-cf8e-4864-898a-d3b702839f91']; StartsWith(Title; TextSearchBox1.Text)); "Title"; If(SortDescending1; Descending;

    ...works fine. Now, i can type a Name such "Ahlers" and the the result is super.

    Name, Adresse an Key Number is on the screen.

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard