+ Reply to Thread
Results 1 to 6 of 6

MS365 - Power Query - combine rows (error message)

  1. #1
    Registered User
    Join Date
    03-10-2020
    Location
    Belfast
    MS-Off Ver
    365
    Posts
    3

    MS365 - Power Query - combine rows (error message)

    Hi everyone, this is my first post on here, so hopefully will adhere to forum rules !

    I have attached a sample table that i am trying to combine rows - i have also manually inserted a "Desired output" showing how i would like the finished table to look.

    I have used Power Query to try and do this and have only been partially successful - I have error messages in relation to trying to combine the following cells - A2 + A3, B5 + B6, C8 + C9. (In Power Query I have "Transformed and unpivotted the columns, selected the 1st cell in "attribute" column and pivotted the column, i have selected values and in advanced options, selected aggregate value function and selected "don't aggregate", then finally "close + load")


    Not really sure what i need to do as a next step to resolve this - help appreciated !
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: MS365 - Power Query - combine rows (error message)

    In the attached.

    1. Unpivot the data
    2. Close and Load to a Spreadsheet
    3. Create Pivot Table and Add to Model, ie. Power Pivot
    4. Create Measure using DAX formula Concatenatex

    Look at this link to understand the Concatenatex

    https://sfmagazine.com/post-entry/ju...a-pivot-table/
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    03-10-2020
    Location
    Belfast
    MS-Off Ver
    365
    Posts
    3

    Re: MS365 - Power Query - combine rows (error message)

    Hi Alan, thanks for the quick response - I will give that a go and let you know how it works.

    George

    ps Hope all is good in Steamboat Springs - stay safe !

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: MS365 - Power Query - combine rows (error message)

    Alternate approach using PowerQuery only.

    After unpivot columns operation....
    - Group Rows by Unique ID & Attribute. New Column [Temp] with All Rows.
    - Add custom column [Concat]
    Please Login or Register  to view this content.
    -Remove [Temp]
    -Pivot column with Attribute selected. Value column as [Concat]
    - Reorder column as needed.

    Please Login or Register  to view this content.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  5. #5
    Registered User
    Join Date
    03-10-2020
    Location
    Belfast
    MS-Off Ver
    365
    Posts
    3

    Re: MS365 - Power Query - combine rows (error message)

    Hi CK76, I decided to go with your proposed solution as I was already using Power Query, delighted to say that it has solved the problem for me !
    Thanks again for your help. George

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: MS365 - Power Query - combine rows (error message)

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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] Power Query Combine
    By kabseeker in forum Excel General
    Replies: 2
    Last Post: 05-05-2020, 10:12 AM
  2. [SOLVED] Power Query - Expression Error: The Key didn't match any rows in the table
    By Baltimorejack68 in forum Excel General
    Replies: 7
    Last Post: 10-18-2019, 04:24 PM
  3. [SOLVED] Power Query: Combine records with deliminter
    By misty15 in forum Office 365
    Replies: 4
    Last Post: 09-17-2019, 04:34 PM
  4. Power Query: Combine and Transform from folder
    By LUKE92 in forum Excel General
    Replies: 13
    Last Post: 06-26-2019, 12:34 AM
  5. [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
  6. 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
  7. error in power query & power pivot
    By Baldev Kumar in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 01-03-2018, 01:34 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