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
- Open the saved insight Tasks created per day.
- Click the date range button, which reads Last 14 days.
- Choose Last 7 days.
- Click the comparison menu that reads No comparison.
- Choose Compare to previous period.
- Read the two task_created series on the chart.
Interactive 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
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.
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.
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.
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.
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.
Related guides
Continue with more step-by-step guides for getting work done.
How to create a trends insight in PostHogBuild a PostHog trends insight that charts the task_created event over the last 14 days, then name it and save it so you can reopen it later.
How to add an annotation in PostHogLearn how to add an annotation in PostHog: open Annotations, write a note such as a launch, and save it so the date is marked on your charts.
How to add an insight to a dashboard in PostHogAdd a saved PostHog insight to a dashboard in a few clicks: open it from All insights, choose Add to dashboard, and pin it to your overview.
How to create a cohort in PostHogCreate a dynamic cohort in PostHog that groups people by a person property such as plan, so you can reuse the group across insights and analysis.
How to create a dashboard in PostHogCreate a blank PostHog dashboard from scratch, give it a name, and find it in your dashboards list so you can start adding charts and insights.
How to create a dashboard from a template in PostHogCreate a PostHog dashboard from a ready-made template: open New dashboard, pick Product Analytics, choose your events, and click Create to finish.
Create interactive demos like this one — free, no coding required.
Start for free →