Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The RC1 public preview of SQL Server 2017 is available here! It includes Dynamic Management View improvements for tabular models with compatibility level 1200 and 1400.
DMVs are useful in numerous scenarios including the following.
RC1 rounds off the DMV improvements introduced in CTP 2.0 and CTP 2.1.
DISCOVER_CALC_DEPENDENCY now works with 1200 and 1400 models. 1400 models show dependencies between M partitions, M expressions and structured data sources.
Further enhancements in RC1 include the following for 1200 (where applicable) and 1400 models.
KIND | OBJECT_CATEGORY | |||
DATA_DEPENDENCY | NAMED_DEPENDENCY | DATA_ACCESS | ANALYSIS | |
Mashup | ✔ | ✔ | ✔ | |
Provider data source & non-M partitions | ✔ | ✔ | ||
DAX named dependencies | ✔ | ✔ | ||
Other data dependencies | ✔ | ✔ |
1100 and 1103 models only return other data dependencies, and they ignore the new schema restrictions.
DAX data dependencies and DAX named dependencies are not necessarily the same thing. For example, a calculated table called ShipDate with a DAX formula of “=DimDate” clearly has a named dependency (and data dependency) on the DimDate table. It also has data dependencies on the columns within DimDate, but these are not considered named dependencies.
The following query returns the output shown below. All DAX and M expression named references in the model are included. These can originate from calculated tables/columns, measures, M partitions, row-level security filters, detail rows expressions, etc.
SELECT * FROM SYSTEMRESTRICTSCHEMA
($SYSTEM.DISCOVER_CALC_DEPENDENCY, [KIND] = 'NAMED_DEPENDENCY')
The following query returns the output shown below. Some data dependencies happen to also be named dependencies, in which case they are returned by this query and the one above with a NAMED_DEPENDENCY schema restriction.
SELECT * FROM SYSTEMRESTRICTSCHEMA
($SYSTEM.DISCOVER_CALC_DEPENDENCY, [KIND] = 'DATA_DEPENDENCY')
The following query returns the output shown below. Partitions, M expressions and data source dependencies are included.
SELECT * FROM SYSTEMRESTRICTSCHEMA
($SYSTEM.DISCOVER_CALC_DEPENDENCY, [OBJECT_CATEGORY] = 'DATA_ACCESS')
The following query returns the output shown below. The results of this query are mutually exclusive with the results above with a DATA_ACCESS schema restriction.
SELECT * FROM SYSTEMRESTRICTSCHEMA
($SYSTEM.DISCOVER_CALC_DEPENDENCY, [OBJECT_CATEGORY] = 'ANALYSIS')
RC1 provides improvements for this DMV, which is used by various client tools to show measure dimensionality. For example, the Explore feature in Excel Pivot Tables allows the user to cross-drill to dimensions related to the selected measures.
RC1 corrects the cardinality columns, which were previously showing incorrect values.
SELECT * FROM $System.MDSCHEMA_MEASUREGROUP_DIMENSIONS;
To get started, download SQL Server 2017 RC1. The latest release of the Analysis Services VSIX for SSDT is available here. VSIX deployment for Visual Studio 2017 is discussed in this blog post.
Be sure to keep an eye on this blog to stay up to date on Analysis Services!
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in