AnalyticsCreator Docs Preview

Generate analytical models and exports

On this page
  1. Target families
  2. Prepare model metadata
  3. Tabular columns and measures
    1. Column properties versus explicit measures
    2. Two measure expression paths
    3. Measure templates
    4. Additional star-level measure commands
  4. Legacy multidimensional measures and aggregation functions
    1. Column-bound measures
    2. Calculated measures
    3. Names and expression placeholders
    4. Verification scenario

Deployment can generate analytical artifacts from datamart tables, references, measures and metadata.

Target families

Target path Inspected behavior
Multidimensional OLAP Generates XMLA through repository generation logic; deployment is separately selected
Tabular Builds a tabular model using tables, relationships, measures, hierarchies, roles and partitions
Power BI-related paths Use target-specific model/export handling; do not assume all paths create or publish the same artifact
Tableau Packages the generated workbook definition as a .twbx containing a .twb
Qlik Generates a .qvs output in the inspected deployment path

The Tabular generator maps selected compatibility labels to levels: 2016→1200, 2017→1400, 2019→1500, 2022→1600 and PowerBI→1520 in the inspected branch. These are implementation mappings, not a certified support matrix. Another constructor branch uses level 1600.

Prepare model metadata

  1. Select the intended star/group and tables for analytical export.
  2. Review friendly names, hidden fields, categories and display folders.
  3. Define measures/calculated expressions in the target language.
  4. Review reference cardinality and cross-filtering behavior.
  5. Configure hierarchies, partitions and roles.
  6. Generate and inspect the artifact before deploying it.

SQL expressions, MDX and DAX are different languages. A SQL editor's coloring does not validate analytical syntax. Confirm the selected target and authentication/impersonation settings.

Generation, server deployment and processing are separate concerns. In particular, workflow processing options may place processing work in a generated workflow; they are not proof that data was processed during artifact generation.

Tabular columns and measures

Column properties versus explicit measures

Column aggregation and a named measure are separate generated objects. A column's aggregation setting becomes SummarizeBy; it does not by itself define a named DAX measure. The generator maps the configured Sum, Average, Count, DistinctCount, Min and Max values to the corresponding Tabular aggregation enum, with None as the fallback.

An exported column uses its friendly name when supplied, otherwise its physical name, while SourceColumn remains the physical column name. It carries datatype, nullability, description, display folder, format and data category. ToOLAP=1 keeps the column in the model but hides it; ToOLAP=2 excludes it. A duplicate generated column name in the same table stops generation with an error.

Sort-by-column is assigned only when both the displayed column and the referenced sorting column are found in the generated table. Excluding or renaming a sorting column can therefore affect the generated sort binding. Review the final model rather than treating a saved metadata selection as proof of a valid binding.

Two measure expression paths

For each configured measure on a generated table:

Configuration Generated behavior
No Tabular statement Requires a selected column and aggregation; emits the aggregation's TabStatement applied to the generated table/column.
Nonempty Tabular statement Substitutes placeholders and uses the resulting expression; selected column is required when the configured field alias is used.

For example, a Sum measure over a generated Sales table and Amount column produces an expression shaped as SUM('Sales'[Amount]). This is a synthetic illustration, not a recorded query execution. A missing column or aggregation in the automatic path produces an explicit generation error. Selecting an aggregation object does not itself guarantee that its configured TabStatement is valid DAX.

The measure carries description, display folder, format string, hidden flag and optional data category. Hiding a measure retains the expression in the model; it does not exclude it from generation.

Measure templates

Measure names and Tabular statements can use {TableName}, {ColumnName}, {ColumnNameFull}, {AggregationName} and {AggregationStatement}. The configured transformation field alias, normally @this, is also replaced by the selected column name. ColumnNameFull uses the generated table and column in DAX form: 'Table'[Column]. Tabular aggregation statements come from the Tabular mapping, not the multidimensional mapping.

After substitution, statements still containing @ pass through macro expansion. Inspect the final DAX, especially when generated names contain punctuation or an expression combines macros and placeholders. This replacement path is not a DAX syntax validator.

