# How to refer to the computed value of a filter in a markdown viz/note

**URL:** <https://community.omni.co/t/how-to-refer-to-the-computed-value-of-a-filter-in-a-markdown-viz-note/412>\
**Category:** Visualizations\
**Created:** [November 4, 2025, 2:59pm UTC](https://community.omni.co/t/how-to-refer-to-the-computed-value-of-a-filter-in-a-markdown-viz-note/412 "2025-11-04T14:59:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![satya-marigold](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@satya-marigold](https://community.omni.co/u/satya-marigold)\
**Post date:** [November 4, 2025, 2:59pm UTC](https://community.omni.co/t/how-to-refer-to-the-computed-value-of-a-filter-in-a-markdown-viz-note/412/1 "2025-11-04T14:59:35Z")

</div>

So Connor has an example here ([How do I reference a filter value? (Filters as parameters) - Modeling - Omni Community](https://community.omni.co/t/how-do-i-reference-a-filter-value-filters-as-parameters/74)) where you can refer to the filter’s value. But for dates - if you use the filter as past 1 complete month - I would like it to show the start date - end date or do something

---

<div class="post-metadata">

**Author:** ![colin](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.omni.co/colin/32/112_2.png) [@colin](https://community.omni.co/u/colin)\
**Post date:** [November 4, 2025, 3:20pm UTC](https://community.omni.co/t/how-to-refer-to-the-computed-value-of-a-filter-in-a-markdown-viz-note/412/2 "2025-11-04T15:20:10Z")

</div>

If you type in {{ inspect }} you can see the whole query payload (see below).

For filters, we don’t pass start / end, but as a workaround you can either add and hide a measure with the min and max and compute off of that, or you could go the much more involved route of using templated filters.

Here’s a mini pseudo model for the templated example:

 ![Screenshot 2025-11-04 at 7.19.52 AM](https://canada1.discourse-cdn.com/flex004/uploads/omni/original/1X/be36f46df4c06841fd3ede97c08336000bc83c77.png)

```yaml
schema: public
sql: |-
SELECT *
FROM users
WHERE 1=1
AND created_at >= {{filters.users.test.range_start}}
AND created_at < {{filters.users.test.range_end}}

dimensions:
test_start:
sql: “{{ filters.users.test.range_start }}”

test_end:
sql: “{{ filters.users.test.range_end }}”

measures:
count:
format: NUMBER
aggregate_type: count

filters:
test:
type: timestamp

```
