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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors