How to compare time periods in PostHog

Compare two periods in PostHog: set Last 7 days on a saved insight, then use Compare to previous period to see both series on one chart.

Quick answer

Open the saved insight Tasks created per day, set the date range to Last 7 days, then open the comparison menu, which reads No comparison, and choose Compare to previous period. PostHog then draws the current period and the one before it as two task_created series on the same chart.

Steps at a glance

  1. Open the saved insight Tasks created per day.
  2. Click the date range button, which reads Last 14 days.
  3. Choose Last 7 days.
  4. Click the comparison menu that reads No comparison.
  5. Choose Compare to previous period.
  6. Read the two task_created series on the chart.

Interactive demo

Loading demo…

Summary

PostHog can overlay the period before your chosen date range on the same trend chart. This shows whether a metric is rising or falling without exporting data or building a second insight.

Step-by-step guide

  1. Step 1

    Open the date range

    With the Tasks created per day insight open, click the date range button, which reads Last 14 days. A menu of ranges opens below it.

  2. Step 2

    Choose Last 7 days

    Select Last 7 days from the list. The chart redraws for the shorter range. Wait until the chart finishes refreshing before the next step.

  3. Step 3

    Open the comparison menu

    Click the comparison button, which reads No comparison, next to the day grouping. A small menu opens with the comparison options.

  4. Step 4

    Compare to the previous period

    Click Compare to previous period in the menu. The button label changes to Previous period and the chart reloads.

  5. Step 5

    Read both series

    When the refresh finishes, the chart shows two task_created series, one for the current seven days and one for the seven days before. The button now reads Previous period.

Why this matters

You see that task creation looks healthy this week and need to know whether it is actually better than last week. Comparing periods on the chart answers that in one click, so you can report a real change instead of a guess.

Frequently asked questions

  • Does the comparison change the saved insight?

    In this capture the comparison was applied from the insight view. Check the insight before you leave if you want to keep its original settings.

  • What does the comparison menu offer besides the previous period?

    The menu showed No comparison between periods, Compare to previous period, and a Compare to option with a number and a unit such as months earlier.

Create interactive demos like this one — free, no coding required.

Start for free →