Forum Discussion
Split column not into seperate columns but in rows
how is this possible?
For example:
id, Column 1,A;B;C
should become:
id, Column 1, A 1, B 1, C
- Anonymous10 years ago
Hi amien,
to solve your problem step by step, you have to:
1) Select the column
2) Split columns by delimiter (comma)
3) Do the transpose (columns become rows & rows become columns)
4) Split columns by delimiter (semicolon)
5) Replace the null values with the chosen values
6) Redo the transpose
( . . . )
Let me know if it works.
Have a good coding
6 Replies
- MACKnox
Advocate I
It's been some time now, and, columns can be split directly into rows with one step:
- kabollmaNew Member
Hi,
I am attempting to use this option. The window that pops up looks exactly like your image, but the option for columns or rows in the middle is just missing. The original choices from Get & Transform only allowed From Table. There was no From Table/Range option. Any direction you might provide would be so helpful.
- AnonymousNot applicable
Hi amien,
to solve your problem step by step, you have to:
1) Select the column
2) Split columns by delimiter (comma)
3) Do the transpose (columns become rows & rows become columns)
4) Split columns by delimiter (semicolon)
5) Replace the null values with the chosen values
6) Redo the transpose
( . . . )
Let me know if it works.
Have a good coding
- suokoRegular Visitor
What If I want to split all columns by delimeter at once ?
Also would like to have the null value showing the correct value.
Should I do that manually by advanced editor ?
- WillT
Community Admin
You could use Split by Delimiter and then Unpivot the resulting columns to get to this. There's details on Unpivot here: https://support.office.com/en-us/article/Unpivot-columns-Power-Query-0f7bad4b-9ea1-49c1-9d95-f588221c7098 Hope that helps! - AnonymousNot applicable
How to do the just reverse of this operation.I mean from the shown output to input format.