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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.