The name helper supports {NR} as a collision placeholder. It first removes the placeholder; if that name already exists, it tries numeric values up to 100. Without a placeholder, adding a number cannot change the name through this helper. The table then explicitly rejects a duplicate measure name in that same table. Use clear distinct names and review model-wide naming rather than assuming every collision is automatically repaired.

Additional star-level measure commands

The inspected star-level command path reads TabMDX and splits it on semicolons. It recognizes uppercase CREATE MEASURE commands and separates name/expression at the first equals sign. It then adds a measure to a generated table, assigning the Measures display folder and passing its name through the numbering helper.

This is a narrow parser, not a general DAX script engine. In particular, semicolons inside expressions or strings are not protected by a quote-aware parser. Prefer the normal measure editor for individual expressions and inspect generated output when using this advanced field. Missing/unrecognized commands are not guaranteed to produce a dedicated validation error here.

Legacy multidimensional measures and aggregation functions

Multidimensional generation is outside further documentation development by owner decision; removal is planned, not claimed complete. Prefer Tabular for new work.

The multidimensional generator creates measure groups for exported fact tables (table types 9 and 10). Their generated storage mode is MOLAP and processing mode is Regular. Measures come from the table's configured measure definitions, not automatically from every numeric column.

A measure definition is eligible when it has a nonempty multidimensional statement, or when it has a source column and an aggregation other than None. After placeholder substitution and macro expansion, an empty statement produces a column-bound measure; a nonempty statement produces a calculated MDX member. A statement that expands to empty therefore needs a valid column and aggregation for the column-bound path.

Column-bound measures

The source column is bound by its physical column identifier in the generated data-source view. The datatype comes from the generator's type mapping. Display folder and format string are copied to the measure.

Configured aggregation Generated AggregateFunction
Sum Sum
Average AverageOfChildren
Count Count
DistinctCount DistinctCount
Min Min
Max Max
None Does not by itself qualify a column-only definition for generation

These are the repository's seeded mappings. In particular, Average is emitted as AverageOfChildren, not as a SQL AVG expression. Do not assume it gives the arithmetic average of source rows; verify the intended business result on the target cube. No further clarification is requested: this legacy generator is outside the current documentation scope.

The aggregation choice supplies the XMLA measure function. The inspected generator does not create an AggregationDesign from this choice; it is not a wizard for designing precomputed cube aggregations.

A hidden column-bound measure is still generated with Visible=false. A visible one is also added through the generator's perspective handling. Hiding a measure is not deletion or an access-control rule.

Calculated measures

A nonempty expanded multidimensional statement becomes:

CREATE MEMBER CURRENTCUBE.[Measures].[<expanded name>]
AS <expanded multidimensional statement>, ...;

This is illustrative generated MDX structure, not runnable SQL. The generator starts a new cube calculation script with CALCULATE when needed. It emits visibility, an associated measure group, an optional display folder, and a format string; a missing calculated-measure format defaults to Standard. The column-bound branch instead retains an empty format string when none is configured.

Names and expression placeholders

Both the name template and multidimensional statement support these substitutions:

Placeholder Replacement
{TableName} The table's analytical name used by the generator
{ColumnName} Friendly column name, or physical name when no friendly name is supplied
{ColumnNameFull} Bracketed analytical table and column name
{AggregationName} Selected aggregation's display name
{AggregationStatement} Selected aggregation's multidimensional statement, such as AverageOfChildren
Configured transformation-field alias, normally @this The same column-name replacement

The name is normalized for OLAP; the statement additionally passes through macro expansion. With no source column, column placeholders resolve to empty text. Inspect the result rather than assuming a template remains valid for column-free calculated measures.

Repeated column-bound base names receive numeric suffixes in generation order. Calculated-member names do not pass through that same suffix branch. Use distinct names across the cube and review generated references; automatic suffixing is not a general collision-resolution guarantee.

Verification scenario

For a small fact table, define a Sum measure and a calculated measure that references it. Generate XMLA and check the column binding, final names, AggregateFunction, MDX, visibility and formats. Deploy and process in a test environment, then compare values and totals against independently computed expectations. Repeat with Average and DistinctCount when those options are used. This scenario is a recommended check, not a recorded execution result.

Search documentation