Creates and populates a locally persisted cube, based on a subcube from a cube on the server. A connection to the server is not required to connect to the locally persisted cube. For more information about local cubes, see Local Cubes (Analysis Services - Multidimensional Data).
CREATE GLOBAL CUBE local_cube_name STORAGE 'Cube_Location' FROM source_cube_name (<param list>) <param list>::= <param> ,<param list> | <param> <param>::= <dims list> | <measures list> <measures list>::= <measure>[, <measures list>] <dims list>::= <dim def> [, <dims list>] <measure>::= MEASURE source_cube_name.measure_name [<visibility qualifier>] [AS measure_name] <dim def>::= <source dim def> | <derived dim def> <source dim def>::= DIMENSION source_cube_name.dimension_name [<dim flags>] [<visibility qualifier>] [AS dimension_name>] [FROM <dim from clause> ] [<dim content def>] <dim flags>::= NOT_RELATED_TO_FACTS <dim from clause>::= < dim DM from clause> | <reg dim from clause> <dim DM from clause>::= dm_model_name> COLUMN column_name <dim reg from clause>::= dimension_name <dim content def>::= ( <level list> [,<grouping list>] [,<member slice list>] [,<default member>] ) <level list>::= <level def> [, <level list>] <level def>::= LEVEL level_name [<level type> ] [AS level_name] [<level content def>] <level content def>::= ( <property list> ) | NO_PROPERTIES <level type>::= GROUPING <property list>::= <property def> [, <property list>] <property def>::= PROPERTY property_name <grouping list>::= <grouping entity> [,<grouping list>] <grouping entity>::= GROUP group_level_name.group_name (<mixed list>) <grp mixed list>::= <grp mixed element> [,<grp mixed list>] <grp mixed element>::= <grouping entity> | <member def> <member slice list>::= <member list> <member list>::= <member def> [, <member list>] <member def>::= MEMBER member_name <default member>::= DEFAULT_MEMBER AS MDX_expression <visibility qualifier>::= HIDDEN
The name of the local cube.
The name and path for the locally persisted cube.
The name of the cube on which the local cube is based.
The fully qualified name of the source measure being included in the local cube. Calculated members of the Measures dimension are not permitted.
The name of the measure in the local cube.
The fully qualified name of the source dimension being included in the local cube.
The name of the dimension in the local cube.
Valid specification for derived dimension definition only.
A local cube is defined in terms of the measures and definitions that define it. There are two types of dimensions.
In a local cube, you can perform the following tasks:
The CREATE GLOBAL CUBE statement follows these rules:
The following example demonstrates creating a local, persisted version of the Adventure Works cube that contains only the Reseller Sales Amount measure, the Reseller dimension, and the Date dimension.
CREATE GLOBAL CUBE [LocalReseller] Storage 'C:\LocalAWReseller1.cub' FROM [Adventure Works] ( MEASURE [Adventure Works].[Reseller Sales Amount], DIMENSION [Adventure Works].[Reseller], DIMENSION [Adventure Works].[Date] )
The following example demonstrates slicing when you create a local cube. The global cube that is created is based on the Adventure Works cube sliced vertically by the 2005 member of the Fiscal Year level, and horizontally by the Fiscal Year and Month levels.
CREATE GLOBAL CUBE [LocalReseller] Storage 'C:\LocalAWReseller2.cub' FROM [Adventure Works] ( MEASURE [Adventure Works].[Reseller Sales Amount], DIMENSION [Adventure Works].[Reseller], DIMENSION [Adventure Works].[Date] ( LEVEL [Fiscal Year], LEVEL [Month], MEMBER [Date].[Fiscal].[Fiscal Year].&[2005] ) )
What are <derived dim def> and <reg dim from clause>?
Both are used here, but not defined. There is a
<dim reg from clause>::= dimension_name
which is unused, so should <reg dim from clause> be <dim reg from clause> instead?
I assume <mixed list> should be <grp mixed list> since <mixed list> is not defined, whereas <grp mixed list> is defined but not used.