INFO.DICTIONARYSTORAGES DAX Function (Information)
Returns a list of all dictionary storages in the current model with columns matching the schema rowset for dictionary 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 dictionary storage, including the dictionaries of the internal tables of the engine. The columns match the TMSCHEMA_DICTIONARY_STORAGES DMV.
| Field | Type |
|---|---|
| ID | Integer |
| ColumnStorageID | Integer |
| Type | Integer |
| DataType | Integer |
| DataVersion | Integer |
| BaseId | Integer |
| Magnitude | Decimal |
| LastId | Integer |
| IsNullable | Boolean |
| IsUnique | Boolean |
| IsOperatingOn32 | Boolean |
| DictionaryFlags | Integer |
| StorageFileID | Integer |
| Size | Integer |
Remarks
Corresponds to the TMSCHEMA_DICTIONARY_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, but Size is not a valid restriction name. For example, INFO.DICTIONARYSTORAGES ( “ColumnStorageID”, “413” ) returns the dictionary of one column storage.
The function returns one row for each column storage, with the dictionary of that column storage. ColumnStorageID is the ID of the column storage in INFO.COLUMNSTORAGES, and ID is the value of DictionaryStorageID in INFO.COLUMNSTORAGES. In INFO.COLUMNS, ColumnStorageID has the same value. To get the table and the column, join the result to INFO.COLUMNS and INFO.TABLES, as in the example. In the test model, 145 of 417 rows are for the columns of the model. The other rows are for the internal tables of the engine, and their Type is 0.
Type is the encoding of the column: 1 is hash encoding and 2 is value encoding. These numbers are the same as COLUMN_ENCODING in INFO.STORAGETABLECOLUMNS. DataType is the type of the stored values. In the test model, DataType is 2 for text columns, 6 for integer, currency and Boolean columns, and 8 for decimal number and date columns. For hash encoding, LastId is the largest data ID of the dictionary, which is the same as Statistics_MaxDataID in INFO.COLUMNSTORAGES. In the test model, Size is 0 for most dictionaries, also when DICTIONARY_SIZE in INFO.STORAGETABLECOLUMNS is larger than 0. That is expected when the model has just been processed and has not been loaded in memory again.
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.DICTIONARYSTORAGES returns one row for each dictionary of a column storage.
-- The query shows the dictionary of each column of the Product table.
-- ColumnStorageID matches the ID column of INFO.COLUMNSTORAGES and the ColumnStorageID column of INFO.COLUMNS.
-- Type is 1 for hash encoding and 2 for value encoding.
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 DictionaryList =
SELECTCOLUMNS (
INFO.DICTIONARYSTORAGES (),
"StorageID", [ColumnStorageID],
"Type", [Type],
"DataType", [DataType],
"LastId", [LastId],
"IsNullable", [IsNullable]
)
VAR Result =
SELECTCOLUMNS (
NATURALINNERJOIN ( ColumnList, DictionaryList ),
"Column", [Column],
"Type", [Type],
"DataType", [DataType],
"LastId", [LastId],
"IsNullable", [IsNullable]
)
RETURN
Result
ORDER BY [Column]
| Column | Type | DataType | LastId | IsNullable |
|---|---|---|---|---|
| Brand | 1 | 2 | 13 | False |
| Category | 1 | 2 | 10 | False |
| Color | 1 | 2 | 18 | False |
| List Price | 2 | 6 | 2 | True |
| Manufacturer | 1 | 2 | 13 | False |
| Product Code | 1 | 2 | 2519 | False |
| Product Name | 1 | 2 | 2519 | False |
| ProductKey | 1 | 6 | 2519 | False |
| Subcategory | 1 | 2 | 34 | False |
Last update: Dec 3, 2026 » Contribute » Show contributors
Contributors: Alberto Ferrari, Marco Russo
Microsoft documentation: https://learn.microsoft.com/en-us/dax/info-dictionarystorages-function-dax