Daily DAX : Day 441 INFO.STORAGETABLECOLUMNS

INFO.STORAGETABLECOLUMNS DAX Function

The INFO.STORAGETABLECOLUMNS is a tabular DAX function in Power BI that returns metadata about the storage of columns in the semantic model's storage tables. It corresponds directly to the Dynamic Management View (DMV) DISCOVER_STORAGE_TABLE_COLUMNS used in Analysis Services.

Syntax

INFO.STORAGETABLECOLUMNS (
[ [, ] [, ...]])

Parameters are optional restrictions (filters) on columns like TableID, ColumnID, etc., to narrow down the results.

What It Returns

A table containing detailed information about how columns are stored in the Vertipaq engine (the in-memory storage engine for Power BI and Tabular models). Typical columns in the result include:

  • TableID and ColumnID
  • DictionarySize (size of the dictionary for value encoding)
  • DataSize (compressed data size)
  • RowsCount
  • BitsCount (bits used for encoding)
  • And other storage-specific metrics

Use Cases

This function is primarily used for model optimization and analysis:

  • Identifying which columns consume the most memory/space in the model.
  • Analyzing compression efficiency of columns (e.g., high dictionary size vs. data size).
  • Finding large or inefficiently stored columns to optimize (e.g., by splitting, removing, or changing data types).
  • Performance tuning of large semantic models by understanding storage footprint.

It is especially useful in scenarios where the Power BI file size is large, and you need to reduce it without losing critical data.

Example Usage

Run in Power BI's DAX Query View (recommended for testing):

EVALUATEINFO.STORAGETABLECOLUMNS()

To find the largest columns by data size:

EVALUATE
TOPN(
    20,
    INFO.STORAGETABLECOLUMNS(),
    [DataSize],
    DESC
)

Limitations

  • Cannot be used in calculated columns, measures, or calculated tables (like most INFO functions).
  • Best used in DAX Query View or external tools like DAX Studio.
  • Requires appropriate permissions (often admin-level on the model).
  • Some sources note it may be considered deprecated or undocumented, but it remains functional.

Note: For simpler model size analysis, tools like Power BI Helper or Vertipaq Analyzer in DAX Studio/Tabular Editor are often recommended as alternatives.

Comments

Popular posts from this blog

Daily DAX : Day 131 SELECTEDMEASURE

Daily DAX : Day 446 INFO.CSDLMETADATA

Daily DAX : Day 453 ENDOFWEEK