Skip to main content
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

Helper II
Helper II

Delimeters - Data Cleansing/Best Practices



so there were data entries in this column that were separated in the following form:


pigs - type - cats


but some entries have


pigs - types - cats

pig-s - type - cats

pigs - type - cats -oct-11-2017



So unfortunately I cannot separate this column by delimiter.


What is the best way of doing this? Do you recommend an if statement that checks to see if there is a '-' more than 3 times ?


I would also need to write something that checks for the first several letters to normalize 'type' and 'types'.

What is the name of this function?

Solution Sage
Solution Sage

Hi @Nusc


You can get the text before the 3rd delimiter with this function:


You could add an extra - at the end of each string before calling this function


For the other problem, probablt this function can help you:



Did I answer your question correctly? Mark my answer as a solution!

Proud to be a Datanaut!  

Helpful resources

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.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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


Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors