PostHog / posthog

🦔 PostHog provides open-source web & product analytics, session recording, feature flagging and A/B testing that you can self-host. Get started - free.
https://posthog.com
Other
21.94k stars 1.32k forks source link

Group data by quarter as well as month #9715

Open pauldambra opened 2 years ago

pauldambra commented 2 years ago

Is your feature request related to a problem?

https://posthogusers.slack.com/archives/C01GLBKHKQT/p1652185607954579

In this community slack message a user asked if it was possible to group by quarter instead of month

Screenshot 2022-05-10 at 13 44 14

Describe the solution you'd like

Trends, stickiness, and lifecycle insights all allow grouping by interval (hour, day, week, or month). Add grouping by quarter

additional context

related ticket: https://posthoghelp.zendesk.com/agent/tickets/5110

Thank you for your feature request – we love each and every one!

pauldambra commented 2 years ago

cc @clarkus

clarkus commented 2 years ago

Related https://github.com/PostHog/product-internal/pull/305

clarkus commented 2 years ago

I think it makes sense to include a quarterly option here in addition to the other options shown. I don't want to drop months because those are generally more applicable than quarters.

Screen Shot 2022-05-10 at 2 41 28 PM
MarconLP commented 1 year ago

additionally the grouping option "two weeks" would be useful: https://posthoghelp.zendesk.com/agent/tickets/5110

maxprilutskiy commented 1 year ago

Having the option to group biweekly would be just amazing!

vrcprl commented 1 year ago

The "two weeks" option sounds fantastic! In a perfect situation, it would be really nice to have an extra dropdown where we can pick a number. Then, we could keep the dropdown for the time period, and choose things like '11 days' or '3 weeks'. That would be just what we need!

MarconLP commented 11 months ago

Our HogQL feature actually does a really good job of handling the sort of breakdowns. Checkout this short tutorial on how to do it! Note: You might need to wrap the entire HogQL query in toString(). Additionally this can count unique users multiple times if a higher frequency than month is being used.

MarconLP commented 11 months ago

+1 https://posthoghelp.zendesk.com/agent/tickets/8254 group by year

abigailbramble commented 2 weeks ago

+1 group by 90 days https://posthoghelp.zendesk.com/agent/tickets/19809