+ Reply to Thread
Results 1 to 5 of 5

Power Query: Combine records with deliminter

Hybrid View

  1. #1
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Power Query: Combine records with deliminter

    This should do it:

    let
        Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
        #"Grouped Rows" = Table.Group(
            Source, 
            List.RemoveItems(Table.ColumnNames(Source),{"Color","Year"}), 
            {
                {"Color", each Text.Combine(Table.Column(_,"Color"),";"), type text}, 
                {"Year", each Text.Combine(List.Transform(Table.Column(_,"Year"), each Text.From(_)),";"), type text}
            }
        ),
        #"Reordered Columns" = Table.ReorderColumns(#"Grouped Rows",Table.ColumnNames(Source))
    in
        #"Reordered Columns"
    Last edited by Olly; 09-16-2019 at 03:21 AM.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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. Power Query: Combine and Transform from folder
    By LUKE92 in forum Excel General
    Replies: 13
    Last Post: 06-26-2019, 12:34 AM
  2. [SOLVED] I do not have a combine option - Power Query
    By callumlmcgrath in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 05-08-2019, 06:24 AM
  3. Power Query: combine sheets from different workbook
    By erica.ho56458 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-09-2018, 02:28 AM
  4. Sub-Forum for Excel Power Tools (Power Query, Power Pivot & Power BI)
    By chullan88 in forum Suggestions for Improvement
    Replies: 10
    Last Post: 06-28-2018, 02:25 PM
  5. Replies: 0
    Last Post: 04-05-2018, 01:16 AM
  6. Replies: 1
    Last Post: 11-06-2017, 12:42 AM
  7. Access Table Query to Combine Records
    By smoothlarryhughes in forum Access Tables & Databases
    Replies: 4
    Last Post: 09-14-2012, 08:45 PM

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