Closed Thread
Results 1 to 2 of 2

Unpivoting using Power Query [REPOST]

  1. #1
    Forum Contributor TheRetroChief's Avatar
    Join Date
    09-30-2008
    Location
    UK
    MS-Off Ver
    2019
    Posts
    136

    Unpivoting using Power Query [REPOST]

    Hello there,

    Been a while since I've been on here. Hoping I can tap into your expertise.

    I've been given a task where I need to convert one dataset to be formatted similarly and merged with another dataset. I've almost managed to get there using the unpivoting functionality of power query - I can handle the multiple header rows, but the repeating columns are defeating me.

    I've attached sample data - essentially I need to get the data in the 'Table' sheet to look like the data in the 'Excel' sheet. I know about filling the gaps in the column A during the process. And also that Product Code, CustomerKey and Product Name will be static rows. I'm not sure how to account for the the repeating Quantity, Unit Cost and Sales Amount columns.

    I'd be very appreciative if someone could guide me through the process.

    Cheers,
    TRC
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Unpivoting using Power Query [REPOST]

    Administrative Note:

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here.

    Please see Forum Rule #5 about thread duplication.

    I am closing this thread, but you may continue here in the original thread: https://www.excelforum.com/excel-gen...wer-query.html
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Unpivoting using Power Query
    By TheRetroChief in forum Excel General
    Replies: 9
    Last Post: 10-17-2020, 09:12 PM
  2. Replies: 10
    Last Post: 06-25-2020, 12:19 AM
  3. [SOLVED] Power Query - excel formula translation into Power Query
    By afgi in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 02-19-2020, 03:38 AM
  4. Replies: 4
    Last Post: 02-17-2020, 06:03 AM
  5. [SOLVED] Power Pivot does not load new column added in Power query
    By ibuhary in forum Excel General
    Replies: 12
    Last Post: 02-19-2019, 03:53 AM
  6. 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
  7. Replies: 0
    Last Post: 04-05-2018, 01:16 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