INFO.DATACOVERAGEDEFINITIONS DAX Function (Information)

Returns a list of all data coverage definitions in the current model with columns matching the schema rowset for data coverage definition objects.

Syntax

INFO.DATACOVERAGEDEFINITIONS ( [<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 data coverage definition in the model. The columns match the TMSCHEMA_DATA_COVERAGE_DEFINITIONS DMV.

Field Type
ID Integer
PartitionID Integer
Description String
Expression String
ModifiedTime DateTime
State Integer
ErrorMessage String

Remarks

Corresponds to the TMSCHEMA_DATA_COVERAGE_DEFINITIONS 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 ErrorMessage is not a valid restriction name. For example, INFO.DATACOVERAGEDEFINITIONS ( “PartitionID”, “145” ) returns the data coverage definition of one partition.

The function returns one row for each data coverage definition. A data coverage definition is a DAX expression on a partition. PartitionID is the ID of the partition in INFO.PARTITIONS, and Expression is the DAX expression. In INFO.PARTITIONS, DataCoverageDefinitionID is the ID of the data coverage definition of the partition. In the test model, no partition has a data coverage definition, so the function returns an empty table.

According to Microsoft documentation, you use a data coverage definition on the DirectQuery partition of a hybrid table, which has import partitions and one DirectQuery partition. The expression describes the rows of the DirectQuery partition, and the engine uses it to skip that partition when a query does not need those rows. A wrong expression can return wrong results. After you create or change a data coverage definition, you must recalculate the partition. Data coverage definitions require compatibility level 1603 or higher.

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.DATACOVERAGEDEFINITIONS returns one row for each data coverage definition of a partition.
-- The query shows the partitions of each table, with their mode and the expression of the data coverage definition.
-- The test model has no data coverage definitions, so the Data coverage column is blank.
EVALUATE
VAR CoverageList =
    SELECTCOLUMNS (
        INFO.DATACOVERAGEDEFINITIONS (),
        "PartitionID", [PartitionID],
        "Data coverage", [Expression]
    )
VAR TableList =
    SELECTCOLUMNS ( INFO.TABLES (), "TableID", [ID], "Table", [Name] )
VAR PartitionList =
    NATURALINNERJOIN (
        SELECTCOLUMNS ( INFO.PARTITIONS (), "PartitionID", [ID], "TableID", [TableID], "Mode", [Mode] ),
        TableList
    )
VAR Result =
    SELECTCOLUMNS (
        NATURALLEFTOUTERJOIN ( PartitionList, CoverageList ),
        "Table", [Table],
        "Mode", [Mode],
        "Data coverage", [Data coverage]
    )
RETURN
    Result
ORDER BY [Table]
Table Mode Data coverage
Account 0 (Blank)
ColorGroups 0 (Blank)
Customer 0 (Blank)
Date 0 (Blank)
Product 0 (Blank)
Promotion 0 (Blank)
Rates 0 (Blank)
Sales 0 (Blank)
Scale 0 (Blank)
Store 0 (Blank)
Time calc 0 (Blank)

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

Contributors: Alberto Ferrari, Marco Russo

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