9
SpreadsheetML Subject – Metadata

Spreadsheet ml subject metadata

Embed Size (px)

Citation preview

Page 1: Spreadsheet ml subject   metadata

SpreadsheetML

Subject – Metadata

Page 2: Spreadsheet ml subject   metadata

OLAP Cube

Time

Geography

Pro

duct

Australia

Cars

2003

Car sales in Australia for 2003 Sales in USD

Page 3: Spreadsheet ml subject   metadata

Example=CUBEMEMBER("xlextdat9 Adventure Works","[Measures].[Internet Sales Amount]")

=CUBEVALUE("xlextdat9 Adventure Works",C$5,$A6)

=CUBERANKEDMEMBER("xlextdat9 Adventure Works",$A$5,ROW(A1))

=CUBESET("xlextdat9 Adventure Works","[Customer].[Customer Geography].[All Customers].children","Countries",2,D5)

=CUBEMEMBER("xlextdat9 Adventure Works","[Product].[Product Categories].[All Products]")

=CUBEMEMBER("xlextdat9 Adventure Works","[Date].[Calendar].[All Periods].[CY 2003]")

=CUBEVALUE("xlextdat9 Adventure Works",D$5,$A6)

=CUBEMEMBER("xlextdat9 Adventure Works",(C1,D2,C3),"2004 Sales")

=CUBEMEMBER("xlextdat9 Adventure Works",C1:C3,"2003 Sales")

=CUBEMEMBER("xlextdat9 Adventure Works","[Date].[Calendar].[All Periods].[CY 2004]")

Page 4: Spreadsheet ml subject   metadata

Metadata.xml - Organization

• metadataTypes• metadataStrings• mdxMetadata• valueMetadata

Page 5: Spreadsheet ml subject   metadata

XML – types<metadataTypes count="1"> <metadataType name="XLMDX" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1"/></metadataTypes>

Page 6: Spreadsheet ml subject   metadata

XML - strings<metadataStrings count="12"> <s v="xlextdat9 Adventure Works"/> <s v="[Measures].[Internet Sales Amount]"/> <s v="[Date].[Calendar].[Calendar Year].&amp;[2003]"/> <s v="[Date].[Calendar].[Calendar Year].&amp;[2004]"/> <s v="[Product].[Product Categories].[All Products]"/> <s v="[Customer].[Customer Geography].[All Customers].children"/> <s v="[Customer].[Customer Geography].[Country].&amp;[Australia]"/> <s v="[Customer].[Customer Geography].[Country].&amp;[United States]"/> <s v="[Customer].[Customer Geography].[Country].&amp;[United Kingdom]"/> <s v="[Customer].[Customer Geography].[Country].&amp;[Germany]"/> <s v="[Customer].[Customer Geography].[Country].&amp;[France]"/> <s v="[Customer].[Customer Geography].[Country].&amp;[Canada]"/></metadataStrings>

Page 7: Spreadsheet ml subject   metadata

XML – mdx<mdxMetadata count="26“>

<mdx n="0" f="m">

<t c="3"> <n x="1"/> <n x="2"/> <n x="4"/> </t> </mdx>

<mdx n="0" f="s"> <ms ns="5" c="3" o="d"> <n x="1"/> <n x="3"/> <n x="4"/> </ms> </mdx>

Page 8: Spreadsheet ml subject   metadata

XML – value<valueMetadata count="26"> <bk> <rc t="1" v="0"/> </bk> <bk> <rc t="1" v="1"/> </bk> <bk> <rc t="1" v="2"/> </bk> <bk> <rc t="1" v="3"/> </bk> <bk> <rc t="1" v="4"/> </bk>

Page 9: Spreadsheet ml subject   metadata

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.