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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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

Top Solution Authors
Top Kudoed Authors