# Metrics Provider for Customer Expectations

**URL:** https://discourse.greatexpectations.io/t/metrics-provider-for-customer-expectations/2341
**Category:** GX Core Support
**Created:** [March 2, 2026, 3:44pm UTC](https://discourse.greatexpectations.io/t/metrics-provider-for-customer-expectations/2341 "2026-03-02T15:44:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![nevintan](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/nevintan/32/272_2.png) [@nevintan](https://discourse.greatexpectations.io/u/nevintan)
#### Post date: [March 2, 2026, 3:44pm UTC](https://discourse.greatexpectations.io/t/metrics-provider-for-customer-expectations/2341/1 "2026-03-02T15:44:55Z")

</div>

> [@](#):
>
> **[View in #gx-community-support on Slack](https://slack.com/archives/CUTCNHN82/p1772421141951309)**
> 
> ![Pek_(Receipe)](https://canada1.discourse-cdn.com/flex031/uploads/greatexpectations/original/1X/99f101f11238d0b564eaea74ea24301d635f506d.png) @Pek\*\*\_(Receipe):\*\* Hi there Great Expectations team, i am Justin, a Junior Developer just trying out how to create my own custom Expectations. Expectation is to check if one column is the sum of two columns. Evaluating on a row by row basis. In this case, what metrics provider do I use ? Is it a MulticolumnMapMetricProvider or ColumnMapMetricProvider? Could you guide me through if possible?  
> Thanks so much  
> Justin

---

<div class="post-metadata">

### Author: ![nevintan](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/nevintan/32/272_2.png) [@nevintan](https://discourse.greatexpectations.io/u/nevintan)
#### Post date: [March 2, 2026, 3:52pm UTC](https://discourse.greatexpectations.io/t/metrics-provider-for-customer-expectations/2341/2 "2026-03-02T15:52:12Z")

</div>

MetricsProviders have been removed in GX 1.x.x. We recommend taking a look at our [latest documentation](https://docs.greatexpectations.io/docs/core/customize_expectations/) on how to create Custom Expectations, including Custom SQL Expectations.

---

<div class="post-metadata">

### Author: ![Recipe](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@Recipe](https://discourse.greatexpectations.io/u/Recipe)
#### Post date: [March 2, 2026, 5:33pm UTC](https://discourse.greatexpectations.io/t/metrics-provider-for-customer-expectations/2341/3 "2026-03-02T17:33:39Z")

</div>

Hi Nevin, Thanks for the reply. The closest Expectation class that I can find the ExpectMulticolumnSumToEqual. However, the class is checking the sum of the columns to a fixed total. I want the sum of the columns to compare another column dynamically for every row. Is there anyway i can do it? df[col\_a] + df[col\_b] == df[col\_c] rather than df[col\_a] + df[col\_b] == constant

---

<div class="post-metadata">

### Author: ![nevintan](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/nevintan/32/272_2.png) [@nevintan](https://discourse.greatexpectations.io/u/nevintan)
#### Post date: [March 6, 2026, 7:14pm UTC](https://discourse.greatexpectations.io/t/metrics-provider-for-customer-expectations/2341/4 "2026-03-06T19:14:31Z")

</div>

It looks like the best solution for you here would be to use a Custom SQL Expectation.

---

<div class="post-metadata">

### Author: ![Recipe](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@Recipe](https://discourse.greatexpectations.io/u/Recipe)
#### Post date: [March 11, 2026, 2:30am UTC](https://discourse.greatexpectations.io/t/metrics-provider-for-customer-expectations/2341/5 "2026-03-11T02:30:20Z")

</div>

Hi Nevin, is it possible to use a Custom SQL Expectation on a pandas dataframe?
