---
updatedAt: 2026-11-09T12:59:11.000Z
agentTools:
  projectIndex: https://docs.getmontecarlo.com/llms.txt
---

# Asset-level data quality

How many of your tables passed, which data quality dimension fails and which tables failed, for the whole account or a domain, data product, asset tag or warehouse.

> ℹ️ **Public preview**
>
> The Analytics API is in public preview: on for every account, and features may change. Monitor run metrics are in private preview: reach out to your account representative to request access. See [Integration and feature lifecycles](https://docs.getmontecarlo.com/docs/integration-feature-lifecycles) for what this means.

## Overview

Data quality measured per table rather than per monitor: the share of tables with a result this week that had no data quality alert. Use it to see whether a group of tables can be trusted, which data quality dimension fails and which tables to fix first.

**For:** data team leads, data product owners. **Metrics:** [Data quality](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality).

![Asset-level data quality dashboard, rendered from this example](https://files.readme.io/13b9368a30b3f218f94b36dafdd4c9c711f13a74067d0165219782a28a8bc088-asset-data-quality.png)

*An example built from the prompt below, with sample names and values.*

## Prompt

Copy one of these prompts into an AI tool connected to the [Monte Carlo MCP server](https://docs.getmontecarlo.com/docs/mcp-server). With the dashboard skills from the [Monte Carlo agent toolkit](https://docs.getmontecarlo.com/docs/agent-toolkit) installed (in coding agents such as Claude Code, Cursor, Codex and GitHub Copilot), your agent reads this page, builds the layout and runs the queries below; without them, it works from the metrics alone.

The agent asks which format you want unless the prompt names one. To skip the question, add:

* "as a Claude artifact that refreshes" in Claude Desktop or claude.ai;
* "as an HTML file" in a coding agent.

```text
Using the Monte Carlo connector, build a data quality dashboard for the tables behind my domains this week, by data quality dimension, with the tables that had the most alerts. Follow the "Asset-level data quality" dashboard example in the Monte Carlo docs.
```

By data product:

```text
Using the Monte Carlo connector, build a data quality dashboard for the tables behind my data products this week, by data quality dimension, with the tables that had the most alerts. Follow the "Asset-level data quality" dashboard example in the Monte Carlo docs.
```

## What it covers

* An overall data quality score: the share of your tables with a result this week that had no data quality alert.
* A score for each data quality dimension (Accuracy, Completeness, Timeliness and so on), worst first.
* The domains or data products with the lowest score, and the monitors that alerted.
* Which tables are failing, on which data quality dimensions, and how many alerts they had.
* This score counts tables, not monitors, so it differs from the Data quality dashboard in Monte Carlo.

## Filters and groupings

* By domain, data product or asset tag, with their `domain_`, `data_product_` and `asset_tag_` health metrics, or by warehouse.
* Broken down by data quality dimension, monitor type or monitor priority.
* Windows: the last 1, 7, 30 or 90 days up to the last data refresh for the scores per grouping and per data quality dimension. Asset health also has a daily history, shown as the trend of the answer, for all tables or the tables of one grouping.
* Data quality dimensions and the trend inside one domain, data product or asset tag take two steps: list its tables, then filter on them (at most 5,000 tables).

## How it's built

The layout, queries and definitions your agent follows; use them to check its numbers or to build the dashboard by hand. The queries below are for domains; data products and asset tags use the `data_product_` and `asset_tag_` metrics the same way.

### Layout

1. **Filter:** the domain or data product, all tables by default.
2. **The answer:** asset health as a number card, with "N of M tables passing" under it, passing and failing tables as a donut, and its daily trend over the last 30 days next to them as a line; with a domain or data product selected, the trend counts its tables only.
3. **By data quality dimension:** horizontal bars, each dimension with its health and "x of y tables", worst first; "Not classified" last. With a domain or data product selected, the dimensions count its tables only (two steps, see the queries).
4. **Worst domains or data products:** a table with a bar in each row, the 10 with the lowest health, and how many more; the ones with no result last, marked "no result".
5. **Monitors that alerted:** a table, each monitor with an alert in the window, with its type, data quality dimension, last run and the number of tables it alerted on, most tables first.
6. **Tables:** a table, one row per table with a result, failing first, then by alerts: the table, its status (passing or failing), the data quality dimensions that failed and its alerts in the last 7 days.

### Queries

| Block                                                                | Window                                  |
| -------------------------------------------------------------------- | --------------------------------------- |
| Filter, the answer, by data quality dimension, worst domains, tables | last 7 days up to the last data refresh |
| Alerts per table                                                     | last 7 days                             |
| Trend of the answer                                                  | last 30 days, per day                   |

**Filter and worst domains: domains, worst first**

* Metrics: [`domain_asset_health_score_7d`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Grouped by: `domain__domain_uuid`, `domain__domain_name`
* Sorted by: `domain_asset_health_score_7d`, lowest first

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["domain_asset_health_score_7d"],
    "group_by": ["domain__domain_uuid", "domain__domain_name"],
    "order_by": [{"field": "domain_asset_health_score_7d"}]
  }
  ```
</Accordion>

Domains with no table with a result get no row: take every domain from this query (data products: `data_product_count`, without deleted ones) and mark the missing ones "no result".

* Metrics: [`domain_count`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-coverage)
* Grouped by: `domain__domain_uuid`, `domain__domain_name`

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["domain_count"],
    "group_by": ["domain__domain_uuid", "domain__domain_name"]
  }
  ```
</Accordion>

**The answer, all tables.** Passing tables are the ones with a result minus the failing ones.

Health:

* Metrics: [`asset_health_score_7d`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {"metrics": ["asset_health_score_7d"]}
  ```
</Accordion>

Tables with a result:

* Metrics: [`population_assets`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-coverage)
* Filter: `asset__is_asset_with_result_7d` is `true`

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["population_assets"],
    "filters": [
      {
        "field": "asset__is_asset_with_result_7d",
        "op": "in",
        "values": [true]
      }
    ]
  }
  ```
</Accordion>

Failing tables:

* Metrics: [`population_assets`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-coverage)
* Filter: `asset__is_asset_alerting_7d` is `true`

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["population_assets"],
    "filters": [
      {
        "field": "asset__is_asset_alerting_7d",
        "op": "in",
        "values": [true]
      }
    ]
  }
  ```
</Accordion>

Passing and failing tables, for the donut:

* Metrics: [`population_assets`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-coverage)
* Grouped by: `asset__is_asset_alerting_7d`
* Filter: `asset__is_asset_with_result_7d` is `true`

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["population_assets"],
    "group_by": ["asset__is_asset_alerting_7d"],
    "filters": [
      {
        "field": "asset__is_asset_with_result_7d",
        "op": "in",
        "values": [true]
      }
    ]
  }
  ```
</Accordion>

Trend, all tables:

* Metrics: [`asset_health_score`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Grouped by: `metric_time__day`
* Filter: `metric_time__day` on or after 30 days ago

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["asset_health_score"],
    "group_by": ["metric_time__day"],
    "filters": [
      {
        "field": "metric_time__day",
        "op": "gte",
        "values": ["<30 days ago>"]
      }
    ]
  }
  ```
</Accordion>

**The answer, one domain:** the same metrics with the `domain_` prefix (`domain_asset_health_score_7d`, `domain_population_assets` with the same two filters), filtered on its name.

* Metrics: [`domain_asset_health_score_7d`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Filter: `domain__domain_name` is the selected domain

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["domain_asset_health_score_7d"],
    "filters": [
      {
        "field": "domain__domain_name",
        "op": "in",
        "values": ["<selected domain>"]
      }
    ]
  }
  ```
</Accordion>

**By data quality dimension: health and tables with a result.** Monitors without a data quality dimension come back with it empty: show them as "Not classified".

* Metrics: [`monitor_asset_health_score_7d`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality), [`monitor_assets`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Grouped by: `monitor__monitor_data_quality_dimension`
* Filter: `monitor_asset_quality__is_monitor_asset_with_result_7d` is `true`

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": [
      "monitor_asset_health_score_7d",
      "monitor_assets"
    ],
    "group_by": ["monitor__monitor_data_quality_dimension"],
    "filters": [
      {
        "field": "monitor_asset_quality__is_monitor_asset_with_result_7d",
        "op": "in",
        "values": [true]
      }
    ]
  }
  ```
</Accordion>

For one domain or data product, take its tables first and add a filter on them, as Combining groupings on the [Dimensions](https://docs.getmontecarlo.com/docs/analytics-api-dimensions) page says. The same filter applies to the trend above and to the two queries below. A filter takes at most 5,000 values, so a grouping with more tables shows all tables and says so.

* Metrics: [`domain_population_assets`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-coverage)
* Grouped by: `asset__asset_mcon`
* Filter: `domain__domain_name` is the selected domain
* At most 10,000 rows

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["domain_population_assets"],
    "group_by": ["asset__asset_mcon"],
    "filters": [
      {
        "field": "domain__domain_name",
        "op": "in",
        "values": ["<selected domain>"]
      }
    ],
    "limit": 10000
  }
  ```
</Accordion>

Then: Filter: `asset__asset_mcon` is one of those tables.

**By data quality dimension: tables failing**

* Metrics: [`monitor_assets`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Grouped by: `monitor__monitor_data_quality_dimension`
* Filter: `monitor_asset_quality__is_monitor_asset_alerting_7d` is `true`

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["monitor_assets"],
    "group_by": ["monitor__monitor_data_quality_dimension"],
    "filters": [
      {
        "field": "monitor_asset_quality__is_monitor_asset_alerting_7d",
        "op": "in",
        "values": [true]
      }
    ]
  }
  ```
</Accordion>

**Monitors that alerted**

* Metrics: [`monitor_assets`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Grouped by: `monitor__monitor_uuid`, `monitor__monitor_name`, `monitor__monitor_type`, `monitor__monitor_data_quality_dimension`, `monitor__monitor_last_run_at__day`
* Filter: `monitor_asset_quality__is_monitor_asset_alerting_7d` is `true`
* Sorted by: `monitor_assets`, highest first

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["monitor_assets"],
    "group_by": [
      "monitor__monitor_uuid",
      "monitor__monitor_name",
      "monitor__monitor_type",
      "monitor__monitor_data_quality_dimension",
      "monitor__monitor_last_run_at__day"
    ],
    "filters": [
      {
        "field": "monitor_asset_quality__is_monitor_asset_alerting_7d",
        "op": "in",
        "values": [true]
      }
    ],
    "order_by": [
      {"field": "monitor_assets", "descending": true}
    ]
  }
  ```
</Accordion>

With a member selected, filter on its tables as above.

**Tables: status.** A table is failing when it had a data quality alert in the window. For one domain, ask `domain_population_assets` with the same filter.

* Metrics: [`population_assets`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-coverage)
* Grouped by: `asset__asset_mcon`, `asset__asset_full_table_id`, `asset__warehouse__warehouse_name`, `asset__is_asset_alerting_7d`
* Filter: `asset__asset_category` is `table`; `asset__is_asset_with_result_7d` is `true`
* At most 10,000 rows

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["population_assets"],
    "group_by": [
      "asset__asset_mcon",
      "asset__asset_full_table_id",
      "asset__warehouse__warehouse_name",
      "asset__is_asset_alerting_7d"
    ],
    "filters": [
      {
        "field": "asset__asset_category",
        "op": "in",
        "values": ["table"]
      },
      {
        "field": "asset__is_asset_with_result_7d",
        "op": "in",
        "values": [true]
      }
    ],
    "limit": 10000
  }
  ```
</Accordion>

A table's full name can be in several warehouses, each a table of its own: keep one row per `asset__asset_mcon`, never merge rows by name, and show its warehouse next to a name that repeats.

**Tables: failing data quality dimensions**

* Metrics: [`monitor_assets`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Grouped by: `asset__asset_mcon`, `monitor__monitor_data_quality_dimension`
* Filter: `asset__asset_category` is `table`; `monitor_asset_quality__is_monitor_asset_alerting_7d` is `true`
* At most 10,000 rows

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["monitor_assets"],
    "group_by": [
      "asset__asset_mcon",
      "monitor__monitor_data_quality_dimension"
    ],
    "filters": [
      {
        "field": "asset__asset_category",
        "op": "in",
        "values": ["table"]
      },
      {
        "field": "monitor_asset_quality__is_monitor_asset_alerting_7d",
        "op": "in",
        "values": [true]
      }
    ],
    "limit": 10000
  }
  ```
</Accordion>

**Tables: alerts in the last 7 days**

* Metrics: [`asset_incident_count`](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality)
* Grouped by: `asset__asset_mcon`
* Filter: `metric_time__day` on or after 7 days ago; `asset__asset_category` is `table`; `incident__incident_type` is not one of "etl\_errors", "dbt\_errors"
* Sorted by: `asset_incident_count`, highest first
* At most 10,000 rows

<Accordion title="Request (JSON)" icon="fa-code">
  ```json
  {
    "metrics": ["asset_incident_count"],
    "group_by": ["asset__asset_mcon"],
    "filters": [
      {
        "field": "metric_time__day",
        "op": "gte",
        "values": ["<7 days ago>"]
      },
      {
        "field": "asset__asset_category",
        "op": "in",
        "values": ["table"]
      },
      {
        "field": "incident__incident_type",
        "op": "not_in",
        "values": ["etl_errors", "dbt_errors"]
      }
    ],
    "order_by": [
      {"field": "asset_incident_count", "descending": true}
    ],
    "limit": 10000
  }
  ```
</Accordion>

Join the three table queries on `asset__asset_mcon`. For one member, keep the failing data quality dimensions and alerts of its tables only.

### Definitions

* **Asset health** counts tables; the product's Data quality score scores Table Monitors per table and other monitors per monitor, from their latest results; the [Data quality](https://docs.getmontecarlo.com/docs/analytics-api-metrics-data-quality) metrics page says how, and how to show a trend.
* **An alert counts against every table it concerns**, once per table, and once per domain or data product of those tables.
* **Data products** count the tables a user added plus the tables upstream of them in lineage. **Domains** here are table membership (`domain__domain_name`).
* **Not classified:** monitors without a data quality dimension are often most of them; then most failing tables list only "Not classified". Say so under By data quality dimension, with what it means: the data quality dimension is set on each monitor, and these monitors have none.
* **Job failures** (Airflow, dbt, Databricks, Data Factory) are not data quality alerts: they do not make a table fail, and the alerts per table leave them out.
* **Two windows:** status counts the last 7 days up to the last data refresh, alerts whole days from 7 days ago, so a passing table can show an alert from just before its window.