INFO.CALCDEPENDENCY DAX Function (Information)

Returns information about the calculation dependency for a DAX query.

Syntax

INFO.CALCDEPENDENCY ( [<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 dependency between two objects of the model. The columns match the DISCOVER_CALC_DEPENDENCY DMV.

Field Type
DATABASE_NAME String
OBJECT_TYPE String
TABLE String
OBJECT String
EXPRESSION String
REFERENCED_OBJECT_TYPE String
REFERENCED_TABLE String
REFERENCED_OBJECT String
REFERENCED_EXPRESSION String
QUERY String

Remarks

Corresponds to the DISCOVER_CALC_DEPENDENCY 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 the dependencies of all the objects in the model. Each row shows an object (OBJECT_TYPE, TABLE, OBJECT, EXPRESSION) and one object that it uses (the REFERENCED columns). In the test model, OBJECT_TYPE can be MEASURE, CALC_COLUMN, CALCULATION_ITEM, PARTITION, HIERARCHY, ATTRIBUTE_HIERARCHY, RELATIONSHIP and ACTIVE_RELATIONSHIP.

You can pass pairs of arguments with the name of a restriction and its value, both as text. Only three restriction names are valid: DATABASE_NAME, OBJECT_TYPE and QUERY. The other columns of the result return an error when you use them as restriction names. The restriction name is not case sensitive, but the value of OBJECT_TYPE must be in upper case. For example, INFO.CALCDEPENDENCY ( “OBJECT_TYPE”, “MEASURE” ) returns only the dependencies of measures, and INFO.CALCDEPENDENCY ( “OBJECT_TYPE”, “measure” ) returns an error.

With the QUERY restriction, the value is the text of a DAX query, and the function returns the objects that the query uses. In these rows, OBJECT_TYPE is QUERY and OBJECT is BLANK. The text must be a valid DAX query that uses existing objects, or the function returns an error. To write a double quote inside the text, use two double quotes. The result can also contain internal columns of the engine, for example the column that starts with RowNumber.

INFO.DEPENDENCIES returns the same result.

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

-- Query 1: the objects that a DAX query uses, found with the Query restriction. The query is the measure [Sales Amount].
-- Query 2: how many dependencies exist for each type of object in the model (OBJECT_TYPE).
EVALUATE
SELECTCOLUMNS (
    FILTER (
        INFO.CALCDEPENDENCY ( "Query", "EVALUATE { [Sales Amount] }" ),
        NOT CONTAINSSTRING ( [REFERENCED_OBJECT], "RowNumber" )
    ),
    "Referenced type", [REFERENCED_OBJECT_TYPE],
    "Referenced table", [REFERENCED_TABLE],
    "Referenced object", [REFERENCED_OBJECT]
)
ORDER BY [Referenced type], [Referenced object]

EVALUATE
GROUPBY (
    INFO.CALCDEPENDENCY (),
    [OBJECT_TYPE],
    "Dependencies", COUNTX ( CURRENTGROUP (), 1 )
)
ORDER BY [Dependencies] DESC
Referenced type Referenced table Referenced object
COLUMN Sales Net Price
COLUMN Sales Quantity
MEASURE Sales Sales Amount
TABLE Sales Sales
OBJECT_TYPE Dependencies
CALC_COLUMN 59
ATTRIBUTE_HIERARCHY 18
HIERARCHY 15
ACTIVE_RELATIONSHIP 12
PARTITION 10
MEASURE 8
CALCULATION_ITEM 7
RELATIONSHIP 2

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

Contributors: Alberto Ferrari, Marco Russo

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