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
| Parameter | Attributes | Description |
|---|---|---|
| RestrictionName | Optional Repeatable |
Restriction name. |
| RestrictionValue | Optional Repeatable |
Restriction value. |
Return values
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