+ Reply to Thread
Results 1 to 14 of 14

Transform - unpivot table

  1. #1
    Registered User
    Join Date
    09-13-2017
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    11

    Transform - unpivot table

    Hi All

    I am new to the Power Query concept and would appreciate some help/guidance.

    Situation, I have a table of inventory/products which have some deliverables at various stages that I want to be able to visualize in a more presentable way. I have made a simplified sample of what I need some help with. The colour codes are only to show how I anticipate the data to be "transformed"

    Steps
    •Basic product table (excel) with deliverables; the deliverables availability, state and hour estimation/progress
    2019-08-12, Product presentation 0.JPG

    •For making the sorting by deliverables (1: Sales, 2: Standard ...) I have made some "manual" transformation to visualize the result that I am after see last picture

    2019-08-12, Product presentation 1.JPG

    Can this be managed by Power Query?

    Any Help would be appreciated

    Regards
    Kari

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

    Re: Transform - unpivot table

    I can't read your first attachment at all, but yes, it should doable.

    Please attach the workbook and I will check. A small sample like your images will do.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-13-2017
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    11

    Re: Transform - unpivot table

    Hi

    Please see attached file, only a small sample of a larger dataset

    Regards
    Kari
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-13-2017
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    11

    Re: Transform - unpivot table

    Small manual error in the Category column (Small for all Product 1, Medium for all Product 2 ...)

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,795

    Re: Transform - unpivot table

    Here you go:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-13-2017
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    11

    Re: Transform - unpivot table

    Thanks for the promt reply, it is highly appreciated.

    I can see that there is a lot of work to do with my original dataset (I have deliverables from 1:... to 32:...)

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,795

    Re: Transform - unpivot table

    There's probably a way round this - I can take another look this afternoon.

    Will each of these have different column names?
    Last edited by AliGW; 08-13-2019 at 08:20 AM.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,795

    Re: Transform - unpivot table

    See if this will work with your larger dataset:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    09-13-2017
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    11

    Re: Transform - unpivot table

    Hi

    Thanks for the various solution suggestions. I used your solution as sample for my general dataset, allthough I used Power BI Query Editor for my manipulation (The split column by Lowercase to Uppercase). Not available in my excel version... (Splitter.SplitTextByCharacterTransition({"a".."z"}, {"A".."Z"})

    Please Login or Register  to view this content.
    Regards
    Kari

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,795

    Re: Transform - unpivot table

    Split column by lower case to upper case is available in my version of PowerQuery (Office 365).

    I don't think you really needed any help with this judging by your own mastery of PQ!

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

  11. #11
    Registered User
    Join Date
    09-13-2017
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    11

    Re: Transform - unpivot table

    Thanks for the kind words... 90% was your solution. I learned from the best

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,795

    Re: Transform - unpivot table

    Are you sure that splitter isn't in your version? I am pretty sure it's been in the Excel PQ for quite some time.

    Please mark as solved.

  13. #13
    Registered User
    Join Date
    09-13-2017
    Location
    Denmark
    MS-Off Ver
    2016
    Posts
    11

    Re: Transform - unpivot table

    The splitter is not in my Excel version. Noted that this computer that i am using now has version 2016... I have to check with IT-dept

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,795

    Re: Transform - unpivot table

    Ah - that makes sense. I thought it said 365 in your profile - my mistake, sorry.

    It says on the splash screen when Excel loads which version you have.

+ 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. Unpivot Complex Crosstab Table
    By wrooffy in forum Excel General
    Replies: 1
    Last Post: 02-05-2018, 11:44 AM
  2. [SOLVED] VBA to unpivot table based on date range
    By Brawnystaff in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-09-2015, 07:32 PM
  3. [SOLVED] How do I transform my table?
    By Catrosa in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-07-2015, 08:04 AM
  4. Transform columt to table!
    By abraha in forum Excel General
    Replies: 6
    Last Post: 12-02-2013, 07:49 AM
  5. Transform sum table
    By MartinCarlsson in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-09-2013, 10:01 AM
  6. transform table vba
    By rhai in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2012, 11:25 AM
  7. Transform table
    By asante_za in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2006, 05:15 PM

Tags for this Thread

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