Upload
shawn-villaron
View
20
Download
0
Embed Size (px)
Citation preview
SpreadsheetML
Subject – Metadata
OLAP Cube
Time
Geography
Pro
duct
Australia
Cars
2003
Car sales in Australia for 2003 Sales in USD
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]")
Metadata.xml - Organization
• metadataTypes• metadataStrings• mdxMetadata• valueMetadata
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>
XML - strings<metadataStrings count="12"> <s v="xlextdat9 Adventure Works"/> <s v="[Measures].[Internet Sales Amount]"/> <s v="[Date].[Calendar].[Calendar Year].&[2003]"/> <s v="[Date].[Calendar].[Calendar Year].&[2004]"/> <s v="[Product].[Product Categories].[All Products]"/> <s v="[Customer].[Customer Geography].[All Customers].children"/> <s v="[Customer].[Customer Geography].[Country].&[Australia]"/> <s v="[Customer].[Customer Geography].[Country].&[United States]"/> <s v="[Customer].[Customer Geography].[Country].&[United Kingdom]"/> <s v="[Customer].[Customer Geography].[Country].&[Germany]"/> <s v="[Customer].[Customer Geography].[Country].&[France]"/> <s v="[Customer].[Customer Geography].[Country].&[Canada]"/></metadataStrings>
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>
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>
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.