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 / Search multiple column...
Power Apps
Unanswered

Search multiple columns of data in sharepoint list gallery

(0) ShareShare
ReportReport
Posted on by 6

I am using the default filter which is only searching the title of each card, however I am unable to get the gallery to allow me to search other data points on the card.

 

This is the working code:

 

SortByColumns(Filter([@'TBC Staging Inventory'], StartsWith(Title, TextSearchBox1.Text)), "Title", If(SortDescending1, SortOrder.Descending, SortOrder.Ascending))

 

 

This is what I want to make work:

 

SortByColumns(Filter([@'TBC Staging Inventory'], StartsWith(Title, TextSearchBox1.Text) || StartsWith(Subtitle, TextSearchBox1.Text)), "Title", If(SortDescending1, SortOrder.Descending, SortOrder.Ascending))

 

Categories:
  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @ajblodgett ,

    The code seems right to me ...

    Is Subtitle a column from your Sharepoint List ? 

    Can you show the error you receive ?

  • ajblodgett Profile Picture
    6 on at

    @gabibalaban 

     

    The Subtitle is referring to the subtitle of the gallery card. Please correct me if I'm wrong that it needs to refer to the a column in the sharepoint list.

     

    See attached photo.

    Screenshot 2024-01-27 at 09.10.40.png
  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @ajblodgett ,

    Actually yes ... you filter the items from datasource.

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    @ajblodgett 

     

    can you try this please:

    SortByColumns(
     Filter(
     [@'TBC Staging Inventory'], 
     StartsWith(Title, TextSearchBox1.Text) || 
     StartsWith(Subtitle, TextSearchBox1.Text) || 
     StartsWith(AnotherColumn, TextSearchBox1.Text)
     ),
     "Title", 
     If(SortDescending1, SortOrder.Descending, SortOrder.Ascending)
    )

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

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 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard