Skip to main content

Dataset properties

note

Metriql will ignore the dbt resources that doesn't have meta.metriql property.

models/schema.yml
models: # can be seeds, sources, and metrics as well.
- name: customers
description: List of customers
meta:
metriql:
label: Customers
hidden: false
total_rows:
filters <filters>
// filtered measure
full_location:
column | sql <reference>
type: string
category User Segments
user_id: id
event_timestamp: occurred_at
events:
to: ref('user_id')
total_customers:
measures: ['total_rows']
dimensions: ['full_location']
- {dimension: 'is_active', value: true}
columns:
country:
description: The country the user signed up from
meta:
metriql.dimension:
type string
label User Country
category Location
hidden false
primary false
name location_country
created_at:
meta:
metriql.dimension:
type: timestamp
timeframes [day, week, month, year] # only available for timestamp columns
total_sales:
meta:
metriql.measure:

label:#

The value will be shown in the user interface. If the label is not set, the default label is the name of the model.

label: Facebook Ads

hidden:#

If the value is true, the model will not show up in the user interface.

hidden: false