# MultiValidate

Collect many interrogated validations and report on them together.

Usage

[Source](https://github.com/posit-dev/pointblank/blob/main/pointblank/multivalidate.py#L100-L1642)

``` python
MultiValidate(
    *validations,
    order="time",
)
```

A [MultiValidate](../reference/MultiValidate.md#pointblank.MultiValidate) object holds a set of interrogated [`Validate`](../reference/Validate.md#pointblank.Validate) objects (the *runs*) and answers questions about all of them at once: what happened in each run (with [`get_tabular_report()`](../reference/MultiValidate.get_tabular_report.md#pointblank.MultiValidate.get_tabular_report), which puts every run's report on one page), whether the whole set is OK (with [`all_passed()`](../reference/MultiValidate.all_passed.md#pointblank.MultiValidate.all_passed), [`above_threshold()`](../reference/MultiValidate.above_threshold.md#pointblank.MultiValidate.above_threshold), and [`get_health_score()`](../reference/MultiValidate.get_health_score.md#pointblank.MultiValidate.get_health_score)), and what all the results are as a single DataFrame (with [`get_dataframe()`](../reference/MultiValidate.get_dataframe.md#pointblank.MultiValidate.get_dataframe)).

This is useful when many validations run separately, such as the jobs of an ETL process that each validate their own table, or the same validation run on a schedule. Each job can save its interrogated validation with [`write_file()`](../reference/write_file.md#pointblank.write_file), and a later step can collect the files with [`from_files()`](../reference/MultiValidate.from_files.md#pointblank.MultiValidate.from_files) to make one report. A [MultiValidate](../reference/MultiValidate.md#pointblank.MultiValidate) object never interrogates anything itself, so it only needs the results (not the tables that were validated).

## Parameters

`*validations: Validate | PipelineResult`  
Interrogated [Validate](../reference/Validate.md#pointblank.Validate) objects. A [`PipelineResult`](../reference/PipelineResult.md#pointblank.PipelineResult) can be given as well, and it adds its source and target validations (those that were run).

`order: Literal["time", "given"] = "time"`  
The order of the runs. With `"time"` (the default), the runs are ordered by the time their interrogation ended, earliest first. With `"given"`, the runs keep the order they were given in (and runs added later with [`add()`](../reference/MultiValidate.add.md#pointblank.MultiValidate.add) go at the end).

## Returns

`MultiValidate`  
A [MultiValidate](../reference/MultiValidate.md#pointblank.MultiValidate) object. Its length is the number of runs, and indexing it (e.g., `multi[0]`) gives the [Validate](../reference/Validate.md#pointblank.Validate) object of a run.

## Raises

`ValueError`  
If a validation hasn't been interrogated.

`TypeError`  
If an item isn't a [Validate](../reference/Validate.md#pointblank.Validate) or [PipelineResult](../reference/PipelineResult.md#pointblank.PipelineResult) object.

## Examples

Let's validate two tables, as two separate jobs might, and collect the interrogated validations in a [MultiValidate](../reference/MultiValidate.md#pointblank.MultiValidate) object.

``` python
import pointblank as pb

small_table = pb.load_dataset(dataset="small_table")
game_revenue = pb.load_dataset(dataset="game_revenue")

validation_1 = (
    pb.Validate(data=small_table, tbl_name="small_table", thresholds=(0.1, 0.25))
    .col_vals_gt(columns="d", value=1000)
    .col_vals_not_null(columns="c")
    .interrogate()
)

validation_2 = (
    pb.Validate(data=game_revenue, tbl_name="game_revenue", thresholds=(0.1, 0.25))
    .col_vals_gt(columns="item_revenue", value=0)
    .col_vals_in_set(columns="item_type", set=["iap", "ad"])
    .interrogate()
)

multi = pb.MultiValidate(validation_1, validation_2)
multi
```

Pointblank Validations

RUNS

2

Health Score

99.8%

2026-11-29 05:41:06 UTC

[](#pb-mv-run-1 "1. small_table (ERROR)")[](#pb-mv-run-2 "2. game_revenue (PASS)")

STEPS

PASS

FAIL

Health Score

![](data:image/svg+xml;base64,PHN2ZyBjbGFzcz0icGItbXYtY2hldnJvbiIgd2lkdGg9IjEwIiBoZWlnaHQ9IjEwIiB2aWV3Ym94PSIwIDAgMTAgMTAiIHN0eWxlPSJmbGV4OiBub25lOyBkaXNwbGF5OiBibG9jazsiIGFyaWEtaGlkZGVuPSJ0cnVlIj48cGF0aCBkPSJNMy41IDEuNSBMNyA1IEwzLjUgOC41IiBmaWxsPSJub25lIiBzdHJva2U9IiM4ODg4ODgiIHN0cm9rZS13aWR0aD0iMS42IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIC8+PC9zdmc+)1Polarssmall_table

2026-11-29 05:41:06 UTC

2

0

2

69.23%

ERROR

[TABLE]

![](data:image/svg+xml;base64,PHN2ZyBjbGFzcz0icGItbXYtY2hldnJvbiIgd2lkdGg9IjEwIiBoZWlnaHQ9IjEwIiB2aWV3Ym94PSIwIDAgMTAgMTAiIHN0eWxlPSJmbGV4OiBub25lOyBkaXNwbGF5OiBibG9jazsiIGFyaWEtaGlkZGVuPSJ0cnVlIj48cGF0aCBkPSJNMy41IDEuNSBMNyA1IEwzLjUgOC41IiBmaWxsPSJub25lIiBzdHJva2U9IiM4ODg4ODgiIHN0cm9rZS13aWR0aD0iMS42IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIC8+PC9zdmc+)2Polarsgame_revenue

2026-11-29 05:41:06 UTC

2

2

0

100%

[TABLE]

Displaying the object shows every run's validation report on one page. An overview at the top gives the number of runs, their overall health score, and a strip of status colors (one block for each run, linking to its section). Each run is in a section that can be opened or closed, and the line at the top of each section summarizes the run: its status, table, end time, number of steps passed and failed, health score, and the highest threshold level reached. The sections of runs with failing steps start open.

The roll-up methods give a verdict for the whole set:

``` python
multi.above_threshold(level="error")
```

    True

It's `True` because the first step of the `small_table` run had more failing test units than its error threshold allows. And [`get_dataframe()`](../reference/MultiValidate.get_dataframe.md#pointblank.MultiValidate.get_dataframe) gives the results of every step of every run as one DataFrame, which is a good starting point for a dashboard or a log of results.
