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 / 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:
I have the same question (0)
  • CU-18081211-6 Profile Picture
    9,270 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.

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @ajblodgett ,

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

  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 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

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