SOLVED

Three pivot tables

%3CLINGO-SUB%20id%3D%22lingo-sub-1253929%22%20slang%3D%22en-US%22%3EThree%20pivot%20tables%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1253929%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20to%20create%20essentially%20the%20same%20pivot%20table%203%20times%2C%20but%20the%20only%20variable%20is%20that%20I%20need%20one%20to%20show%20days%2C%20the%20other%20to%20show%20weeks%2C%20and%20the%20last%20to%20show%20months.%3C%2FP%3E%3CP%3EThe%20problem%20I%20encounter%20is%20when%20I%20create%20the%20second%20pivot%20table%20and%20group%20by%20weeks%2C%20it%20makes%20the%20first%20pivot%20table%20do%20the%20same%20thing.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20using%20the%20pivot%20table%20wizard%20to%20create%20an%20un-linked%202nd%20and%203rd%20table%2C%20which%20solved%20the%20problem%20of%20making%20the%20other%20pivot%20tables%20change%20their%20grouping%20but%20then%20when%20I%20created%20slicers%2C%20the%20slicer%20only%20impacts%20one%20of%20the%20pivot%20tables%20and%20there%20is%20no%20way%20to%20link%20the%20slicer%20to%20the%20other%20pivot%20tables.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20do%20I%20get%20it%20where%20the%20pivot%20tables%20do%20not%20change%20when%20I%20change%20the%20grouping%2C%20so%20I%20can%20have%20one%20slicer%20for%20all%20of%20the%20pivot%20tables%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1253929%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1256927%22%20slang%3D%22en-US%22%3ERe%3A%20Three%20pivot%20tables%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1256927%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F595414%22%20target%3D%22_blank%22%3E%40joshallen%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20easiest%20way%20is%20to%20add%20data%20to%20data%20model%20creating%20PivotTable%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20390px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F179830iAE2F0A478E39F228%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EOther%20way%20is%20to%20separate%20caches%2C%20you%20may%20google%20for%20guidance%2C%20but%20I%20don't%20see%20practical%20reasons%20to%20use%20such%20method.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1257007%22%20slang%3D%22en-US%22%3ERe%3A%20Three%20pivot%20tables%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1257007%22%20slang%3D%22en-US%22%3EThank%20you!%20The%20add%20data%20to%20data%20model%20worked.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1257071%22%20slang%3D%22en-US%22%3ERe%3A%20Three%20pivot%20tables%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1257071%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F595414%22%20target%3D%22_blank%22%3E%40joshallen%3C%2FA%3E%26nbsp%3B%2C%20you%20are%20welcome%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1360475%22%20slang%3D%22en-US%22%3ERe%3A%20Three%20pivot%20tables%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1360475%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20I%20tried%20your%20method%2C%20but%20it%20didn't%20work.%20Do%20you%20have%20any%20other%20suggestions%3F%20When%20I%20try%20to%20group%20the%20second%20pivot%20table%2C%20a%20message%20appears%20saying%3A%20%22it%20cannot%20group%20that%20selection%22.%20The%20group%20comes%20from%20the%20same%20numeric%20column%20as%20in%20the%20first%20pivot%20table%2C%20so%20I%20don't%20know%20what%20I'm%20doing%20wrong.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1361005%22%20slang%3D%22en-US%22%3ERe%3A%20Three%20pivot%20tables%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1361005%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F656013%22%20target%3D%22_blank%22%3E%40klacam%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAbove%20works%20if%20you%20have%20hierarchy%20as%20dates%20(year%2C%20month%2C%20dates).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGrouping%20of%20numbers%20or%20texts%20doesn't%20work%20with%20pivot%20tables%20if%20data%20added%20to%20data%20model.%20You%20may%20do%20that%20without%20adding%20data%20to%20data%20model%20but%20separating%20pivot%20table%20caches.%20You%20may%20google%20for%20more%20details%2C%20simple%20approach%20is%3C%2FP%3E%0A%3CP%3ECreate%20pivot%20tables%20without%20adding%20data%20to%20data%20model%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20528px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F189160iC78AA0F46C3A639C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E-%20open%20new%20empty%20Excel%20workbook%3C%2FP%3E%0A%3CP%3E-%20cut%20one%20pivot%20table%20(e.g.%20second%20one)%20and%20paste%20into%20new%20workbook%3C%2FP%3E%0A%3CP%3E-%20change%20here%20grouping%20as%20desired%3C%2FP%3E%0A%3CP%3E-%20cut%20pivot%20table%20in%20new%20workbook%20and%20paste%20it%20back%3C%2FP%3E%0A%3CP%3E-%20close%20new%20temporary%20workbook%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I have to create essentially the same pivot table 3 times, but the only variable is that I need one to show days, the other to show weeks, and the last to show months.

The problem I encounter is when I create the second pivot table and group by weeks, it makes the first pivot table do the same thing.

 

I tried using the pivot table wizard to create an un-linked 2nd and 3rd table, which solved the problem of making the other pivot tables change their grouping but then when I created slicers, the slicer only impacts one of the pivot tables and there is no way to link the slicer to the other pivot tables.

 

How do I get it where the pivot tables do not change when I change the grouping, so I can have one slicer for all of the pivot tables?

5 Replies
Highlighted
Best Response confirmed by joshallen (New Contributor)
Solution

@joshallen 

The easiest way is to add data to data model creating PivotTable

image.png

Other way is to separate caches, you may google for guidance, but I don't see practical reasons to use such method.

Highlighted
Thank you! The add data to data model worked.
Highlighted

@joshallen , you are welcome

Highlighted

@Sergei Baklan 

Hi, I tried your method, but it didn't work. Do you have any other suggestions? When I try to group the second pivot table, a message appears saying: "it cannot group that selection". The group comes from the same numeric column as in the first pivot table, so I don't know what I'm doing wrong.

Highlighted

@klacam 

Above works if you have hierarchy as dates (year, month, dates).

 

Grouping of numbers or texts doesn't work with pivot tables if data added to data model. You may do that without adding data to data model but separating pivot table caches. You may google for more details, simple approach is

Create pivot tables without adding data to data model

image.png

- open new empty Excel workbook

- cut one pivot table (e.g. second one) and paste into new workbook

- change here grouping as desired

- cut pivot table in new workbook and paste it back

- close new temporary workbook