Spreadsheet ml subject pivottable

Preview:

Citation preview

SpreadsheetML

Subject – PivotTable

Source data

Aggregated Data - PivotTableReport Filter Region (3 fields)

Values Region (1 field)

Column Axis (3 fields)

Row Axis (2 fields)

File Architecture

Workbook.xmlpivotCache@cacheIdpivotCache@r:id

Sheet1.xml

pivotTable1.xml@cacheId

pivotCacheDefinition1.xml

pivotCacheRecords1.xml

PivotCacheDefinition.xml<pivotCacheDefinition xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/5/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" r:id="rId1" refreshedBy="AnonUser" refreshedDate="2006-05-22T10:07:16" createdVersion="3" refreshedVersion="3" minRefreshableVersion="3" recordCount="182"> <cacheSource type="worksheet"> <worksheetSource name="Table1"/> </cacheSource>

PivotCacheDefinition.xml<cacheFields count="28"> <cacheField name="Customer Name" numFmtId="0"> <sharedItems count="7"> <s v="Michele Raman"/> <s v="Misty Raji"/> <s v="Tabitha E Arthur"/> <s v="Clarence D Rai"/> <s v="Jimmy L Moreno"/> <s v="Rob Verhoff"/> <s v="Levi Sai"/> </sharedItems> </cacheField> <cacheField name="Group" numFmtId="0"> <sharedItems/> </cacheField> <cacheField name="Country" numFmtId="0"> <sharedItems count="1"> <s v="Australia"/> </sharedItems> </cacheField> <cacheField name="Region" numFmtId="0"> <sharedItems/> </cacheField> <cacheField name="State" numFmtId="0"> <sharedItems count="5"> <s v="Victoria"/> <s v="Queensland"/> <s v="South Australia"/> <s v="New South Wales"/>

PivotCacheDefinition.xml <cacheField name="Total Product Cost" numFmtId="0"> <sharedItems containsSemiMixedTypes="0" containsString="0" containsNumber="1" minValue="413.1463" maxValue="2171.2941999999998"/> </cacheField> <cacheField name="Sales Amount" numFmtId="0"> <sharedItems containsSemiMixedTypes="0" containsString="0" containsNumber="1" minValue="699.09820000000002" maxValue="3578.27"/> </cacheField> <cacheField name="Tax Amount" numFmtId="0"> <sharedItems containsSemiMixedTypes="0" containsString="0" containsNumber="1" minValue="55.927900000000001" maxValue="286.26159999999999"/> </cacheField> <cacheField name="Freight" numFmtId="0"> <sharedItems containsSemiMixedTypes="0" containsString="0" containsNumber="1" minValue="17.477499999999999" maxValue="89.456800000000001"/> </cacheField> </cacheFields></pivotCacheDefinition>

PivotCacheRecords.xml<pivotCacheRecords xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/5/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" count="2"> <r> <x v="0"/> <s v="Pacific"/> <x v="0"/> <s v="Australia"/> <x v="0"/> <x v="0"/> <s v="3550"/> <x v="0"/> <x v="0"/> <s v="Road-150 Red, 62"/> <s v="This bike is ridden by race winners. Developed with the Adventure Works Cycles professional race team, it has a extremely light heat-treated aluminum frame, and steering that allows precision control."/> <s v="No Discount"/> ... <n v="89.456800000000001"/> </r>

PivotTable Part

• Top-level attributes• Location information• Collection of Fields• Fields on the row axis• Items on the row axis (specific values)• Fields on the column axis• Items on the column axis (specific values)• Fields on the report filter region• Fields in the values region• Style information

PivotTable.xml<pivotTableDefinition

name="PivotTable2” cacheId="5”applyNumberFormats="0” applyBorderFormats="0”applyFontFormats="0“ applyPatternFormats="0”applyAlignmentFormats="0" applyWidthHeightFormats="1" dataCaption="Values" updatedVersion="3"

minRefreshableVersion="3" showCalcMbrs="0" useAutoFormatting="1" colGrandTotals="0" itemPrintTitles="1" createdVersion="3“

indent="0" outline="1" outlineData="1" multipleFieldFilters="0">

PivotTable.xml - location<location ref="B6:G13" firstHeaderRow="1" firstDataRow="4" firstDataCol="1" rowPageCount="3" colPageCount="1"/>

PivotTable.xml - Fields<pivotFields count="28"> <pivotField showAll="0" includeNewItemsInFilter="1"> <items count="8"> <item x="66"/> <item x="133"/> <item x="74"/> <item x="27"/> <item x="118"/> <item x="63"/> <item x="141"/> <item t="default"/> </items> </pivotField> <pivotField showAll="0" includeNewItemsInFilter="1"/> <pivotField axis="axisPage" showAll="0" includeNewItemsInFilter="1"> <items count="2"> <item x="0"/> <item t="default"/> </items> </pivotField> <pivotField showAll="0" includeNewItemsInFilter="1"/>

PivotTable.xml – row Fields <rowFields count="2"> <field x="7"/> <field x="8"/> </rowFields>

PivotTable.xml – row Items <rowItems count="4"> <i> <x/> </i> <i r="1"> <x/> </i> <i r="1"> <x v="1"/> </i> <i t="grand"> <x/> </i> </rowItems>

PivotTable.xml – column Fields <colFields count="3"> <field x="14"/> <field x="15"/> <field x="16"/> </colFields>

PivotTable.xml – column Items <colItems count="5"> <i> <x/> <x/> <x/> </i> <i r="2"> <x v="1"/> </i> <i r="2"> <x v="2"/> </i> <i t="default" r="1"> <x/> </i> <i t="default"> <x/> </i> </colItems>

PivotTable.xml – report filter Fields

<pageFields count="3"> <pageField fld="2"/> <pageField fld="4"/> <pageField fld="5"/> </pageFields>

PivotTable.xml – values Fields <dataFields count="1"> <dataField name="Sum of Sales Amount" fld="25" baseField="0" baseItem="0"/> </dataFields>

Disclaimer

This presentation is for informational purposes only, and should not be relied upon as a substitute or replacement for Microsoft formal file format documentation, which is available at the following website: https://msdn.microsoft.com/en-us/library/cc313118(v=office.12).aspx. Any views or opinions presented in this material are solely those of the author and do not necessarily represent those of Microsoft. Microsoft disclaims all liability for mistakes or inaccuracies in this presentation.

Recommended