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 Filter on multi...
Power Apps
Unanswered

Search Filter on multiple SharePoint List columns with various column types

(0) ShareShare
ReportReport
Posted on by

I created a PowerApps with a Gallery + Search Box that connects to a SharePoint list.

 

When typing in the Search Box I would like to "Search" through multiple columns, of which some are non-text columns, such as a "Choice" field. This seems rather obvious as SP Lists often consist of non-Text fields.

 

Is there a way to get this done?

 

This function doesn't accept non-text Fields:

SortByColumns(Search('SharePointList';SearchTextBox.Text; "Title";"Choicefield");"Title"; If(SortDescending1; Descending; Ascending))

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,891 Most Valuable Professional on at

    Hi @EJSPoelen ,

    You are correct that Search only works on Text fields - try this

    SortByColumns(
     Search(
     AddColumns( 
     'SharePointList';
     "MyChoice";
     ChoiceField.Value
     );
     SearchTextBox.Text; 
     "Title";
     "MyChoice"
     );
     "Title"; 
     If(
     SortDescending1; 
     Descending; 
     Ascending
     )
    )

    Bear in mind that the data structure is in your control - you do may not need Choice fields - I have a blog that may be of use to you.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • WarrenBelz Profile Picture
    155,891 Most Valuable Professional on at

    Hi @EJSPoelen ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 316 Most Valuable Professional

#2
11manish Profile Picture

11manish 242

#3
Valantis Profile Picture

Valantis 198

Last 30 days Overall leaderboard