Skip to main content

Notifications

Community site session details

Community site session details

Session Id : v3fJsW4IP2BrDFMbDzXjYB
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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,700 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started
Loading complete