Reputation: 346
Instead of rows all my data is in one single row like this:
When I use #(if) as delimiter this happens:
I can do it again on another column, but that just duplicates the other rows again.
How do I split my data so it looks like this:
I hope you can point me in the right direction, thank you in advance.
Edit: Forgot to include the code:
let
Source = Web.Page(Web.Contents("https://www.sparnord.dk/erhverv/produkter/likviditet-betalinger/basisrenter-paa-valutakonti/")),
Data0 = Source{0}[Data],
#"Promoted Headers" = Table.PromoteHeaders(Data0, [PromoteAllScalars=true]),
#"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Promoted Headers", {{"Valuta", Splitter.SplitTextByDelimiter("#(lf)", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Valuta"),
#"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Valuta", type text}})
in
#"Changed Type1"
Upvotes: 0
Views: 498
Reputation: 21318
assuming the character is #(lf), then try:
let Data = Web.Page(Web.Contents("https://www.sparnord.dk/erhverv/produkter/likviditet-betalinger/basisrenter-paa-valutakonti/")),
Source = Data{0}[Data],
TableTransform = Table.Combine(List.Transform(List.Transform(Table.ToRecords(Source),
(x) => List.Transform(Record.ToList(x), each Text.Split(_,"#(lf)"))),
each Table.FromColumns(_, Table.ColumnNames(Source))))
in TableTransform
Upvotes: 0