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

Splitting Column data into columns under Specific Text/Headers

Hello,

I need help splitting column text data separated by semi-colons into columns. The challenge is that the cells' data are randomly stored in the cells i.e 1st data in cell A1 may be the 2nd in cell B1, and since the options vary. Splitting them using the basic delimiter option didn't produce consistent data in each column. I want to automatically be able to add the options under the appropriate column header once the data is refreshed in PBI i.e Traffic coordination, Good/Stable soil, Schedule performance etc. all go under the respective columns. 

Any help will be appreciated. 

 

The data column to be split is shown below.

 

 

Project NoIssues Encountered
1Bad Weather
2Bad Weather; Field Support
3Traffic coordination; Field support
4Unstable/Bad soil; Field support; Safety & Security 
5Low Traffic; Schedule Performance; Safety & Security

 

Result:

 

Project NoBad WeatherField SupportUnstable/Bad soilTraffic coordinationLow TrafficSafety & Security Schedule Performance
1Yes      
2YesYes     
3 Yes Yes   
4 YesYes  Yes 
5    YesYesYes
1 ACCEPTED SOLUTION
v-yuaj-msft
Community Support
Community Support

Hi @fuulhouse ,

 

Based on your description, you could do some steps in Power Query editor.

050702.gif

Result:

v-yuaj-msft_0-1620369966241.png

 

Hope that's what you were looking for.

Best Regards,

Yuna

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yuaj-msft
Community Support
Community Support

Hi @fuulhouse ,

 

Based on your description, you could do some steps in Power Query editor.

050702.gif

Result:

v-yuaj-msft_0-1620369966241.png

 

Hope that's what you were looking for.

Best Regards,

Yuna

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yuaj-msft 

Thank you. This works.

fuulhouse
Frequent Visitor

@Greg_Deckler, there is always a fix.

@fuulhouse Post some sample data as text in a table and somebody might try. I am thinking, add an Index column. Split out your column by semi-colon. Unpivot. Sort by Index and then secondary sort by the Value column. Something, something something...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Super User
Super User

@fuulhouse Even M can't always fix garbage data...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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