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