Skip to content

Commit

Permalink
Tests for metrics in filters
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Mar 21, 2024
1 parent c6c0c79 commit f9aaec4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/functional/metrics/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@
metrics:
- average_tenure
expr: "average_tenure + 1"
- name: tenured_people
label: Tenured People
description: People who have been here more than 1 year
type: simple
type_params:
measure: people
filter: "{{ Metric('collective_tenure', ['id']) }} > 2"
"""

metricflow_time_spine_sql = """
Expand Down
1 change: 1 addition & 0 deletions tests/functional/saved_queries/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
where:
- "{{ Dimension('user__ds', 'DAY') }} <= now()"
- "{{ Dimension('user__ds', 'DAY') }} >= '2023-01-01'"
- "{{ Metric('txn_revenue', ['id']) }} > 1"
exports:
- name: my_export
config:
Expand Down

0 comments on commit f9aaec4

Please sign in to comment.