INFO.COLUMNSTORAGES DAX Function (Information)

Returns a list of all column storages in the current model with columns matching the schema rowset for column storage objects.

Syntax

INFO.COLUMNSTORAGES ( [<RestrictionName> [, [<RestrictionValue>] [, <RestrictionName> [, [<RestrictionValue>] [, … ] ] ] ] ] )
Parameter Attributes Description
RestrictionName Optional
Repeatable

Restriction name.

RestrictionValue Optional
Repeatable

Restriction value.

Return values

Table An entire table or a table with one or more columns.

A table with one row for each column storage, including the columns of the internal tables of the engine. The columns match the TMSCHEMA_COLUMN_STORAGES DMV.

Field Type
ID Integer
ColumnID Integer
Name String
StoragePosition Integer
DictionaryStorageID Integer
Settings Integer
ColumnFlags Integer
Collation String
OrderByColumn String
Locale Integer
BinaryCharacters Integer
Statistics_DistinctStates Integer
Statistics_MinDataID Integer
Statistics_MaxDataID Integer
Statistics_OriginalMinSegmentDataID Integer
Statistics_RLESortOrder Integer
Statistics_RowCount Integer
Statistics_HasNulls Boolean
Statistics_RLERuns Integer
Statistics_OthersRLERuns Integer
Statistics_Usage Integer
Statistics_DBType Integer
Statistics_XMType Integer
Statistics_CompressionType Integer
Statistics_CompressionParam Integer
Statistics_EncodingHint Integer
IsDeltaPartitionColumn Boolean
DeltaColumnMappingPhysicalName String
DeltaColumnMappingId Integer
FramedSourceColumn String
DeltaColumnPrimitiveType Integer
DeltaTableColumnStorageID Integer
StringIndexStorageID Integer
ColumnIndexStorageID Integer

Remarks

Corresponds to the TMSCHEMA_COLUMN_STORAGES data management view (DMV).

As all the INFO functions, it cannot be used in calculated tables and calculated columns.

Use this function in a DAX query. Without arguments, the function returns all the rows. To filter the rows, pass pairs of arguments: the name of a restriction and its value, both as text. If you use more than one pair, a row must match all of them. The number of arguments must be even, and an unknown restriction name returns an error. The restriction name is not case sensitive. The restriction name is the name of a column in the result. For example, INFO.COLUMNSTORAGES ( “ColumnID”, “43” ) returns the storage of one column.

The function returns one row for each column storage. A column storage has the data of one column in the VertiPaq engine. ColumnID is the ID of the column in INFO.COLUMNS, and ID is the value of ColumnStorageID in INFO.COLUMNS. To get the table and the column, join the result to INFO.COLUMNS and INFO.TABLES, as in the example. For the columns of the model, Name is a column name followed by the column ID in parentheses, but it can be different from the current name of the column. For example, in the test model, some calculated columns have names like “Column (8228)”. Use INFO.COLUMNS to get the name of the column.

The result also has rows for the internal tables of the engine, with names like POS_TO_ID and ID_TO_POS. These rows have no matching column in INFO.COLUMNS. In the test model, 145 of 417 rows are for the columns of the model.

Statistics_RowCount is the number of rows of the table, and Statistics_DistinctStates is the number of distinct values of the column. In the test model, Statistics_DistinctStates is equal to the result of DISTINCTCOUNT on the column when the column has no blank values. When the column has blank values, the two numbers can be different by one. DictionaryStorageID is the ID of the dictionary in INFO.DICTIONARYSTORAGES. When the column has a sort by column, OrderByColumn is the storage name of the sort by column; otherwise, it is BLANK.

DeltaColumnMappingPhysicalName, FramedSourceColumn and DeltaTableColumnStorageID have values only in a Direct Lake model. In an import model, these columns are BLANK. In the import test model, StringIndexStorageID and ColumnIndexStorageID are also BLANK.

According to Microsoft documentation, only users with write permission on the semantic model can run this function, and it does not work in a live connection to a model in Power BI Desktop.

Examples

-- INFO.COLUMNSTORAGES returns one row for each column storage.
-- The query shows the columns of the Product table, with the number of rows and of distinct values.
-- ID matches the ColumnStorageID column of INFO.COLUMNS.
EVALUATE
VAR TableList =
    SELECTCOLUMNS ( INFO.TABLES ( "Name", "Product" ), "TableID", [ID], "Table", [Name] )
VAR ColumnList =
    NATURALINNERJOIN (
        SELECTCOLUMNS (
            FILTER ( INFO.COLUMNS (), [Type] <> 3 ),
            "StorageID", [ColumnStorageID],
            "TableID", [TableID],
            "Column", COALESCE ( [ExplicitName], [InferredName] )
        ),
        TableList
    )
VAR StorageList =
    SELECTCOLUMNS (
        INFO.COLUMNSTORAGES (),
        "StorageID", [ID],
        "Storage name", [Name],
        "Position", [StoragePosition],
        "Rows", [Statistics_RowCount],
        "Distinct values", [Statistics_DistinctStates]
    )
VAR Result =
    SELECTCOLUMNS (
        NATURALINNERJOIN ( ColumnList, StorageList ),
        "Column", [Column],
        "Storage name", [Storage name],
        "Position", [Position],
        "Rows", [Rows],
        "Distinct values", [Distinct values]
    )
RETURN
    Result
ORDER BY [Position]
Column Storage name Position Rows Distinct values
ProductKey ProductKey (40) 0 2517 2517
Product Code Product Code (41) 1 2517 2517
Product Name Product Name (42) 2 2517 2517
Manufacturer Manufacturer (43) 3 2517 11
Brand Brand (44) 4 2517 11
Subcategory Subcategory (51) 5 2517 32
Category Category (52) 6 2517 8
Color Color (6894) 8 2517 16
List Price List Price (12390) 9 2517 426

Last update: Dec 2, 2026   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo

Microsoft documentation: https://learn.microsoft.com/en-us/dax/info-columnstorages-function-dax

2018-2026 © SQLBI. All rights are reserved. Information coming from Microsoft documentation is property of Microsoft Corp. » Contact us   » Privacy Policy & Cookies

Context Transition

This function performs a Context Transition if called in a Row Context. Click to read more.

Row Context

This expression is executed in a Row Context. Click to read more.

Passed by Expression

This parameter is passed by expression and can be evaluated multiple times in different evaluation contexts.

Iterator

Not recommended

The use of this function is not recommended. See Remarks and Related functions for alternatives.

Not recommended

The use of this parameter is not recommended.

Deprecated

This function is deprecated. Jump to the Alternatives section to see the function to use.

Volatile

A volatile function may return a different result every time you call it, even if you provide the same arguments. Click to read more.

Deprecated

This parameter is deprecated and its use is not recommended.

DirectQuery compatibility

Limitations are placed on DAX expressions allowed in measures and calculated columns.
The state below shows the DirectQuery compatibility of the DAX function.

Contribute

Want to improve the content of INFO.COLUMNSTORAGES? Did you find any issue?
Please, report it us! All submissions will be evaluated for possible updates of the content.