Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Splitting Rows by Backspace

Hello! I'm creating a query from PDF and run into a problem. query read separate rows as one, i need to separate them:   By copy pasting values in excel and using =unichar() I found t...
  • jennratten's avatar
    4 years ago

    Are you sure your character is a backspace?  That won't produce a new line.  This is how you can split a cell to new rows by a carriage return/line feed (character 13):

    Table.ExpandListColumn(Table.TransformColumns(Source, {{"Column1", Splitter.SplitTextByDelimiter("#(cr)#(lf)", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Column1")

     

  • jennratten's avatar
    jennratten
    4 years ago

    Interesting - what about this?

    = Table.ExpandListColumn(Table.TransformColumns(#"Changed Type2", {{"Details.1", Splitter.SplitTextByDelimiter("#(lf)", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Details.1")