Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions dbt-bigquery/models/dbt_orders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ models:
else 'out of range'
end
order_date_custom_period:
description: Date period bucket based on custom Start date and End date parameters
description: Date period bucket based on custom Start date and End date
parameters
type: string
sql: |
case
Expand Down Expand Up @@ -147,7 +148,7 @@ models:
when date(${order_date_day}) between date_sub(${lightdash.parameters.dbt_orders.custom_range_start}, interval 1 year)
and date_sub(${lightdash.parameters.dbt_orders.custom_range_end}, interval 1 year)
then 'previous year'

else 'out of range'
end
- name: partner_id
Expand Down Expand Up @@ -259,6 +260,11 @@ models:
label: 'Total unique users'
description: 'Counts the number of unique users (customers) with orders based on
their User ID.'
user_id_count_of_users:
label: count of users
description: "Count distinct of User id on the table Orders "
type: count_distinct
filters: []
dimension:
type: string
- name: email
Expand Down