Skip to main content

Notifications

Community site session details

Community site session details

Session Id : RIXwi+IlFUqhYxPMOq0UQv
Power Apps - Building Power Apps
Answered

Remove content of parenthesis in a string

Like (0) ShareShare
ReportReport
Posted on 21 Feb 2023 03:41:21 by 19

Hi All,

I need help in removing the content of a parenthesis from string.

 

My app is pulling from a SP list and one of the column is a person picker field which is also multi-select. I am displaying the content of the person picker field in my gallery with a label(Label1) using the function: Concat(ThisItem.Employeename, Displayname, "; ")

 

This function concatenates the names of selected employee and separates with a semicolon. 

The issue is that some employees has pronouns appended to their names. For example the value of Label1 could be: John Doe (he/him/his); Mary Kal(she/her/hers)

It can also be: John Doe (he/him/his); Bob Stone

 

I will like to remove the pronouns so that all names appears without the pronouns and the parenthesis. I only want the names separated with a semicolon but couldn't get that to work.

 

Kindly help.

 

  • Verified answer
    Kedet Profile Picture
    19 on 21 Feb 2023 at 14:12:08
    Re: Remove content of parenthesis in a string

    @v-liwei-msft It works perfectly, thanks so much!

  • Verified answer
    v-liwei-msft Profile Picture
    on 21 Feb 2023 at 06:17:28
    Re: Remove content of parenthesis in a string

    Hi @Kedet 

     

    Please try:

     

    Concat(ForAll(Split(Concat(ThisItem.Employeename,DisplayName,"; "),";"),First(Split(ThisRecord.Result,"("))),Result,";")

     

     

    Best Regards,

    Levi

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 223 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 110

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 89 Super User 2025 Season 1

Overall leaderboard
Loading started