Daily DAX : Day 430 INFO.HIERARCHYSTORAGES
INFO.HIERARCHYSTORAGES DAX Function
Description
INFO.HIERARCHYSTORAGES() is a tabular DAX function in Power BI (and Analysis Services) that returns metadata about the storage details of hierarchies in the semantic model.
It corresponds to the TMSCHEMA_HIERARCHY_STORAGES Dynamic Management View (DMV), providing administrative insights into how hierarchy data is stored internally.
This function returns a table with columns containing information such as hierarchy IDs, storage modes, and related properties.
Syntax
INFO.HIERARCHYSTORAGES()
No parameters. It simply returns a table of hierarchy storage metadata.
Use Cases
- Model Documentation and Analysis: Query the structure and storage of hierarchies directly within Power BI using DAX Query View.
- Advanced Model Inspection: Useful for developers and administrators to understand internal storage configurations, optimize models, or troubleshoot hierarchy-related issues.
- Self-Documenting Models: Combine with other INFO functions to create calculated tables that document the model's hierarchies.
- Alternative to External Tools: Previously, this information required tools like DAX Studio or Tabular Editor to query DMVs; now accessible natively in Power BI DAX queries.
Example Usage
In Power BI's DAX Query View:
EVALUATE INFO.HIERARCHYSTORAGES()
This will return a table listing all hierarchy storage details in the current model.
Note: INFO functions like this are primarily for queries and metadata exploration, not for regular measures or calculated columns.
Comments
Post a Comment