+ Reply to Thread
Results 1 to 4 of 4

Transposition of a table with Power query

  1. #1
    Registered User
    Join Date
    11-08-2020
    Location
    FRANCE
    MS-Off Ver
    EXCEL PRO PLUS 2019
    Posts
    14

    Transposition of a table with Power query

    Hi,
    In this video of "ExcelIsFun" there is a transformation exercise with Power query.
    I would like to do the same exercise but in the opposite direction.
    How to start from the first table to the second one with Power Query (see attached file)

    Thank you in advance for your help
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-08-2020
    Location
    FRANCE
    MS-Off Ver
    EXCEL PRO PLUS 2019
    Posts
    14

    Re: Transposition of a table with Power query

    Hello,

    I try again with a UP,
    I don't know if my message is in the right section in the power query category or it is impossible to solve this problem but this is where I was directed for my first message.

    I have already consulted on this forum, problems or threads much more complicated than this one.
    In any case, there are some real pro's on power query here.

    If someone could help me it would be very nice .

    Thank you in advance

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Transposition of a table with Power query

    Hello MEDERIK and Welcome to Excel Forum.
    If a formula based proposal is acceptable try the following:
    Populate E5:E13 using: =COUNTIFS(A$5:A5,A5)
    Note that I started the output table in cell H12.
    Populate H13:H16 using: =IFERROR(INDEX(A$5:A$13,MATCH(0,INDEX(COUNTIF(H$12:H12,A$5:A$13),,),)),"")
    Populate I13:Q16 using: =IF($H13="","",INDEX($B$5:$D$13,AGGREGATE(15,6,(ROW($A$5:$A$13)-ROW($A$4))/($A$5:$A$13=$H13)/($E$5:$E$13=--RIGHT(I$12,1)),1),MATCH(LEFT(I$12,LEN(I$12)-1),$B$4:$D$4,0)))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  4. #4
    Registered User
    Join Date
    11-08-2020
    Location
    FRANCE
    MS-Off Ver
    EXCEL PRO PLUS 2019
    Posts
    14

    Re: Transposition of a table with Power query

    Hi JetMc,

    Thank you for your welcome message and for your formulas,
    In fact, I'm looking for a solution with Power query instead,

    I have consulted many sites with table transpositions but I have never found for this kind of exercise,
    I don't really have a personal need but it is for my curiosity and personal learning that I posted this topic.
    I'm sure it must have an elegant and simple solution with Power query..., I keep hoping

    In any case, thank you very much for your answer, I keep the file with your formulas, maybe I will need it someday

    Have a nice day

+ 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 - load to workbook and create query table
    By jaryszek in forum Excel General
    Replies: 1
    Last Post: 12-10-2019, 11:09 AM
  2. [SOLVED] Power Pivot/Query Convert Existing Table to Query
    By trisoldee in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-23-2019, 04:27 PM
  3. POWER Query and Power Pivot Table !!
    By haitham.shop in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-06-2018, 04:09 PM
  4. Power Query and Power Pivot Table
    By haitham.shop in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-06-2018, 06:17 AM
  5. Power Query and Power Pivot Table !!
    By haitham.shop in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-06-2018, 06:15 AM
  6. POWER Query and Power Pivot Table !!
    By haitham.shop in forum Access Tables & Databases
    Replies: 0
    Last Post: 08-06-2018, 05:59 AM
  7. 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

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