Skip to content

Commit

Permalink
add fields requested by global team (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-springer authored Nov 22, 2024
2 parents 079fa7d + 355cda0 commit 3e5bf9d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ course_structure as (
level_type,
unit as unit_name,
stage_id as lesson_id,
stage_name as lesson_name
stage_name as lesson_name,
published_state
from {{ ref('dim_course_structure') }}

where participant_audience = 'student'
Expand Down Expand Up @@ -78,6 +79,7 @@ student_activity as (
cs.unit_name,
cs.lesson_id,
cs.lesson_name,
cs.published_state,

-- aggs
ul.total_attempts,
Expand Down Expand Up @@ -149,6 +151,7 @@ schools as (
users as (
select
user_id,
us_intl,
is_international,
country,
user_type
Expand Down Expand Up @@ -241,13 +244,15 @@ final as (
sta.level_id,
sta.level_name,
sta.level_type,
sta.published_state,

-- activity metrics
sta.total_attempts,
sta.best_result,
sta.time_spent_minutes,

-- User characteristics
usr.us_intl,
usr.is_international,
usr.country,
usr.user_type,
Expand Down

0 comments on commit 3e5bf9d

Please sign in to comment.