52 Week Pivot Table

DJFANDANGO

Board Regular
Joined
Mar 31, 2016
Messages
122
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

I have a 52 week table with 60 employees, I'd like to put in a Pivot Table that will filter the weeks of the year, that shows how many meetings they've attended, and percentage of the total team.

Is there a way of doing this?

Thanks in advance...

Book1
ABCDEFGHIJKLM
1Name01/01/202007/01/202013/01/202019/01/202025/01/202031/01/202006/02/202012/02/202018/02/202024/02/202001/03/202007/03/2020
2wk1wk2wk3wk4wk5wk6wk7wk8wk9wk10wk11wk12
3Sarah300021220201
4John120230221131
5Mike012111131012
6steve102232201013
7Donald023003212211
8Bob222020213312
9Kevin223123313300
10Mandy212202202203
11Susan012301212210
12PERCENTAGE67%78%78%67%67%78%100%78%89%78%67%78%
Sheet1
Cell Formulas
RangeFormula
C1:M1C1=B1+6
B12:M12B12=COUNTIFS(B3:B11,">=1")/COUNTA(B3:B11)
Named Ranges
NameRefers ToCells
Date=Sheet1!$B$1:$M$1C1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B12:M12Other TypeColor scaleNO
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
SCRUB the percentage, I don't need that on the pivot table, just a graph chart that shows how many meetings in a given week they attend... I can get the percentage onto another graph... thanks!
 
Upvote 0
Loaded your data into Power Query and unpivoted the data. Here is the Mcode.

Rich (BB code):
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}, {"wk1", Int64.Type}, {"wk2", Int64.Type}, {"wk3", Int64.Type}, {"wk4", Int64.Type}, {"wk5", Int64.Type}, {"wk6", Int64.Type}, {"wk7", Int64.Type}, {"wk8", Int64.Type}, {"wk9", Int64.Type}, {"wk10", Int64.Type}, {"wk11", Int64.Type}, {"wk12", Int64.Type}}),
    #"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"Column1", "Name"}}),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Renamed Columns", {"Name"}, "Attribute", "Value")
in
    #"Unpivoted Other Columns"

Then in Excel created a Pivot Table.

Book3
ABCDEFG
1NameAttributeValueAttributewk1
2Sarahwk13
3Sarahwk20NameSum of Value
4Sarahwk30Bob2
5Sarahwk40Donald0
6Sarahwk52John1
7Sarahwk61Kevin2
8Sarahwk72Mandy2
9Sarahwk82Mike0
10Sarahwk90Sarah3
11Sarahwk102steve1
12Sarahwk110Susan0
13Sarahwk121
14Johnwk11
15Johnwk22
16Johnwk30
17Johnwk42
18Johnwk53
19Johnwk60
20Johnwk72
21Johnwk82
22Johnwk91
23Johnwk101
24Johnwk113
25Johnwk121
26Mikewk10
27Mikewk21
28Mikewk32
29Mikewk41
30Mikewk51
31Mikewk61
32Mikewk71
33Mikewk83
34Mikewk91
35Mikewk100
36Mikewk111
37Mikewk122
38stevewk11
39stevewk20
40stevewk32
41stevewk42
42stevewk53
43stevewk62
44stevewk72
45stevewk80
46stevewk91
47stevewk100
48stevewk111
49stevewk123
50Donaldwk10
51Donaldwk22
52Donaldwk33
53Donaldwk40
54Donaldwk50
55Donaldwk63
56Donaldwk72
57Donaldwk81
58Donaldwk92
59Donaldwk102
60Donaldwk111
61Donaldwk121
62Bobwk12
63Bobwk22
64Bobwk32
65Bobwk40
66Bobwk52
67Bobwk60
68Bobwk72
69Bobwk81
70Bobwk93
71Bobwk103
72Bobwk111
73Bobwk122
74Kevinwk12
75Kevinwk22
76Kevinwk33
77Kevinwk41
78Kevinwk52
79Kevinwk63
80Kevinwk73
81Kevinwk81
82Kevinwk93
83Kevinwk103
84Kevinwk110
85Kevinwk120
86Mandywk12
87Mandywk21
88Mandywk32
89Mandywk42
90Mandywk50
91Mandywk62
92Mandywk72
93Mandywk80
94Mandywk92
95Mandywk102
96Mandywk110
97Mandywk123
98Susanwk10
99Susanwk21
100Susanwk32
101Susanwk43
102Susanwk50
103Susanwk61
104Susanwk72
105Susanwk81
106Susanwk92
107Susanwk102
108Susanwk111
109Susanwk120
Sheet2
 

Attachments

  • Capture.JPG
    Capture.JPG
    37.6 KB · Views: 18
Upvote 0
Thanks for the info Alan, unfortunately, I have never used Power Query before, wouldn't know where to start...?
 
Upvote 0
Click on the link in my signature block to get started. If truly interested in learning PQ, then obtain "M is for (Data) Monkey" by Ken Puls and Miguel Escobar. Available on MR. E Sore or Amazon.

 
Upvote 0
Thanks for the info Alan, unfortunately, I have never used Power Query before, wouldn't know where to start...?

Here are the steps I used.
1. Highlight your table in Excel
2. Click on the Data Tab. Select Get from Table/Range on the Get and Transform section
3. In the PQ editor Right Click on Column 1 and select Rename. Rename "Name"
4. Highlight Name Column and click on Transform Tab. Select Unpivot and then Unpivot Other Columns
5. On the Home Tab. Click on Close and Load.
You now have a list that you can use to create a Pivot Table back in Native Excel.
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,189
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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