Trying to pivot with Dates across

JeffDaMan

New Member
Joined
Oct 21, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Guys, here's my issue....

I have this data grid that I need to pivot it. Simple.

issue.PNG


The problem is that the dates comes across (toward the right) of my main columns.
Usually, I'd rearrange my data in a vertical rather horizontal direction BUT It cannot be moved as per client's request. Well, also because the client needs a Timeline slicer on top of the graphics.

I've been told that a PowerPivot or a PivotQuery reshaping could do it but it's beyond my knowledge.

So, how can I? How would you do it?

Thank you
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
1. We cannot manipulate data in a picture. Please reload your data using XL2BB so we don't have to recreate your schedule.
2. To make sure we are not guessing at what you want, please mock up your solution so we can see what you need exactly as your explanation is not clear to me.
 
Upvote 0
1. We cannot manipulate data in a picture. Please reload your data using XL2BB so we don't have to recreate your schedule.
2. To make sure we are not guessing at what you want, please mock up your solution so we can see what you need exactly as your explanation is not clear to me.

You're absolutely right!

I couldn't install XL2BB as I have no admin rights in this computer. However I have written the data as I have it in the File.
As you can see here, the Columns with Data comes across my categories (first 2 columns), but I need to pivot it (like the picture) so it can be manipulated as vertical data.

MakeStyleOct - 3Oct - 10Oct - 17Oct - 24
ToyotaSUV01359
ChevroletSedan6244
AudiSport5968
BMWSUV2354
SubaruSedan81015
HondaSport54711
 
Upvote 0
You did not supply us with your expected results so I am only guessing. Is this what you want your data to look like?
MakeStyleAttributeValue
ToyotaSUV3-Oct0
ToyotaSUV10-Oct13
ToyotaSUV17-Oct5
ToyotaSUV24-Oct9
ChevroletSedan3-Oct6
ChevroletSedan10-Oct2
ChevroletSedan17-Oct4
ChevroletSedan24-Oct4
AudiSport3-Oct5
AudiSport10-Oct9
AudiSport17-Oct6
AudiSport24-Oct8
BMWSUV3-Oct2
BMWSUV10-Oct3
BMWSUV17-Oct5
BMWSUV24-Oct4
SubaruSedan3-Oct8
SubaruSedan10-Oct10
SubaruSedan17-Oct1
SubaruSedan24-Oct5
HondaSport3-Oct5
HondaSport10-Oct4
HondaSport17-Oct7
HondaSport24-Oct11


If so, then unpivot the data with Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"Make", "Style"}, "Attribute", "Value")
in
    #"Unpivoted Other Columns"
 
Upvote 0
Solution
You did not supply us with your expected results so I am only guessing. Is this what you want your data to look like?


If so, then unpivot the data with Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"Make", "Style"}, "Attribute", "Value")
in
    #"Unpivoted Other Columns"

Thank you Alan!
I thought I uploaded a Picture.
But yes, that's exactly what I need my data to look like.
I'm trying it RN.
 
Upvote 0

Forum statistics

Threads
1,223,732
Messages
6,174,182
Members
452,550
Latest member
southernsquid2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top