Long Inactivity
The mart_course_offering.long_inactivity mart surfaces students actively enrolled in courses in the current term with extended time without activity in the LMS. The mart_course_section.long_inactivity mart also includes this information, but at the course section level.
Extended time without activity is defined as either:
A person is actively enrolled in a course, but no Caliper events have been generated.
A person is actively enrolled in a course, but the latest Caliper event is at least 5-days in the past.
BQ Prod Dataset Location
mart_course_offering
mart_course_section
Interactive Mart Dependency Diagram
The following visualization shows the construction of this data mart defined in the UDP marts repository. More information on the repository and diagram can be found on this marts page.
Schema
Mart/Course_offering/long_inactivity
udp_course_offering_id
INTEGER
The UDP ID of the Course offering.
lms_course_offering_id
STRING
The LMS ID of the Course offering.
udp_person_id
INTEGER
The UDP ID of the person.
lms_person_id
STRING
The LMS ID of the person.
academic_organization_array
ARRAY<STRING>
Array of string values for the academic organization(s)
academic_organization_display
STRING
The name of the academic organization(s) as a string with comma separation.
academic_term_name
STRING
The name of the academic term, i.e. Fall 2020.
term_begin_date
DATE
The start date for the academic term.
term_end_date
DATE
The end date for the academic term.
course_offering_title
STRING
The title of the Course offering, i.e. Linear Algebra.
course_start_date
DATE
The start date of the Course offering.
course_end_date
DATE
The end date of the Course offering.
instructor_display
STRING
An array of all the instructors' names for a Course offering written as a string.
instructor_name_array
ARRAY<STRING>
An array of all instructors’ names for a Course offering.
instructor_email_address_array
ARRAY<STRING>
An array of all instructors' emails for a Course offering
instructor_email_address_display
STRING
An array of all instructors' emails for a Course offering written as a string.
person_name
STRING
The name of the person.
last_activity
DATETIME
The time of the person’s last activity in the Course offering.
has_no_activity
INTEGER
Indicates if the user has no recorded activity in the course. 1 = no activity; 0 = any activity
days_since_last_activity
INTEGER
The number of days between the last recorded activity and the current datetime.
is_5_days
INTEGER
Indicates if the days since last activity is greater than or equal to 5 days. 1 = 5 days or greater. 0 = otherwise.
is_7_days
INTEGER
Indicates if the days since last activity is greater than or equal to 7 days. 1 = 7 days or greater. 0 = otherwise.
is_10_days
INTEGER
Indicates if the days since last activity is greater than or equal to 10 days. 1 = 10 days or greater. 0 = otherwise.
is_14_days
INTEGER
Indicates if the days since last activity is greater than or equal to 14 days. 1 = 14 days or greater. 0 = otherwise.
Mart/Course_section/last_activity
The course section mart includes all the fields found in the course offering mart, as well as two more fields, which are presented in the table below.
udp_course_section_id
INTEGER
The UDP ID of the Course section.
lms_course_section_id
STRING
The LMS ID of the Course section.
Fields
last_activity
This field is pulled from the mart_course_offering.last_activity datamart. Per person, per course we pull the most recent event timestamp, regardless of event type. This signifies the latest activity of any type for a student in a course.
has_no_activity
For instances of active enrollment in the current term, an absence of Caliper events is checked here. If no Caliper events generated by the enrolled student can be found, we set this flag to 1. Otherwise, 0.
days_since_last_activity
This is calculated using the DATE_DIFF function, and an integer representing the number of days between the current date and the last_activity for the person-course_offering/section:
COALESCE(DATE_DIFF(current_datetime(),last_activity, DAY), null)
A COALESCE to null is used for instances where has_no_activity applies.
is_X_days
These fields also adhere to a DATE_DIFF calculation with the current date. For the is_5_days field, the following logic is applied:
CASE
WHEN last_activity is null then null
WHEN DATE_DIFF(current_datetime(),last_activity, DAY) >= 5 then 1
ELSE 0
END AS is_5_days
Again, we respect nulls first in cases of no activity. The only change for the 7, 10, and 14-day thresholds is in the >= check.
Criteria for Actively Enrolled in Current Term
For the active academic term, we look for all rows in the academic_term entity whose term_begin_date is before the current date and whose term_end_date is after the current date. We filter out all courses and terms with dates outside of these bounds or terms with null values for begin and/or end dates.
For the "actively enrolled" students, we look at the role_status and enrollment_status values in course_section_enrollment.
Excluded role_status values:
Dropped
Wait Listed
Not Enrolled
No Data
None
Completed
Excluded enrollment_status values:
Inactive
Not Enrolled
No Data
None
Completed
OR logic is used here; if either a role_status or enrollment_status in the exclusion lists above surfaces for a student, that enrollment is filtered out of the final results.
Tableau Template Workbook
As a starting point for visualization for this data mart, Unizin has created a Tableau template workbook available for download here:
Connecting to Data
The default data connection in the workbook is to Unizin's synthetic data. After downloading the workbook, the first step will be to transfer the connection to your own production UDP data. Here is a guide document to help with this process; Tableau also has a published doc for replacing data sources. For any issues connecting to source data, please contact [email protected].
Tableau Dashboard Filters
The following fields are used as filters in the Tableau Workbook:
Academic Organization - The academic department name
Instructor Display - The list of names of the course's instructors.
Course Offering Title - The title of the course offering.
UDP Course Offering ID - The UDP ID of the course offering.
Academic Term - The academic term of the course; the default selection is the current term.
These filters are in scope for all visuals in the dashboard.
Tableau Visualizations


The metric cards show a quick summary of student activity in the course. They include the total number of enrolled, active, and inactive students. You can also see the average number of days students were active or inactive, and how many hours they spent in the course. This helps spot long periods of inactivity and low engagement.

The Long Inactivity by Day of Week and Hour table highlights trends in long inactivity over time, showing when students tend to disengage. It includes breakdowns by day of the week and hour of the day.

This chart displays the percentage of total long inactivity occurrences for each day of the week.

This chart shows how inactivity is distributed among students in courses. The percentage of students who have been inactive in one or more courses is displayed here.

The pie chart shows the distribution of students based on how long they have remained inactive. It helps track inactivity trends over time.

The Long Inactivity Table lists key details to help identify disengaged students. It includes the academic organization, course offering ID, and student names, along with the timestamp of their last activity. It also shows the number of events, assignments interacted with, and days since last activity.
NOTE: For production use, please make sure it's appropriate for users to have visibility into student names. If names are too sensitive, please drop this column from the visual before sharing to users

The Course Level Inactivity Summary table shows long inactivity trends across courses. It includes the course IDs, course offering titles, instructor names, and total enrollments. It also highlights how many students have been inactive for 5 + days, 10+ days, and more than 10 days, helping spot courses with high inactivity.
Last updated