# How to quickly apply multiple filters to a measure so drill-down matches the value

**URL:** <https://community.omni.co/t/how-to-quickly-apply-multiple-filters-to-a-measure-so-drill-down-matches-the-value/555>\
**Category:** Modeling\
**Tags:** drilling, filtering\
**Created:** [December 3, 2026, 10:33pm UTC](https://community.omni.co/t/how-to-quickly-apply-multiple-filters-to-a-measure-so-drill-down-matches-the-value/555 "2026-12-03T22:33:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Youjin](https://avatars.discourse-cdn.com/v4/letter/y/dbc845/32.png) [@Youjin](https://community.omni.co/u/Youjin)\
**Post date:** [December 3, 2026, 10:33pm UTC](https://community.omni.co/t/how-to-quickly-apply-multiple-filters-to-a-measure-so-drill-down-matches-the-value/555/1 "2026-12-03T22:33:24Z")

</div>

Have you ever drilled into a measure and found more rows than the number you clicked? This usually happens when the measure’s conditions are written inside its SQL. Drill-down doesn’t carry those conditions over, so it returns every underlying row. [This community post from Conner](https://community.omni.co/t/why-does-drilling-into-a-measure-lead-to-a-different-value-than-the-value-in-the-aggregated-table/27) explains why in more detail and how to use [`filters` parameter](https://docs.omni.co/modeling/measures/parameters/filters) to apply conditions on a measure.

This post picks up from there: what to do when your measure has several conditions, and how to apply them **all with a single filter** using a _ **helper dimension** _\*\*.\*\*

## The scenario

Say you have a `Completed Domestic Orders` measure on an `orders` view. The number is only supposed to count orders that meet **all** of these conditions:

- `order_status` is `Delivered`
- `is_international` is `false`
- `order_date` is in the current quarter
- `payment_status` is `Paid`

In the IDE, your measure would be defined in SQL that looks like this:

```auto
measures:
  completed_domestic_orders:
    sql: |
      SUM(
        CASE
          WHEN ${order_status} = 'Delivered'
           AND ${is_international} = false
           AND ${order_date} >= DATE_TRUNC('quarter', CURRENT_DATE)
           AND ${payment_status} = 'Paid'
          THEN 1 ELSE 0
        END
      )

```

## Option 1: One filter per condition

Move each condition into the measure’s [`filters` parameter](https://docs.omni.co/modeling/measures/parameters/filters). Filters remove rows before aggregation, and when you drill, Omni applies them to the detail rows too:

```yaml
measures:
  completed_domestic_orders:
    aggregate_type: count
    filters:
      order_status:
        is: Delivered
      is_international:
        is: false
      payment_status:
        is: Paid
      order_date:
        is: this quarter

```

The number and the drill now match. This works well for two or three conditions.

## Option 2: Combine the conditions into a helper dimension

With many conditions, or when several measures share the same logic, the `filters` block gets long and the definitions can drift apart. Instead, put the whole rule in **one boolean dimension** :

```yaml
dimensions:
  is_completed_domestic_order:
    sql: |
      CASE
        WHEN ${order_status} = 'Delivered'
         AND ${is_international} = false
         AND ${order_date} >= DATE_TRUNC('quarter', CURRENT_DATE)
         AND ${payment_status} = 'Paid'
        THEN true
        ELSE false
      END

```

Then filter the measure on that single dimension:

```yaml
measures:
  completed_domestic_orders:
    aggregate_type: count
    filters:
      is_completed_domestic_order:
        is: true

```

Drilling into the measure now returns exact number of rows that make up the number, with **one filter instead of four**.

## So why use a helper dimension?

- **One place to edit.** Change the rule once and every measure that uses it updates.
- **Easy to reuse.** Add it to other measures (for example, a revenue measure with the same conditions) or use it as a dashboard filter.
- **Easy to audit.** Add the dimension to a table to see which rows are true or false, which is a quick way to check the logic.

Happy Modeling!
