+ Reply to Thread
Results 1 to 3 of 3

Power Query " Split by Line feed" adds unwanted dash

  1. #1
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,621

    Power Query " Split by Line feed" adds unwanted dash

    While working on this thread when I tried to split by line feed, the editor added an unwanted dash before #(lf)" like "-#(lf)" returning no result
    Removing the dash did the trick but why is the editor adding this dash ?

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Power Query " Split by Line feed" adds unwanted dash

    it doesn't add dash because it already exists, it just adds #(lf) to the existing dash (not replace)
    you need to remove dash first and then use split using special character/Insert special character/Line feed
    Last edited by sandy666; 06-26-2023 at 03:21 PM.

  3. #3
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,505

    Re: Power Query " Split by Line feed" adds unwanted dash

    Here is one more option for your query in the other topic

    PHP Code: 
    let
        Source 
    Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
        
    trf Table.TransformColumns(Source,{{"Channel"each Text.Split(_"#(lf)")}, {"Channel Date"each Text.Split(_"#(lf)")}}),
        
    col Table.AddColumn(trf"Custom"each List.Zip({List.Repeat({[ID]},List.Count([Channel])),[Channel],[Channel Date]})),
        
    out Table.FromRows(Table.ExpandListColumn(col"Custom")[Custom])
    in
        out 
    Last edited by JEC.; 06-26-2023 at 05:08 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] REmove a Line Feed with Power Query
    By AllisterB in forum Excel General
    Replies: 1
    Last Post: 10-22-2022, 06:36 AM
  2. [SOLVED] Formula to count "low", "med", or "high" in 4 columns of data split by fiscal quarter
    By Kerry1980 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-11-2022, 06:58 AM
  3. [SOLVED] Power Pivot Data Model Extra "Query" tabs
    By trisoldee in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-17-2019, 11:37 AM
  4. Replies: 9
    Last Post: 03-05-2016, 12:53 AM
  5. Split Dash "-" within values
    By bjnockle in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-22-2015, 10:26 AM
  6. Using "Append", adds unwanted double quotes. How to remove them?
    By thelisa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 09:35 AM
  7. [SOLVED] "carriage return" VS "line feed" and a little *BOLD*
    By jvanroekel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-03-2012, 11:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1