INFO.CATALOGS DAX Function (Information)

Returns a list of all catalogs (databases) with columns matching the schema rowset for catalog objects.

Syntax

INFO.CATALOGS ( [<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 database (catalog). The columns match the DBSCHEMA_CATALOGS DMV.

Field Type
CATALOG_NAME String
DESCRIPTION String
ROLES String
DATE_MODIFIED DateTime
COMPATIBILITY_LEVEL Integer
TYPE Integer
VERSION Integer
DATABASE_ID String
DATABASE_GUID String
DATE_QUERIED DateTime
CURRENTLY_USED Boolean
POPULARITY Decimal
WEIGHTEDPOPULARITY Decimal
CLIENTCACHEREFRESHPOLICY Integer
ENCRYPTION_LEVEL String
CRYPTOKEY_UPDATED DateTime

Remarks

Corresponds to the DBSCHEMA_CATALOGS 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 does not accept restrictions. CATALOG_NAME is a known restriction name, but the function returns an error when you use it. The other column names are not valid restriction names, and they also return an error.

The function returns one row for each database (catalog). In the test model, the result has only one row, for the current database. CATALOG_NAME is the name of the database, and COMPATIBILITY_LEVEL is the compatibility level of the model. The column names are in upper case because the result comes from a schema rowset (DBSCHEMA_CATALOGS) and not from a TMSCHEMA DMV.

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.CATALOGS returns one row for each database (catalog).
-- The query shows the name, the compatibility level, and the roles of the database.
EVALUATE
SELECTCOLUMNS (
    INFO.CATALOGS (),
    "Database", [CATALOG_NAME],
    "Compatibility level", [COMPATIBILITY_LEVEL],
    "Roles", [ROLES],
    "Currently used", [CURRENTLY_USED]
)
Database Compatibility level Roles Currently used
DAX Guide 1701 * True

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

Contributors: Alberto Ferrari, Marco Russo

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