Pivot tables can be tricky by nature and a significant portion of my support work has been dedicated to helping customers incorporate pivot tables with ExcelWriter.
One customer wrote in with the following issue: his client had recently imposed a constraint that all reports had to be in the .xls format, so he needed to convert several OfficeWriter reports designed in Excel 2007 to the 2003 format, but he was having trouble switching the pivot tables.
When he tried to save the 2007 format report as a 2003 format report, the pivot tables were locked in a read-only state, wherein users could only edit the pivot tables if the report was resaved in the 2007 format. After doing some testing in Excel 2003 and 2007, I found that this was the native behavior for Excel files as well.
After some more investigation, I found that there is no means of converting a version 12 pivot table (a.k.a. a pivot table developed in Excel 2007) to an earlier version (i.e. version 10 for the Excel 2003). The only option available is to save the file in the earlier format and then recreate the table from scratch.
Luckily, saving the report in the Office 2003 or earlier format and then recreating the pivot table using the instructions for Using Pivot Tables with the ExcelTemplate Object and Data Markers works perfectly.
A word of caution: when creating pivot tables in Excel 2007 for the binary format, make sure that the file is in Compatibilty Mode before creating the table. Otherwise, the table will be a version 12 pivot table and you won’t even know until you go to save and the compatibility checker says there’s been a loss of fidelity. (Excel 2007 will automatically enter compatibility mode if the file opened is in the Excel 2003 format).
Some things you should know about Excel 2007 pivot tables:
-Upgrading from older versions is easy – just save the file or report in the newer format (.xlsx or Office 2007 RDL)
-ExcelWriter no longer throws errors if the data markers get pulled into a version 12 pivot table. The pivot tables do experience issues with the data markers being displayed in the drop-down filters if the data markers are pulled into the pivot table in the template. We recommend following the instructions outlined in the article mentioned earlier.
Pivot Table Resources
- KB Article 386 – the basic instructions for using Pivot Tables in ExcelWriter
- KB Article 1120 – the IE bracket naming problem
- Working with different Pivot Table formats in Office Excel – a MS article describing the differences between Version 10 and Version 12 pivot tables.
- Office 2007 Compatibility Mode Confusion – all about compatibility mode in Word and Excel 2007 (useful for creating v10 pivot tables in Excel 2007).
- Supported/Unsupported Pivot Table features – a list of the Excel 97-2003 and 2007 pivot table features and the versions they are supported in.
- Pivot Table User Manual – a guide to creating and manipulating pivot tables in Excel and in macros
- Debra Dalgleish has a spectacularly comprehensive list of Pivot Table-related posts.
- If you prefer to get your learning on audibly, check out Bill Jelen‘s (aka Mr. Excel) podcasts on the subject.
Pivot tables can be tricky by nature and a significant portion of my support work has been dedicated to helping customers incorporate pivot tables with ExcelWriter. One customer wrote in with the following issue: his client had recently imposed a constraint that all reports had to be in the .xls format, so he needed to convert several OfficeWriter reports designed in Excel 2007 to the 2003 format, but he was having trouble switching the pivot tables. When he tried to save the 2007 format report as a 2003 format report, the pivot tables were locked in a read-only state, wherein users could only edit the pivot tables if the report was resaved in the 2007 format. After doing some testing in Excel 2003 and 2007, I found that this was the native behavior for Excel files as well. After some more investigation, I found that there is no means of converting a version 12 pivot table (a.k.a. a pivot table developed in Excel 2007) to an earlier version (i.e. version 10 for the Excel 2003). The only option available is to save the file in the earlier format and then recreate the table from scratch. Luckily, saving the report in the Office 2003 or earlier format and then recreating the pivot table using the instructions for Using Pivot Tables with the ExcelTemplate Object and Data Markers works perfectly. A word of caution: when creating pivot tables in Excel 2007 for the binary format, make sure that the file is in Compatibilty Mode before creating the table. Otherwise, the table will be a version 12 pivot table and you won’t even know until you go to save and the compatibility checker says there’s been a loss of fidelity. (Excel 2007 will automatically enter compatibility mode if the file opened is in the Excel 2003 format). Some things you should know about Excel 2007 pivot tables:-Upgrading from older versions is easy – just save the file or report in the newer format (.xlsx or Office 2007 RDL) -ExcelWriter no longer throws errors if the data markers get pulled into a version 12 pivot table. The pivot tables do experience issues with the data markers being displayed in the drop-down filters if the data markers are pulled into the pivot table in the template. We recommend following the instructions outlined in the article mentioned earlier. Pivot Table Resources
|
|
Add Comment
|