AnalyticsCreator Docs Preview

Configure hierarchies, partitions and analytical roles

On this page
  1. Hierarchies
    1. Tabular hierarchy inclusion
  2. Partitions
    1. Tabular partition selection
  3. Roles
    1. Tabular role generation
    2. Legacy multidimensional role generation
      1. Database, data source and members
      2. Cubes and cell expressions
      3. Dimensions and cube dimensions
      4. Review before deployment
  4. Workflow
  5. Tabular references and filtering
    1. Multiple candidate references
  6. Tabular perspectives
  7. Tabular model review scenario

Semantic properties control how generated analytical models expose and organize warehouse data.

Hierarchies

Choose the table and hierarchy name, then add ordered levels/columns. The editor assigns a sequence to new levels. Review the level order and key/name fields in the generated model; a hierarchy label alone does not establish that the underlying data is naturally ordered or unique.

Tabular hierarchy inclusion

The Tabular generator resolves the hierarchy table and level columns by friendly name, falling back to the physical name when no friendly name is supplied. It emits only levels whose columns exist in the generated model, ordered by sequence number. A level uses its explicit name when provided; otherwise it uses the generated column name.

If the table is absent, the hierarchy is omitted. If all its levels are absent, it is also omitted. Remaining levels receive consecutive ordinals. Check the generated model after excluding tables or columns: a saved hierarchy definition does not guarantee that every level will be exported.

Partitions

Choose a table and partition name and supply nonempty SQL. Selecting a table prepares a SELECT/FROM/WHERE skeleton; complete it with the intended subset condition before saving.

Slice describes the multidimensional partition's expected data subset using its analytical expression. It is not the SQL WHERE text and should not be treated as a Tabular partition option. Ensure the slice agrees with the rows selected by the SQL.

Recommended verification: test that partitions cover the intended range without unintended gaps or overlap, and compare the selected SQL data with the generated analytical metadata. Saving a partition does not process it.

Tabular partition selection

With Use partitions enabled and partition definitions available for a table, the generator emits each saved partition with its name and SQL query. It orders these definitions by partition ID. If the option is disabled or the table has no saved partitions, it emits a single partition named after the table, using the table query.

The query partitions reference the generated model's first data source. Their SQL must therefore be valid for that connection. A saved partition does not independently select a different connection. The Tabular query-partition path does not use Slice; the multidimensional generator emits it separately in partition metadata.

For example, saving January and February queries has no effect on the generated Tabular partition list while Use partitions is disabled. Enable the option, regenerate, and inspect both queries before processing.

Roles

The role editor stores members and analytical permissions, including database control/processing/read settings, cube/dimension settings and Tabular table filters/permissions. These roles belong to the generated analytical model.

They are distinct from Options → User groups, which uses the backend user-group service. Creating an analytical role does not grant application login or SQL Server permissions.

Tabular role generation

Nonblank role members are emitted as Windows model role members. Table permissions are emitted for generated tables when a DAX filter is supplied or the table's disable flag is selected. Definitions for tables absent from the model are skipped.

The DAX text becomes the table's filter expression. The disable flag additionally generates a metadata-denial permission for compatibility selections other than 2016. The 2016 branch does not emit that metadata-denial assignment; do not assume the checkbox provides the same restriction there.

The current model-permission mapping is:

Configured permission Generated permission
None None
Read Read
ReadRefresh ReadRefresh
Refresh Refresh
Administrator Administrator

Refresh now maps to ModelPermission.Refresh in the generator. The owner corrected this mapping; target-server access testing remains separate.

Role generation stores definitions; it does not prove that the target resolves every member or that the deployed access matches the intended policy. Verify permissions using representative users after deployment.

Legacy multidimensional role generation

The owner has excluded this generator from further documentation development and plans to remove it. The following describes existing legacy code, not the recommended target for new work. Use Tabular for new analytical models.

Multidimensional roles are generated as XMLA role definitions with separate database, data-source, cube and dimension permission elements. These settings are independent of the Tabular permission mapping above.

Database, data source and members

Setting Generated XMLA behavior
Full control Sets database Administer.
Process database Sets database Process.
Read definition Sets database ReadDefinition to Allowed or None.
Read source / Read source definition Sets data-source Read / ReadDefinition; a data-source permission is emitted when either is enabled.

The database permission always contains Read=Allowed. This is a generated database-level setting, not proof that all cube cells are readable. Inspect cube and dimension permissions separately. Data-source permissions are attached to the first generated data source.

The generator attempts to resolve each saved member using SQL Server's SUSER_SID and SID conversion. It adds the member name only when that resolution produces a non-null result. A saved name can therefore be missing from the generated role. Review the member list in the XMLA, especially when generation and analytical deployment use different servers or account environments. The generator does not create missing accounts.

Cubes and cell expressions

A cube permission is emitted for a configured role/cube entry that resolves to a generated cube through its star schema. AllowWrite also causes Read to be emitted as Allowed, even if AllowRead is not selected.

Cube setting XMLA element or access type
AllowRead Read; also enabled by AllowWrite
AllowWrite Write
AllowDrillthrough ReadSourceData
AllowProcess Process
Allow reading of cube content CellPermission with Access=Read
Allow reading of cell content CellPermission with Access=ReadContingent
Allow reading and writing of cube content CellPermission with Access=ReadWrite

