INFO.COLUMNPARTITIONSTORAGES DAX Function (Information)

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

Syntax

INFO.COLUMNPARTITIONSTORAGES ( [<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 in each partition storage, including the internal tables of the engine. The columns match the TMSCHEMA_COLUMN_PARTITION_STORAGES DMV.

Field Type
ID Integer
ColumnStorageID Integer
PartitionStorageID Integer
DataVersion Integer
State Integer
SegmentStorageID Integer
StorageFileID Integer

Remarks

Corresponds to the TMSCHEMA_COLUMN_PARTITION_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.COLUMNPARTITIONSTORAGES ( “ColumnStorageID”, “413” ) returns the storage of one column.

The function returns one row for each column in each partition storage. ColumnStorageID is the ID of the column storage in INFO.COLUMNSTORAGES, and INFO.COLUMNS has the same value in its ColumnStorageID column. PartitionStorageID is the ID of the partition storage in INFO.PARTITIONSTORAGES. SegmentStorageID is the ID of the row in INFO.SEGMENTSTORAGES, and StorageFileID is the ID of the file in INFO.STORAGEFILES. To get the table and the column, join the result to INFO.COLUMNS and INFO.TABLES, as in the example.

The result also has rows for the internal tables of the engine. In INFO.PARTITIONSTORAGES, the names of these tables start with H$, U$ or R$. These rows have no matching column in INFO.COLUMNS. In the test model, 145 of 417 rows are for the columns of the model, and all of them have State 1. All the rows of the internal tables have State 3.

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.COLUMNPARTITIONSTORAGES returns one row for each column in each partition storage.
-- The query counts the rows of each table. ColumnStorageID matches the ColumnStorageID column of INFO.COLUMNS.
-- The rows without a matching column belong to internal tables of the engine.
EVALUATE
VAR TableList =
    SELECTCOLUMNS ( INFO.TABLES (), "TableID", [ID], "Table", [Name] )
VAR ColumnList =
    NATURALINNERJOIN (
        SELECTCOLUMNS ( INFO.COLUMNS (), "ColumnStorageID", [ColumnStorageID], "TableID", [TableID] ),
        TableList
    )
VAR StorageList =
    NATURALLEFTOUTERJOIN (
        SELECTCOLUMNS (
            INFO.COLUMNPARTITIONSTORAGES (),
            "ColumnStorageID", [ColumnStorageID],
            "State", [State]
        ),
        ColumnList
    )
VAR Result =
    GROUPBY (
        ADDCOLUMNS ( StorageList, "Table name", COALESCE ( [Table], "(internal)" ) ),
        [Table name],
        [State],
        "Rows", COUNTX ( CURRENTGROUP (), 1 )
    )
RETURN
    Result
ORDER BY [State], [Table name]
Table name State Rows
Account 1 4
ColorGroups 1 3
Customer 1 28
Date 1 44
Product 1 10
Promotion 1 9
Rates 1 3
Sales 1 17
Scale 1 3
Store 1 21
Time calc 1 3
(internal) 3 272

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

Contributors: Alberto Ferrari, Marco Russo

Microsoft documentation: https://learn.microsoft.com/en-us/dax/info-columnpartitionstorages-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.COLUMNPARTITIONSTORAGES? Did you find any issue?
Please, report it us! All submissions will be evaluated for possible updates of the content.