Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

remove character before "|" or ":"

hello

i need to remove character before this symbol "|" or ":" for example :

 

fi|TPZ - FTSA-Audio  must becomes TPZ - FTSA-Audio

 

Any help please?

 

Many thanks

1 ACCEPTED SOLUTION
stevedep
Memorable Member
Memorable Member

Calculated Column:

 

NewValue = RIGHT('Table'[Column1];(LEN([Column1])-FIND("|";'Table'[Column1];1;0)))

 

char.gif

Hope it helps, please mark as solution if so. Thumbs up for the effort are appreciated. 

 

Kind regards, Steve. 

View solution in original post

2 REPLIES 2
speedramps
Super User
Super User

Please consider this solution and leave kudos

 

newstring =
--  *** replace VAR inputstring = "fi|TPZ - FTSA-Audio"  with VAR inputstring = yourtable[yourcolumn]

VAR inputstring = "fi|TPZ - FTSA-Audio"
VAR temptext = SUBSTITUTE(inputstring, "|", "")
RETURN
SUBSTITUTE(temptext , ":", "")
 
Note this is DAX solution because you posted the question in the DAX section, but you could use a M power Quesry solution.
stevedep
Memorable Member
Memorable Member

Calculated Column:

 

NewValue = RIGHT('Table'[Column1];(LEN([Column1])-FIND("|";'Table'[Column1];1;0)))

 

char.gif

Hope it helps, please mark as solution if so. Thumbs up for the effort are appreciated. 

 

Kind regards, Steve. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.