Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a file with about 8,000 rows of data and about 30 columns. I have
about 26 pivot tables that are in one of the sheets. The file is over 13MB. If I delete the pivots my file size drops to only 6MB. My question is, A) how much space does a Pivot Table take in a file, is it the full size of the data it refrences? B) Is there a way to reduce the amount of file space of the Pivot Table? Any help would be much appreciated as a 13 MB file is very unwieldy to update and manipulate when opened, and the file just gets bigger every month. Thanks!!! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Each new pivot table creates a hidden copy of the source data. That's how you
can keep working with the same pivot table data eve if the source data changes. You have the option to make pivot tables share the same cached source data when you create the pivot table. If you open the pivot table wizard and click the [back] button to Step 1 of 3... Select the 4th option button (Another Pivot Table report...) Then click the [Next] buttons, to verify the remaining settings. The file size will decrease. Do that for all but the one pivot table that will be the basis for the others. Does that help? *********** Regards, Ron XL2003, WinXP "1genxer" wrote: I have a file with about 8,000 rows of data and about 30 columns. I have about 26 pivot tables that are in one of the sheets. The file is over 13MB. If I delete the pivots my file size drops to only 6MB. My question is, A) how much space does a Pivot Table take in a file, is it the full size of the data it refrences? B) Is there a way to reduce the amount of file space of the Pivot Table? Any help would be much appreciated as a 13 MB file is very unwieldy to update and manipulate when opened, and the file just gets bigger every month. Thanks!!! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
1genxer,
You are correct, a file containing PivotTables will become exponentially larger the more data that you add to the file because it does infact copy a "Temporary" image of all the records that it is referencing. So, with 26 PivotTables you have all in all 27 actual copies of the data (including the original). There are a couple alternatives, some more unweildy than others. A) You could break all the links to the data in the PivotTables, however you cannot update them anymore unless you reattach the link. B)You could create a separate file for the DATA and another for the PivotTables. They would link across to each other, even if the data book is closed. C)You could place this information, which sounds like a database (?), into Access and run Queries to create your PivotTables. However, I must note that PivotTables in Access do not work the same as they do in Excel (similar, but not the same). -- --Thomas [PBD] Working hard to make working easy. "1genxer" wrote: I have a file with about 8,000 rows of data and about 30 columns. I have about 26 pivot tables that are in one of the sheets. The file is over 13MB. If I delete the pivots my file size drops to only 6MB. My question is, A) how much space does a Pivot Table take in a file, is it the full size of the data it refrences? B) Is there a way to reduce the amount of file space of the Pivot Table? Any help would be much appreciated as a 13 MB file is very unwieldy to update and manipulate when opened, and the file just gets bigger every month. Thanks!!! |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Is there a way to do that outside the Wizard as my tables are already built?
I really don't want to have to build them from scratch again. "Ron Coderre" wrote: Each new pivot table creates a hidden copy of the source data. That's how you can keep working with the same pivot table data eve if the source data changes. You have the option to make pivot tables share the same cached source data when you create the pivot table. If you open the pivot table wizard and click the [back] button to Step 1 of 3... Select the 4th option button (Another Pivot Table report...) Then click the [Next] buttons, to verify the remaining settings. The file size will decrease. Do that for all but the one pivot table that will be the basis for the others. Does that help? *********** Regards, Ron XL2003, WinXP "1genxer" wrote: I have a file with about 8,000 rows of data and about 30 columns. I have about 26 pivot tables that are in one of the sheets. The file is over 13MB. If I delete the pivots my file size drops to only 6MB. My question is, A) how much space does a Pivot Table take in a file, is it the full size of the data it refrences? B) Is there a way to reduce the amount of file space of the Pivot Table? Any help would be much appreciated as a 13 MB file is very unwieldy to update and manipulate when opened, and the file just gets bigger every month. Thanks!!! |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi
From Debra Dalgleish's "Excel Pivot Tables Recipe Book" Sub ChangeAllPivotCaches() Dim pt as PivotTable Dim ws as Worksheet On Error Goto err_handler For each ws in ActiveWorkbook.Worksheets For Each pt in ws.PivotTables pt.CacheIndex = Activecell.PivotTable.CacheIndex Next pt Nex ws Exit Sub err_Handler Msgbox "Cache Index could not be changed" End Sub Place cursor in any cell of the first PT you created, then run the macro -- Regards Roger Govier "1genxer" wrote in message ... Is there a way to do that outside the Wizard as my tables are already built? I really don't want to have to build them from scratch again. "Ron Coderre" wrote: Each new pivot table creates a hidden copy of the source data. That's how you can keep working with the same pivot table data eve if the source data changes. You have the option to make pivot tables share the same cached source data when you create the pivot table. If you open the pivot table wizard and click the [back] button to Step 1 of 3... Select the 4th option button (Another Pivot Table report...) Then click the [Next] buttons, to verify the remaining settings. The file size will decrease. Do that for all but the one pivot table that will be the basis for the others. Does that help? *********** Regards, Ron XL2003, WinXP "1genxer" wrote: I have a file with about 8,000 rows of data and about 30 columns. I have about 26 pivot tables that are in one of the sheets. The file is over 13MB. If I delete the pivots my file size drops to only 6MB. My question is, A) how much space does a Pivot Table take in a file, is it the full size of the data it refrences? B) Is there a way to reduce the amount of file space of the Pivot Table? Any help would be much appreciated as a 13 MB file is very unwieldy to update and manipulate when opened, and the file just gets bigger every month. Thanks!!! |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You can:
€¢ Right-click on a pivot table €¢ Select the Pivot Table wizard €¢ Click the [Back] buttons until "Step 1 of 3" €¢ Change the pivot table source to "Another Pivot Table report" €¢ Select the pivot table that will be the source for al of the others €¢ Click [Finish} Repeat for each of the other pivot tables. Does that help? *********** Regards, Ron XL2003, WinXP "1genxer" wrote: Is there a way to do that outside the Wizard as my tables are already built? I really don't want to have to build them from scratch again. "Ron Coderre" wrote: Each new pivot table creates a hidden copy of the source data. That's how you can keep working with the same pivot table data eve if the source data changes. You have the option to make pivot tables share the same cached source data when you create the pivot table. If you open the pivot table wizard and click the [back] button to Step 1 of 3... Select the 4th option button (Another Pivot Table report...) Then click the [Next] buttons, to verify the remaining settings. The file size will decrease. Do that for all but the one pivot table that will be the basis for the others. Does that help? *********** Regards, Ron XL2003, WinXP "1genxer" wrote: I have a file with about 8,000 rows of data and about 30 columns. I have about 26 pivot tables that are in one of the sheets. The file is over 13MB. If I delete the pivots my file size drops to only 6MB. My question is, A) how much space does a Pivot Table take in a file, is it the full size of the data it refrences? B) Is there a way to reduce the amount of file space of the Pivot Table? Any help would be much appreciated as a 13 MB file is very unwieldy to update and manipulate when opened, and the file just gets bigger every month. Thanks!!! |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks everyone for all your help! It is not a database that I am working
with, but rather the results of surveys given overtime. So, as mentioned above the data gets larger every month. I will try these methods and if something doesn't work I will get back on here. Thanks again! "1genxer" wrote: I have a file with about 8,000 rows of data and about 30 columns. I have about 26 pivot tables that are in one of the sheets. The file is over 13MB. If I delete the pivots my file size drops to only 6MB. My question is, A) how much space does a Pivot Table take in a file, is it the full size of the data it refrences? B) Is there a way to reduce the amount of file space of the Pivot Table? Any help would be much appreciated as a 13 MB file is very unwieldy to update and manipulate when opened, and the file just gets bigger every month. Thanks!!! |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Can you tell me exactly what this macro does? I am not very educated in code
like that. "Roger Govier" wrote: Hi From Debra Dalgleish's "Excel Pivot Tables Recipe Book" Sub ChangeAllPivotCaches() Dim pt as PivotTable Dim ws as Worksheet On Error Goto err_handler For each ws in ActiveWorkbook.Worksheets For Each pt in ws.PivotTables pt.CacheIndex = Activecell.PivotTable.CacheIndex Next pt Nex ws Exit Sub err_Handler Msgbox "Cache Index could not be changed" End Sub Place cursor in any cell of the first PT you created, then run the macro -- Regards Roger Govier "1genxer" wrote in message ... Is there a way to do that outside the Wizard as my tables are already built? I really don't want to have to build them from scratch again. "Ron Coderre" wrote: Each new pivot table creates a hidden copy of the source data. That's how you can keep working with the same pivot table data eve if the source data changes. You have the option to make pivot tables share the same cached source data when you create the pivot table. If you open the pivot table wizard and click the [back] button to Step 1 of 3... Select the 4th option button (Another Pivot Table report...) Then click the [Next] buttons, to verify the remaining settings. The file size will decrease. Do that for all but the one pivot table that will be the basis for the others. Does that help? *********** Regards, Ron XL2003, WinXP "1genxer" wrote: I have a file with about 8,000 rows of data and about 30 columns. I have about 26 pivot tables that are in one of the sheets. The file is over 13MB. If I delete the pivots my file size drops to only 6MB. My question is, A) how much space does a Pivot Table take in a file, is it the full size of the data it refrences? B) Is there a way to reduce the amount of file space of the Pivot Table? Any help would be much appreciated as a 13 MB file is very unwieldy to update and manipulate when opened, and the file just gets bigger every month. Thanks!!! |
#9
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I can't find the Pivot Table Wizard in 2007. How do I find where to make this
change in 2007? "Ron Coderre" wrote: Each new pivot table creates a hidden copy of the source data. That's how you can keep working with the same pivot table data eve if the source data changes. You have the option to make pivot tables share the same cached source data when you create the pivot table. If you open the pivot table wizard and click the [back] button to Step 1 of 3... Select the 4th option button (Another Pivot Table report...) Then click the [Next] buttons, to verify the remaining settings. The file size will decrease. Do that for all but the one pivot table that will be the basis for the others. Does that help? *********** Regards, Ron XL2003, WinXP "1genxer" wrote: I have a file with about 8,000 rows of data and about 30 columns. I have about 26 pivot tables that are in one of the sheets. The file is over 13MB. If I delete the pivots my file size drops to only 6MB. My question is, A) how much space does a Pivot Table take in a file, is it the full size of the data it refrences? B) Is there a way to reduce the amount of file space of the Pivot Table? Any help would be much appreciated as a 13 MB file is very unwieldy to update and manipulate when opened, and the file just gets bigger every month. Thanks!!! |
#10
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi
Copy the Code from my previous posting Alt+F11 to invoke the VB Editor InsertModule Paste code into white pane that appears Alt+F11 to return to Excel To use Select cell within your first PT Alt+F8 to bring up Macros Highlight the macro name Run It will cycle through each of the PT's in turn, setting the cache that each uses to be that from the first PT, rather than you doing each one manually. Save and Close your workbook and the file size should be reduced. -- Regards Roger Govier "1genxer" wrote in message ... Can you tell me exactly what this macro does? I am not very educated in code like that. "Roger Govier" wrote: Hi From Debra Dalgleish's "Excel Pivot Tables Recipe Book" Sub ChangeAllPivotCaches() Dim pt as PivotTable Dim ws as Worksheet On Error Goto err_handler For each ws in ActiveWorkbook.Worksheets For Each pt in ws.PivotTables pt.CacheIndex = Activecell.PivotTable.CacheIndex Next pt Nex ws Exit Sub err_Handler Msgbox "Cache Index could not be changed" End Sub Place cursor in any cell of the first PT you created, then run the macro -- Regards Roger Govier "1genxer" wrote in message ... Is there a way to do that outside the Wizard as my tables are already built? I really don't want to have to build them from scratch again. "Ron Coderre" wrote: Each new pivot table creates a hidden copy of the source data. That's how you can keep working with the same pivot table data eve if the source data changes. You have the option to make pivot tables share the same cached source data when you create the pivot table. If you open the pivot table wizard and click the [back] button to Step 1 of 3... Select the 4th option button (Another Pivot Table report...) Then click the [Next] buttons, to verify the remaining settings. The file size will decrease. Do that for all but the one pivot table that will be the basis for the others. Does that help? *********** Regards, Ron XL2003, WinXP "1genxer" wrote: I have a file with about 8,000 rows of data and about 30 columns. I have about 26 pivot tables that are in one of the sheets. The file is over 13MB. If I delete the pivots my file size drops to only 6MB. My question is, A) how much space does a Pivot Table take in a file, is it the full size of the data it refrences? B) Is there a way to reduce the amount of file space of the Pivot Table? Any help would be much appreciated as a 13 MB file is very unwieldy to update and manipulate when opened, and the file just gets bigger every month. Thanks!!! |
#11
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Here is some code to cycle through your workbook and tell you which pivot tables are using which cache
Sub PivotCacheReport() Dim pc As PivotCache Dim s As String, sn As String Dim ws As Worksheet Dim pt As PivotTable With ActiveWorkbook For Each pc In .PivotCaches s = "Pivotcache " & CStr(pc.Index) & " uses " & CStr(pc.MemoryUsed) & " and has " _ & CStr(pc.RecordCount) & " records" s = s & Chr(10) & "The following pivot tables use it" For Each ws In .Worksheets sn = ws.Name For Each pt In ws.PivotTables If pt.CacheIndex = pc.Index Then If Len(sn) 0 Then s = s & Chr(10) & sn & Chr(10) sn = "" End If s = s & Replace(pt.Name, "PivotTable", "PT") & "," End If Next pt Next ws MsgBox (s) Next pc sn = Chr(10) & "Couldnt find the pivotcache for these pivot tables" s = "" For Each ws In .Worksheets For Each pt In ws.PivotTables If pt.CacheIndex < 1 Or pt.CacheIndex .PivotCaches.count Then s = s & Chr(10) & ws.Name & ":" & Replace(pt.Name, "PivotTable", "PT") End If Next pt Next ws If (Len(s) 0) Then MsgBox (sn & s) End If End With End Sub Roger Govier wrote: HiCopy the Code from my previous postingAlt+F11 to invoke the VB 30-Sep-08 Hi Copy the Code from my previous posting Alt+F11 to invoke the VB Editor InsertModule Paste code into white pane that appears Alt+F11 to return to Excel To use Select cell within your first PT Alt+F8 to bring up Macros Highlight the macro name Run It will cycle through each of the PT's in turn, setting the cache that each uses to be that from the first PT, rather than you doing each one manually. Save and Close your workbook and the file size should be reduced. -- Regards Roger Govier "1genxer" wrote in message ... Previous Posts In This Thread: On Tuesday, September 30, 2008 11:31 AM 1genxe wrote: Pivot Table File Size Question I have a file with about 8,000 rows of data and about 30 columns. I have about 26 pivot tables that are in one of the sheets. The file is over 13MB. If I delete the pivots my file size drops to only 6MB. My question is, A) how much space does a Pivot Table take in a file, is it the full size of the data it refrences? B) Is there a way to reduce the amount of file space of the Pivot Table? Any help would be much appreciated as a 13 MB file is very unwieldy to update and manipulate when opened, and the file just gets bigger every month. Thanks!!! On Tuesday, September 30, 2008 1:09 PM RonCoderr wrote: Each new pivot table creates a hidden copy of the source data. Each new pivot table creates a hidden copy of the source data. That's how you can keep working with the same pivot table data eve if the source data changes. You have the option to make pivot tables share the same cached source data when you create the pivot table. If you open the pivot table wizard and click the [back] button to Step 1 of 3... Select the 4th option button (Another Pivot Table report...) Then click the [Next] buttons, to verify the remaining settings. The file size will decrease. Do that for all but the one pivot table that will be the basis for the others. Does that help? *********** Regards, Ron XL2003, WinXP "1genxer" wrote: On Tuesday, September 30, 2008 1:12 PM ThomasPB wrote: 1genxer,You are correct, a file containing PivotTables will become 1genxer, You are correct, a file containing PivotTables will become exponentially larger the more data that you add to the file because it does infact copy a "Temporary" image of all the records that it is referencing. So, with 26 PivotTables you have all in all 27 actual copies of the data (including the original). There are a couple alternatives, some more unweildy than others. A) You could break all the links to the data in the PivotTables, however you cannot update them anymore unless you reattach the link. B)You could create a separate file for the DATA and another for the PivotTables. They would link across to each other, even if the data book is closed. C)You could place this information, which sounds like a database (?), into Access and run Queries to create your PivotTables. However, I must note that PivotTables in Access do not work the same as they do in Excel (similar, but not the same). -- --Thomas [PBD] Working hard to make working easy. "1genxer" wrote: On Tuesday, September 30, 2008 1:13 PM 1genxe wrote: Is there a way to do that outside the Wizard as my tables are already built? Is there a way to do that outside the Wizard as my tables are already built? I really do not want to have to build them from scratch again. "Ron Coderre" wrote: On Tuesday, September 30, 2008 1:29 PM Roger Govier wrote: HiFrom Debra Dalgleish's "Excel Pivot Tables Recipe Book"Sub Hi From Debra Dalgleish's "Excel Pivot Tables Recipe Book" Sub ChangeAllPivotCaches() Dim pt as PivotTable Dim ws as Worksheet On Error Goto err_handler For each ws in ActiveWorkbook.Worksheets For Each pt in ws.PivotTables pt.CacheIndex = Activecell.PivotTable.CacheIndex Next pt Nex ws Exit Sub err_Handler Msgbox "Cache Index could not be changed" End Sub Place cursor in any cell of the first PT you created, then run the macro -- Regards Roger Govier "1genxer" wrote in message ... On Tuesday, September 30, 2008 1:37 PM RonCoderr wrote: Pivot Table File Size Question You can: ??? Right-click on a pivot table ??? Select the Pivot Table wizard ??? Click the [Back] buttons until "Step 1 of 3" ??? Change the pivot table source to "Another Pivot Table report" ??? Select the pivot table that will be the source for al of the others ??? Click [Finish} Repeat for each of the other pivot tables. Does that help? *********** Regards, Ron XL2003, WinXP "1genxer" wrote: On Tuesday, September 30, 2008 3:14 PM 1genxe wrote: Thanks everyone for all your help! Thanks everyone for all your help! It is not a database that I am working with, but rather the results of surveys given overtime. So, as mentioned above the data gets larger every month. I will try these methods and if something doesn't work I will get back on here. Thanks again! "1genxer" wrote: On Tuesday, September 30, 2008 3:15 PM 1genxe wrote: Can you tell me exactly what this macro does? Can you tell me exactly what this macro does? I am not very educated in code like that. "Roger Govier" wrote: On Tuesday, September 30, 2008 4:32 PM 1genxe wrote: I can't find the Pivot Table Wizard in 2007. I cannot find the Pivot Table Wizard in 2007. How do I find where to make this change in 2007? "Ron Coderre" wrote: On Tuesday, September 30, 2008 5:31 PM Roger Govier wrote: HiCopy the Code from my previous postingAlt+F11 to invoke the VB Hi Copy the Code from my previous posting Alt+F11 to invoke the VB Editor InsertModule Paste code into white pane that appears Alt+F11 to return to Excel To use Select cell within your first PT Alt+F8 to bring up Macros Highlight the macro name Run It will cycle through each of the PT's in turn, setting the cache that each uses to be that from the first PT, rather than you doing each one manually. Save and Close your workbook and the file size should be reduced. -- Regards Roger Govier "1genxer" wrote in message ... Submitted via EggHeadCafe - Software Developer Portal of Choice How to Annotate Images from a database in a web page http://www.eggheadcafe.com/tutorials...images-fr.aspx |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot Table file size | Excel Discussion (Misc queries) | |||
Pivot table has bloted file size - how do I bring it down | Excel Discussion (Misc queries) | |||
reduce size of pivot table file | Excel Discussion (Misc queries) | |||
pivot table cause file size to grow | Excel Discussion (Misc queries) | |||
Pivot table - size of file? | Excel Discussion (Misc queries) |