Help on Pivot Table

chica17

New Member
Joined
Jan 29, 2018
Messages
2
Hi! I'm having a problem arranging a pivot table report in a simple layout. Can anyone help?
So, I have a (quite big) set of data in this format:

ClientDepartmentEmployee1MAT1H1OT1TOT2MAT2H2OT2TOT3MAT3H3OT3TOT4MAT4H4OT4TOT5MAT5H5OT5TOT6MAT6H6OT6TOT7MAT7H7OT7TOT8MAT8H8OT8TOT9MAT9H9OT9TOT10MAT10H10OT10TOT11MAT11H11OT11TOT12MAT12H12OT12TOT
AENG3458 098,52098,5286,158211,960298,154 21,66
ALOG369769,69179,240248,915 21,6604157,715 59,61401597,154 0141,660141,66
ALOG3245021,66021,66 106,6600106,66 0141415,4 151514,1105,4804157,715 164,1400164,2
BSUB398715152,25105,4804157,715 0155,157 0016,015 189,781515,6140141415,4
BLOG3719189,781515,6202215,4 0511,145190,500 0155,1570155,1571497,415001497,415
CENG35470155,1570155,157190,500190,5 000,580,58000,010,01 80,990 115,170115,1715,870015,87
DLOG36984150,2680,990511,25 27,10027,1 0118,060118,06110,51400110,52
DLOG3697002,862,8600-0,81-0,81 105,48 00,200,2197,9500
ESUB3821002,712,71000,010,01 21,66021,66 1515,614 5140,11159,760559,87
EENG39780015,21515,215000,020,02 105,4804157,715 155,157 1488,0901488,09 114146,500114146,5 197,95
EENG3147 01586,7701586,77 15,40015,4 1515,6202215,4 07,87,8

<colgroup><col><col><col><col span="48"></colgroup><tbody>
</tbody>


In which every number behind "MAT", "H", "OT" and "TOT" refers to a month.
When I build a Pivot Table from this data I put "Client", "Department" and "Employee" in rows and the rest of the columns in values and then I end up having 48 fields in Values, which is terrible for a comparative analysis.
What I need is to have only "MAT", "H", "OT" and "TOT" in values and have the month in filter, for an easier analysis.
Does anyone have an idea how to do this without changing the source data?
All help will be appreciated!
Thanks!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

ranman256

Well-known Member
Joined
Jun 17, 2014
Messages
2,030
use microsoft query, and produce a sheet of only those months, then run the pivot
or
use microsoft Access and make a query to produce a sheet of only those months, then run the pivot
or
in Excel, filter only those months, then copy/paste to a new sheet, then run the pivot
 

chica17

New Member
Joined
Jan 29, 2018
Messages
2
Hi! I used Power Query and was able to unpivot the columns but i created a new problem: I ended up with +3 million lines and I can't seem to be able to export the data produced by the Power Query to the Power Pivot data model (to produce a pivot table from there)
 

Forum statistics

Threads
1,148,294
Messages
5,745,942
Members
423,985
Latest member
sayed manzar

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
Top