+ Reply to Thread
Results 1 to 5 of 5

Power Query: Combine records with deliminter

  1. #1
    Registered User
    Join Date
    11-08-2015
    Location
    florida
    MS-Off Ver
    Home and Student 2016
    Posts
    15

    Power Query: Combine records with deliminter

    Hello,
    I have a dataset of over 50k records.
    I need to combine the multiple records on 2 columns with a semi colon delimiter.
    I tried merge/group by using PoweQuery but the group by will only show those columns I choose.
    I need to have all the columns displayed.
    The unique id would be based on the QueID and CustomerID and the delimiters would be on the Color and Year columns.

    Not sure if i explained this good enough, I have attached an example file.
    Thank you
    Attached Files Attached Files

  2. #2
    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:

    Please Login or Register  to view this content.
    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...

  3. #3
    Registered User
    Join Date
    11-08-2015
    Location
    florida
    MS-Off Ver
    Home and Student 2016
    Posts
    15

    Re: Power Query: Combine records with deliminter

    Thank you!
    It works on my sample spreadsheet however when I put the code into my real spreadsheet it gives me an error:

    DataFormat.Error: Invalid cell value ‘#NAME?’.

    I have modified the code to the correct field names and checked that the code matches and it does so I am not sure what is wrong. The table is named Table1.
    No syntax errors have been detected in the window, only when I click Done.
    Your guidance is appreciated.
    Thank you.

  4. #4
    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

    You have errors in your worksheet. Remove errors.

  5. #5
    Registered User
    Join Date
    11-08-2015
    Location
    florida
    MS-Off Ver
    Home and Student 2016
    Posts
    15

    Re: Power Query: Combine records with deliminter

    Thank you.
    Ok I figured that out, I found the culprit-3 cells had that name error.

    So now it works except that the one column is not concatenating. It is a number ie: 200876 etc. and there are nulls.

    I will continue to mess with it but if you can help I appreciate it.

    I am almost there!
    Thank you!

    Good news!
    After staring at it I realized I had the real data set columns flip flopped and fixed the code.

    Thank you!
    Last edited by misty15; 09-17-2019 at 07:04 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. 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