The three cell-expression fields are emitted only when nonempty. Their expression text is placed into the corresponding cell permission; it is not converted into SQL or a Tabular DAX filter. Review the generated MDX expressions and test their effect on the target server.

Dimensions and cube dimensions

Dimensions configures permissions on the database dimension. The first processed settings row for that dimension establishes ReadDefinition, Read, Write and Process. Later attribute rows add restrictions but do not replace those shared flags. Rows are processed by their stored role-dimension ID, not by a visible alphabetical order. Keep shared flags consistent across attributes of the same dimension. As with cubes, AllowWrite also enables generated Read.

Cube Dimensions configures attribute restrictions for a dimension's use within a cube. The selected fact column identifies that cube-dimension use; the selected dimension column identifies the attribute. This allows different uses of the same dimension to receive separate configured restrictions.

In both grids, an attribute permission is created when Allowed member set, Denied member set or Default member is nonempty, or VisualTotals is enabled. The generator emits each nonempty expression as AllowedSet, DeniedSet or DefaultMember and emits VisualTotals=1 when enabled. Friendly column names, where supplied, participate in generated attribute identifiers. Recheck expressions after renaming analytical attributes.

These are stored analytical expressions, not source-table WHERE clauses. The generator emits them without establishing their effective interaction with other roles. Verify allowed and excluded members, totals, default-member behavior, cell access and processing under representative deployed users.

Review before deployment

  1. Confirm every intended member appears in the generated XMLA.
  2. Check database and data-source permissions separately from cube permissions.
  3. Confirm the selected cubes and dimension uses exist in the generated model.
  4. Keep dimension-wide flags consistent and inspect attribute restrictions.
  5. Deploy to a test target and verify actual access, including users belonging to multiple roles.

This reference describes code generation. It does not certify target-server permission behavior or replace an access test.

Workflow

  1. Define hierarchies and partition SQL against reviewed datamart objects.
  2. Configure role members and the minimum intended analytical permissions.
  3. Generate the selected analytical target.
  4. Inspect the emitted role/filter/partition definitions.
  5. Test access under a representative target user after deployment.

Do not infer effective security from a metadata checkbox alone; target deployment and membership resolution must succeed.

Tabular references and filtering

The generator consumes prepared Tabular reference rows, resolving both generated table names and endpoint columns. Friendly column names are used where present. If an endpoint table or column is absent from the model, this path does not create that relationship.

It emits single-column relationships. Endpoint direction follows the prepared primary-key-side metadata. With a normal keyed reference, the key side becomes the To end and the other side the From end. The no-PK-side branch emits one-to-one cardinality and both-direction filtering. Explicit both-direction metadata also enables both-direction filtering; otherwise the generated filtering mode is OneDirection.

A many-to-many flag changes To cardinality to Many only at compatibility level 1500 or later. Below that level, this branch emits One rather than the many-to-many end. A saved flag therefore does not promise equivalent cardinality on every compatibility setting. Check actual uniqueness and generated endpoints before deployment.

Multiple candidate references

Surrogate references are processed before other candidates. Once a relationship exists between a pair of generated tables, in either direction, later candidates for that pair are skipped. The inspected loop does not generate additional inactive relationships for the same pair.

This is an intentional AnalyticsCreator generation policy, confirmed by the product owner. Represent separate dimension roles using separate dimensions: for example, connect Sales.OrderDateID to CalendarOrder.ID and Sales.DeliveryDateID to CalendarDelivery.ID. Do not configure both roles against the same generated Calendar table expecting this generator to emit both relationships.

Candidates with equal surrogate priority have no additional explicit tie-breaker in this loop. Use distinct dimension tables for the intended roles instead of relying on candidate order. This describes AnalyticsCreator's generation policy rather than a general limitation of the Tabular platform.

This section describes the emitted model, not proof that its filtering paths are unambiguous or that target data satisfies cardinality. Test representative filters and totals after deployment.

Tabular perspectives

With Use perspectives enabled, the generator groups model tables using the stored Perspective name. Reference-driven grouping can include both endpoint tables using the root table's perspective. A second pass also handles tables that have a perspective name directly. Blank names are skipped and existing perspective/table entries are reused.

Each included table uses IncludeAll=true and is populated with its generated columns and measures. The inspected path is not a per-user selection of individual allowed fields. It does not create role permissions; configure and verify roles separately.

Verify the final perspective table list when references, table instances or export exclusions change. Disabling perspective generation does not remove the underlying model tables or measures.

Tabular model review scenario

In a small model, include a fact with two date references, a hidden key, a sort column, an explicit Sum measure and a custom DAX measure. Generate with the intended compatibility level and inspect:

  1. Physical versus friendly column names and the sort binding.
  2. Automatic and custom measure expressions, names, visibility and formats.
  3. Relationship count, endpoints, cardinality and filter direction.
  4. Perspective membership separately from role restrictions.
  5. Partition queries and actual target data before processing.

This is a reproducible review plan; no live Tabular deployment or query result is claimed here.

Search documentation