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:

[TABLE="width: 3267"]
<colgroup><col><col><col><col span="48"></colgroup><tbody>[TR]
[TD]Client[/TD]
[TD]Department[/TD]
[TD]Employee[/TD]
[TD]1MAT[/TD]
[TD]1H[/TD]
[TD]1OT[/TD]
[TD]1TOT[/TD]
[TD]2MAT[/TD]
[TD]2H[/TD]
[TD]2OT[/TD]
[TD]2TOT[/TD]
[TD]3MAT[/TD]
[TD]3H[/TD]
[TD]3OT[/TD]
[TD]3TOT[/TD]
[TD]4MAT[/TD]
[TD]4H[/TD]
[TD]4OT[/TD]
[TD]4TOT[/TD]
[TD]5MAT[/TD]
[TD]5H[/TD]
[TD]5OT[/TD]
[TD]5TOT[/TD]
[TD]6MAT[/TD]
[TD]6H[/TD]
[TD]6OT[/TD]
[TD]6TOT[/TD]
[TD]7MAT[/TD]
[TD]7H[/TD]
[TD]7OT[/TD]
[TD]7TOT[/TD]
[TD]8MAT[/TD]
[TD]8H[/TD]
[TD]8OT[/TD]
[TD]8TOT[/TD]
[TD]9MAT[/TD]
[TD]9H[/TD]
[TD]9OT[/TD]
[TD]9TOT[/TD]
[TD]10MAT[/TD]
[TD]10H[/TD]
[TD]10OT[/TD]
[TD]10TOT[/TD]
[TD]11MAT[/TD]
[TD]11H[/TD]
[TD]11OT[/TD]
[TD]11TOT[/TD]
[TD]12MAT[/TD]
[TD]12H[/TD]
[TD]12OT[/TD]
[TD]12TOT[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]ENG[/TD]
[TD="align: right"]3458[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]98,52[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]98,52[/TD]
[TD="align: right"]86,158[/TD]
[TD="align: right"]211,96[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]298,154[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]21,66[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]LOG[/TD]
[TD="align: right"]3697[/TD]
[TD="align: right"]69,69[/TD]
[TD="align: right"]179,24[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]248,915[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]21,66[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]4157,715[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]59,614[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1597,154[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]141,66[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]141,66[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]LOG[/TD]
[TD="align: right"]3245[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]21,66[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]21,66[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]106,66[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]106,66[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]141415,4[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]151514,1[/TD]
[TD="align: right"]105,48[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]4157,715[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]164,14[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]164,2[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]SUB[/TD]
[TD="align: right"]3987[/TD]
[TD="align: right"]15152,25[/TD]
[TD="align: right"]105,48[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]4157,715[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]155,157[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]16,015[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]189,78[/TD]
[TD="align: right"]1515,614[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]141415,4[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]LOG[/TD]
[TD="align: right"]3719[/TD]
[TD="align: right"]189,78[/TD]
[TD="align: right"]1515,62[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2215,4[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]511,145[/TD]
[TD="align: right"]190,5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]155,157[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]155,157[/TD]
[TD="align: right"]1497,415[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1497,415[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]ENG[/TD]
[TD="align: right"]3547[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]155,157[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]155,157[/TD]
[TD="align: right"]190,5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]190,5[/TD]
[TD] [/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0,58[/TD]
[TD="align: right"]0,58[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0,01[/TD]
[TD="align: right"]0,01[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]80,99[/TD]
[TD="align: right"]0[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]115,17[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]115,17[/TD]
[TD="align: right"]15,87[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]15,87[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]LOG[/TD]
[TD="align: right"]3698[/TD]
[TD="align: right"]4150,26[/TD]
[TD="align: right"]80,99[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]511,25[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]27,1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]27,1[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]118,06[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]118,06[/TD]
[TD="align: right"]110,514[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]110,52[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]LOG[/TD]
[TD="align: right"]3697[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2,86[/TD]
[TD="align: right"]2,86[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]-0,81[/TD]
[TD="align: right"]-0,81[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]105,48[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0,2[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0,2[/TD]
[TD="align: right"]197,95[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]SUB[/TD]
[TD="align: right"]3821[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2,71[/TD]
[TD="align: right"]2,71[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0,01[/TD]
[TD="align: right"]0,01[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]21,66[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]21,66[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]1515,614[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]5140,11[/TD]
[TD="align: right"]159,76[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]559,87[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]ENG[/TD]
[TD="align: right"]3978[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]15,215[/TD]
[TD="align: right"]15,215[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0,02[/TD]
[TD="align: right"]0,02[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]105,48[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]4157,715[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]155,157[/TD]
[TD] [/TD]
[TD="align: right"]1488,09[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1488,09[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]114146,5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]114146,5[/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]197,95[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]ENG[/TD]
[TD="align: right"]3147[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1586,77[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1586,77[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]15,4[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]15,4[/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]1515,62[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2215,4[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]7,8[/TD]
[TD="align: right"]7,8[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]


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

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
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
 
Upvote 0
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)
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

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