Forum Discussion
Split a cell into multiple columns
- Anonymous9 years ago
Indeed, the feature doesn't work in this case.
The code of the recorded code line is:
= Table.ExpandListColumn(Table.TransformColumns(Source,
{{"Spalte ""1""", Splitter.SplitTextByDelimiter("#(#)(lf)", QuoteStyle.Csv),
let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}),
"Spalte ""1""")By simply adjusint the part
Splitter.SplitTextByDelimiter("#(#)(lf)",
to
Splitter.SplitTextByDelimiter("#(lf)",
it works as desired.
Hi danextian
You could try the great now "split into rows" feature that was introduced in a recent version of Power BI Desktop
So use the Query Editor and do the following. Highlight your column and split on special character #(lf) into rows
.
- danextian9 years agoSuper User
Hi Phil_Seamark,
Thanks for the reply.
I tried your advise to break a cell by line feed into rows. Unfortunately, it didn't work. Doing so does nothing.
I tried to split the cells into column and they did. The feature is there but i don't think it is working.
- Anonymous9 years agoNot applicable
Indeed, the feature doesn't work in this case.
The code of the recorded code line is:
= Table.ExpandListColumn(Table.TransformColumns(Source,
{{"Spalte ""1""", Splitter.SplitTextByDelimiter("#(#)(lf)", QuoteStyle.Csv),
let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}),
"Spalte ""1""")By simply adjusint the part
Splitter.SplitTextByDelimiter("#(#)(lf)",
to
Splitter.SplitTextByDelimiter("#(lf)",
it works as desired.
- danextian9 years agoSuper User
Anonymous
by the way, upon checking Power BI does this Splitter.SplitTextByDelimiter("/#(lf)",