Collapse Pivot Table row, Filter column, then expand row to show detail

ILOVEJAVA

New Member
Joined
Oct 25, 2018
Messages
1
Hi There,

This is my table and I need to compare prior period to current period for any location that has less than -40% change and greater than 50% over the prior period.
Emp IDLocationhoursperiod
653521A00010180201821
653521A00010130.22201822
1115454A00010180201821
1115454A00010115201822
2514852A00010123.12201821
2514852A00010180201822
1458400A00010166.8201821
1458400A02453115201822
548408A02453160201821
548408A02453113.2201822
424014A02453183.09201821
424014A02453122.4201822
292967A02453179.88201821
292967A02453110201822
1820548A024531120201821
1820548A02453140201822
2568555A02453180201821
2568555A0245319201822
484996A02453114201821
484996A02453180201822
545567A02453114.08201821
545567A00647135.1201822
2468050A00880542201821
2468050A00880561.45201822
98443A00880511.5201822
98443A00832011.5201821
386793A02255310.65201822
386793A02255338.65201821
2850342A02255341.9201822
2850342A02255338201821
2282629A02255345.9201822
2282629A02255312.4201821
324737A02255380201822
324737A02255340201821
562941A00098678.4201822
562941A00098683.05201821
1108451A00647158.2201822
1108451A00647151.6201821
1125932A00647118.15201822
1125932A00647124.7201821

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>

I created a pivot table and added a filter for <-40% and >50%. I need to collapse the data and look at locations that <-40% and >50% change over prior period, then I need to show detail under the filtered locations.

Column Labels
201821201822Total Sum of hoursTotal Sum of hours2
Row LabelsSum of hoursSum of hours2Sum of hoursSum of hours2
A000101249.92125.22-49.90%375.14
6535218030.22-62.23%110.22
11154548015-81.25%95
251485223.1280246.02%103.12
145840066.8#NULL!66.8
A00098683.0578.4-5.60%161.45
56294183.0578.4-5.60%161.45
A00647176.3111.4546.07%187.75
54556735.135.1
110845151.658.212.79%109.8
112593224.718.15-26.52%42.85
A00832011.5#NULL!11.5
9844311.5#NULL!11.5
A0088054272.9573.69%114.95
24680504261.4546.31%103.45
9844311.511.5
A022553129.05178.4538.28%307.5
38679338.6510.65-72.45%49.3
28503423841.910.26%79.9
228262912.445.9270.16%58.3
3247374080100.00%120
A024531451.05189.6-57.96%640.65
14584001515
5484086013.2-78.00%73.2
42401483.0922.4-73.04%105.49
29296779.8810-87.48%89.88
182054812040-66.67%160
2568555809-88.75%89
4849961480471.43%94
54556714.08#NULL!14.08
Grand Total1042.87756.07-27.50%1798.94

<colgroup><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

My data is upwards of 400 locations and 30,000 unique employees. This will need to be done each change in period, so weekly. I am in the process of recording a macro, so I hope it is a solution that I can record a macro for.

Any assistance you are able to provide is greatly appreciated. I look forward to your response.

Thank you,

ILOVEJAVA
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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