Skip to content

Commit

Permalink
fix: count distince videos
Browse files Browse the repository at this point in the history
  • Loading branch information
saraburns1 committed Nov 21, 2024
1 parent d735fc4 commit 5b6bb66
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description: null
params:
adhoc_filters: []
all_columns: []
annotation_layers: []
color_pn: true
column_config:
rewatched_percent:
Expand Down Expand Up @@ -41,15 +42,14 @@ query_context:
form_data:
adhoc_filters: []
all_columns: []
annotation_layers: []
color_pn: true
column_config:
rewatched_percent:
d3NumberFormat: ',.1%'
watched_percent:
d3NumberFormat: ',.1%'
conditional_formatting: []
dashboards:
- 241
datasource: 161__table
extra_form_data: {}
force: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description: null
params:
adhoc_filters: []
all_columns: []
annotation_layers: []
color_pn: true
column_config:
rewatched_percent:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ columns:
is_active: true
is_dttm: false
python_date_format: null
type: Decimal(38, 2)
type: Decimal(9, 2)
verbose_name: Rewatched Time
- advanced_data_type: null
column_name: watched_time
Expand All @@ -24,7 +24,7 @@ columns:
is_active: true
is_dttm: false
python_date_format: null
type: Decimal(38, 2)
type: Decimal(9, 2)
verbose_name: Watched Time
- advanced_data_type: null
column_name: course_name
Expand Down Expand Up @@ -111,7 +111,7 @@ columns:
type: String
verbose_name: Org
- advanced_data_type: null
column_name: video_count_watched
column_name: object_id
description: null
expression: null
extra: {}
Expand All @@ -120,8 +120,8 @@ columns:
is_active: true
is_dttm: false
python_date_format: null
type: UInt64
verbose_name: Video Count Watched
type: String
verbose_name: Object Id
database_uuid: 21174b6c-4d40-4958-8161-d6c3cf5e77b6
default_endpoint: null
description: null
Expand All @@ -140,6 +140,16 @@ metrics:
metric_type: null
verbose_name: '% Video Seconds Rewatched'
warning_text: null
- currency: null
d3format: null
description: null
expression: count(distinct object_id)
extra:
warning_markdown: ''
metric_name: num_videos_watched
metric_type: null
verbose_name: Number of Videos Watched
warning_text: null
- currency: null
d3format: null
description: null
Expand All @@ -160,15 +170,6 @@ metrics:
metric_type: null
verbose_name: Avg Video Length (seconds)
warning_text: null
- currency: null
d3format: null
description: null
expression: sum(video_count_watched)
extra: {}
metric_name: num_videos_watched
metric_type: null
verbose_name: Number of Videos Watched
warning_text: null
- currency: null
d3format: null
description: null
Expand Down

0 comments on commit 5b6bb66

Please sign in to comment.