Forum Discussion
Split collum challenge
- 7 years ago
I see, but that is exactly what I did before for you. Check the following 2 screenshots:
The steps Source and Navigation on the right hand site are importing Excel file into Power BI. You also see how the data looks like.
The 3rd step is the split described above. Again, you see the result of this step. And it is what you expect, I hope.
Hi Anonymous ,
the only thing you have to do is to split the column into rows by your delimiter.
If your delimiter is a new line, use #(cr) or #(lf) or both, it depends on your needs.
- Anonymous7 years agoNot applicable
Very goog Nolock . This is the easy part. And how about the new table generation?
Thanks for your time.
- Nolock7 years agoResident Rockstar
I've created an Excel file as you have. With Alt+Enter as a line delimiter in Excel.
And then I used the same code as before but as delimiter I use #(lf) - trial/error, I didn't know if the delimiter is cr or lf or both.
let Source = Excel.Workbook(File.Contents("C:\Users\...\Desktop\Book1.xlsx"), null, true), Sheet2_Sheet = Source{[Item="Sheet2",Kind="Sheet"]}[Data], #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(Sheet2_Sheet, {{"Column2", Splitter.SplitTextByDelimiter("#(lf)", QuoteStyle.None), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Column2") in #"Split Column by Delimiter"- Anonymous7 years agoNot applicable
Excuse me, Nolock I think I was not clear. I'm able to do the split on the current table, but I need another table to make the relationships work, as in the example above. I'm trying some DAX code to make it (new table) after the split process.
Thank you for your time and knowledge