cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Nipius Regular Visitor
Regular Visitor

Remove text between characters

Hi!

 

I have a column in a Power BI query with names. In case of absence of a person, the system adds (On Leave) to the name of the employee. So, if John Doe is absent for 2 months, the report shows John Doe (On Leave).

 

Also, in some cases, the system provides an output where the name of the person is added in a different writing. Particularly, in Asian countries, the system adds the name of the person in the original writing.

 

In both case, I'd like to have everything between brackets (including the brackets) removed. Is there a solution to this? 

 

Thanks so much in advance for your support!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
tejaswidmello Established Member
Established Member

Re: Remove text between characters

Hi @Nipius ,

 

I hop[e you have access to edit queries.

if so these are the steps:

 

1-  Data looks like this

step 1.PNG

 

2- right click and hit on split column , you will get output like this. Hit ok

step 2.PNG

 

3. remove the column which was created after splitting.

step 3.PNG

 

4. Output looks like this

 

step 4.PNG

 

 

Let me know if this works.

 

Thanks,

Tejaswi

 

View solution in original post

3 REPLIES 3
tejaswidmello Established Member
Established Member

Re: Remove text between characters

Hi @Nipius ,

 

A little confuse with your requirments.

 

Do you want the output to look like this? or do you want to remove (on leave) in your report?

 

Capture 120.PNG

Nipius Regular Visitor
Regular Visitor

Re: Remove text between characters

@tejaswidmello Thanks for the response!

 

So, originally the data looks like this "Name (On Leave)" or "Name (Name in different writing)". I want everything to look like "Name". So for all the records where there is data between brackets in the records, I'd like to remove this part.

Highlighted
tejaswidmello Established Member
Established Member

Re: Remove text between characters

Hi @Nipius ,

 

I hop[e you have access to edit queries.

if so these are the steps:

 

1-  Data looks like this

step 1.PNG

 

2- right click and hit on split column , you will get output like this. Hit ok

step 2.PNG

 

3. remove the column which was created after splitting.

step 3.PNG

 

4. Output looks like this

 

step 4.PNG

 

 

Let me know if this works.

 

Thanks,

Tejaswi

 

View solution in original post

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors (Last 30 Days)