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
Nilson
Frequent Visitor

Split Column - Delimiter Issue

Hello,

 

I have a problem with splitting a column by delimiter.

 

The values within the column look like this "ITEM01, ITEM02, " whih leads in this example to three columns (ITEM01, ITEM02 and an empty one). How can I make it to only get two columns (ITEM01 and ITEM02)

 

 

Thanks for your help 🙂

1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

Is there any reason as to why you can not split on each occurance and then delete the final column?

Br,
J


Connect on LinkedIn

View solution in original post

8 REPLIES 8
Tahreem24
Super User
Super User

@Nilson ,

 

Refer below screen shot: Select Left most Occurence in Split column option.

Capture.JPG

 

Don't forget to give thumbs up 👍and accept this as a solution if it helped you.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

I followed your advice but I got the following results:

 

Example_01:

"ITEM01, " --> [ITEM01] []

Example_02:

"ITEM01, ITEM02, ITEM03, " --> [ITEM01] [ITEM02, ITEM03, ]

 

I used the following settings:

 

example.png

 

@Nilson,

 

ON YOUR QUESTION, IT IS ONLY ITEM1 AND ITEM 2.

HOW YOU WANT TO SPLIT THE ITEMS IN THIS CASE?

@Nilson ,

 

How many Items do you have? if it is upto Item3 so use below screen shot and respected output:

Capture.JPG

 

1.JPG

 

Don't forget to give thumbs up 👍and accept this as a solution if it helped you.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
tex628
Community Champion
Community Champion

Is there any reason as to why you can not split on each occurance and then delete the final column?

Br,
J


Connect on LinkedIn
Nilson
Frequent Visitor

After the second try, your suggestion worked.

 

Thanks!

Nilson
Frequent Visitor

There are also cells without an item and therefore without a delimiter.

Is there a way to cut off the last two characters?
Then I could do this and then split as usual.

mussaenda
Super User
Super User

@Nilson,

 

Try this

2020_01_21_13_23_12_ASSEMBLY_MONITORING_Power_Query_Editor.png

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.