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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
MasterSonic
Helper IV
Helper IV

Struggling to remove ~DE and ~

Hi guys,

I need some fresh idea, how to remove ~DE and ~ from the end the string please?
Majority of column has ~DE, which is easy to do remove (text after delimiter)
But after removing it I have few rows like 3 (example below), that are blank after that process.

Can I ask you for some idea how to process that please?

IDColumn
1triglyceride glue~DE
2lututudu glue~DE
3product 1~
4produict 1~4

 

 

1 ACCEPTED SOLUTION

Text.TrimEnd( Text.Replace( your_string, "~DE", "" ), "~" )

View solution in original post

5 REPLIES 5
MasterSonic
Helper IV
Helper IV

Hi guys,

resutls I am looking is this :
removing ~DE and ~(if last character only)

IDColumn
1triglyceride glue
2lututudu glue
3product 1
4produict 1~4



I will try with spliting perhaps

 

Text.TrimEnd( Text.Replace( your_string, "~DE", "" ), "~" )
AlienSx
Super User
Super User

this? 

Text.Replace( Text.Replace( your_string, "~DE", "" ), "~", "" )
Mahesh0016
Super User
Super User

Mahesh0016_0-1679404662153.png

>Add Custom Column :
  > Text.Select([Column],{"A".."z","0".."9"})

Mahesh0016
Super User
Super User

@MasterSonic  you want remove or split if you split it will be blank but if you no need split column so you can delete.

 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors