Transform (1 Viewer)

zezo2021

Member
Local time
Today, 11:13
Joined
Mar 25, 2021
Messages
381
Hello friends

I need to transform the attached table to new table

You will see explain in Excel
Source Table
Transform Table

How can I do that using query

Thank you in advance for your help
 

Attachments

  • Book1.zip
    7.3 KB · Views: 68

plog

Banishment Pending
Local time
Today, 04:13
Joined
May 11, 2011
Messages
11,648
Very similar thread going on right now about this:

 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 17:13
Joined
May 7, 2009
Messages
19,247
demo of what you need.
 

Attachments

  • zezoTransform.accdb
    480 KB · Views: 66

June7

AWF VIP
Local time
Today, 01:13
Joined
Mar 9, 2014
Messages
5,475
In Access that would be a UNION query.
SELECT Project, Function, Category, Key, [2020-2040] AS Value, "2020-2040" AS SrceDate FROM table
UNION SELECT Project, Function, Category, Key, [1Q20], "1Q20" FROM table
UNION SELECT Project, Function, Category, Key, [2Q20], "2Q20" FROM table;

If you want to do in Excel Power Query that would be an UNPIVOT https://support.microsoft.com/en-us...during a refresh operation are also unpivoted..
 

Users who are viewing this thread

Top Bottom