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 / How to search a string...
Power Apps
Answered

How to search a string having a special character in between in gallery items

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

I am facing an issue related to search functionality for the words having special character in between words like Group's , DVP&R.

The following is the formula that i used,

SortByColumns(
Filter(
MergedCollection,
If(
Dropdown_JobFunction.Selected.JobFunctionTitle = "All",
'Job Code:Job Function'.Value = 'Job Code:Job Function'.Value,
'Job Code:Job Function'.Value = Dropdown_JobFunction.Selected.JobFunctionTitle
),
'Job Code:Active/ Inactive'.Value = If(
Toggle1_1.Value,
"A",
"I"
),

Or(
TextSearchBox1.Text in 'Job Code'.Value,
TextSearchBox1.Text in 'Job Code:Job Description'.Value,
TextSearchBox1.Text in 'Job Code:Salary Grade'.Value,
TextSearchBox1.Text in 'Job Code:Active/ Inactive'.Value,
TextSearchBox1.Text in 'Job Code:Employee Type'.Value,
TextSearchBox1.Text in 'Job Code:Job Function'.Value,

)

),
gvarSortColumn,
If(
SortDescending1,
Ascending,
Descending
)
)

 

Thanks

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

    Hi @Anonymous ,

    I have a blog on detecting special characters in a text string - this may be useful 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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Warren,

    I read the blog which you shared, but my concern is different. It should show the appropriate results with items having group's. The user should be able to search with special character also example words like R&D, Forumula's.

  • Verified answer
    WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    Hi @Anonymous ,

    You could use the in function, however note it is not Delegable (I am also not sure what you mean by "Groups")

    Filter(
     SPListName,
     "&" in YourFieldName ||
     "'" in YourFieldName
    )

     

    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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard