backgroundImage

Apply Expectations more selectively with row conditions

When you want to test a subset of your current data batch, add a condition

Erin Kapp
November 22, 2024
Screenshots of the Expectation condition configuration menu options on a gradient background

We’ve heard from many users about scenarios where they need data validation tests that can include (or exclude) a subset of the rows in their current batch of data. We’ve made that possible now with the option to add a condition to your Expectation!

How it works

When you create an Expectation, you can add a condition that specifies which rows the Expectation should be applied to.

In essence, an Expectation condition is a row filter to identify the rows you want to test.

To set a condition, you select:

  • The column that contains the value you want to filter on (a key)

  • The operator for your condition (equal to, less than, greater than, etc.)

  • The parameter for your condition

Expectation condition configuration

When the Expectation runs, it will only test the rows that meet the criteria you specified in the condition.

Expectation condition configured

It’s that easy!

Learn more

Get the complete rundown on filtering your data via Expectation conditions in our documentation.

Search our blog for the latest on data quality.


©2024 Great Expectations. All Rights Reserved.