PostHog

Average session duration by project

SQL query for PostHog

Calculate the average session duration for each project.

SELECT project_id, AVG(duration) FROM sessions GROUP BY project_id

PostHog data model

PostHog
Table Projects

PostHog
Table Actions

PostHog
Table Alerts

PostHog
Table Annotations

PostHog
Table Cohorts

PostHog
Table Dashboards

PostHog
Table Events

PostHog
Table Experiments

PostHog
Table Groups Types

PostHog
Table Notebooks

PostHog
Table Persons

PostHog
Table Subscriptions

PostHog
Table Surveys

PostHog
Table Activity Log

PostHog
Table Session Values

SQL - Combine data

Magical SQL for PostHog with Peliqan.io

Explore data in a rich spreadsheet UI. Use Magical SQL to combine and transform data. SQL queries become new tables that can be shared with business users and used in any BI tool such as Microsoft Power BI, Tableau or Metabase.

Let AI do the work for you

Let AI do the work for you

Peliqan’s AI assistant helps you to write SQL queries to get to insights fast. Ask your question in plain English and immediately see the result in Peliqan’s rich spreadsheet viewer.

Peliqan Overview

Ready to get instant access to
all your company data ?