Forum Discussion
How to use a PivotTable with unique columns?
- Sep 15, 2019
Since your data on Responses Tab was already in pivoted form, I used Power Query to transform and UnPivot the data on Responses Tab to create a Pivot Table on a New Sheet (Green Tab).
To do that, I converted the data on Responses Tab into an Excel Table and named it "Responses", loaded the data into the Power Query, removed the TimeStamp column as it was not required in the Pivot Table to be created, UnPivoted all the columns, renamed the columns and loaded as a Pivot Table Report on a New Sheet.
See if this is what you were trying to achieve.
I'll try to upload it when I'm home, but I feel like I'm just missing something basic here or misusing the Table that someone should be able to point out.
Okay. Am including a quick-and-dirty example that achieves what I believe you are trying to do. If not, try uploading a sample of your data at your earliest convenience.
- JoeDon16Sep 15, 2019Copper Contributor
Thanks for making that! I appreciate it, but it's not quite what I'm looking for.
Here's an example of what I'm dealing with, in the PivotTable sheet you can see the exact table I'm trying to work with. I'm not sure what to put in the Columns section if it can only handle one column at a time from my Responses sheet.
- Subodh_Tiwari_sktneerSep 15, 2019Silver Contributor
Since your data on Responses Tab was already in pivoted form, I used Power Query to transform and UnPivot the data on Responses Tab to create a Pivot Table on a New Sheet (Green Tab).
To do that, I converted the data on Responses Tab into an Excel Table and named it "Responses", loaded the data into the Power Query, removed the TimeStamp column as it was not required in the Pivot Table to be created, UnPivoted all the columns, renamed the columns and loaded as a Pivot Table Report on a New Sheet.
See if this is what you were trying to achieve.
- JoeDon16Sep 15, 2019Copper ContributorThank you for explaining that! I'll try to recreate what you did in that file, thank you very much for sharing it 🙂
- Detlef_LewinSep 15, 2019Silver Contributor
As Riny_van_Eekelen pointed out your data is already in a cross tabular form.
You have to unpivot first. The easiest way is with Power Query.
Then you can load the data into a Pivot Table.
- JoeDon16Sep 15, 2019Copper ContributorAh alright, I guess I'll look into that too. I heard a little bit about it when I was searching this question up earlier, but I didn't think it would help! Thank you.
- Riny_van_EekelenSep 15, 2019Platinum Contributor
Got it! Your data is already in a table format. Then, to my knowledge, you can't use a pivot tables to rearrange the date. Use COUNTIF instead. Added the formulae to your sheet. Would this work for you?
- JoeDon16Sep 15, 2019Copper ContributorYes! Thank you very much, that works perfectly! 🙂
Kind of sucks that it's not possible to use a PivotTable to achieve the same result, but oh well. I do have one last question, for setting up a COUNTIF like this table, is there any easy way to do it if I had let's say 100 ranks? Or just a quick way to set it up. Right now I only really know how to manually type in the COUNTIF command and copy/paste the cells around, I never have really used it before.