Tutorvo

Capstone: Sessionisation – Gaps, New-Session Flags and Session Numbers

Lesson 8 of 818 minLab

This lesson is part of the course

In this lesson

You turn a raw click log into sessions: the minutes since each user's previous event (LAG), a new-session flag when the gap is over 30 minutes, a running session number per user (a running SUM of the flags) and the number of sessions per user.

Buy the course once for $9.99 to unlock every lesson and lab, the final exam and the certificate – lifetime access, no subscription.

Lessons in this course

  1. PARTITION BY vs GROUP BY: Group Totals Next to Every RowLab15 min Locked
  2. Running Totals: Cumulative Sums per Customer, Ties & the Running ShareLab16 min Locked
  3. ROW_NUMBER, RANK & DENSE_RANK per Group: Ties and Top-nLab17 min Locked
  4. LAG & LEAD: Previous and Next Order, Gaps and ChangesLab17 min Locked
  5. Moving Averages & Rolling Windows: Date Ranges vs Row CountsLab16 min Locked
  6. NTILE & PERCENT_RANK: Quartiles, Percentiles and Halves per GroupLab16 min Locked
  7. FIRST_VALUE & LAST_VALUE: First Orders, Cohort Labels and the Latest RowLab16 min Locked
  8. Capstone: Sessionisation – Gaps, New-Session Flags and Session NumbersLab18 min Locked