posthog icon indicating copy to clipboard operation
posthog copied to clipboard

Support multiple formulas in Trends

Open samwinslow opened this issue 4 years ago • 7 comments

From a user, it would be nice to have the ability to:

  1. Retain the formula and original metrics in the same graph. Adding a formula should not "reduce" the series down to the formula line but rather show it alongside. This may not be what everyone expects so the option to toggle may be important.
  2. Support more than 1 formula on a graph.

Describe the solution you'd like

  • Formulas displayed as discrete graph series items (i.e. you'd press Add Graph Series to create).
  • By default, adding formula(s) would dim / reduce opacity of the source series but not remove them. User can always hit the ☑️ checkbox to remove unwanted series.

Describe alternatives you've considered

Additional context

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

samwinslow avatar Jul 19 '21 12:07 samwinslow

+1 from ZEN-3896

Twixes avatar Jun 29 '23 10:06 Twixes

From what I've seen so far, this is PostHog's biggest shortcoming compared to Mixpanel. (But don't get me wrong, PostHog is impressive!)

Is there any workaround?

ramnes avatar Nov 15 '23 14:11 ramnes

+1

Gursukh avatar Sep 26 '24 13:09 Gursukh

This would be great! +1

nicollegah avatar Oct 08 '24 06:10 nicollegah

+1

natasha-landa avatar Oct 08 '24 17:10 natasha-landa

I think a better solution would be to support a formula per graph variable along side the current aggregate formula. A concrete use case for example is I want to compute AI token costs. Each model has its own pricing and so i want to use a formula to support computing the cost on each model as a graph variable so that way I can see a breakdown of the costs per model. Right now i have to create a unique insight per model. I can get a total costs as is. Or i could go to SQL. I would prefer to use the trends UI though

kdawgwilk avatar Oct 16 '24 21:10 kdawgwilk

+1

JorienDialog avatar Oct 17 '24 07:10 JorienDialog

We were able to work around it while still using the Trends UI by aggregating events by HogQL expression. If the formula uses data from multiple events, "All events" can be selected as series.

natasha-landa avatar Oct 22 '24 16:10 natasha-landa

+1 🥲

Kiopsy avatar Oct 25 '24 16:10 Kiopsy

+1 🙏

reddavis avatar Nov 11 '24 22:11 reddavis

+1

rajephon avatar Nov 13 '24 07:11 rajephon

+1

baysaageorg avatar Nov 28 '24 07:11 baysaageorg

+1

thisismikovic avatar Dec 16 '24 07:12 thisismikovic

+1

Raj1v avatar Dec 29 '24 19:12 Raj1v

+1 would be nice if you could add formula as a graph series

SofieKatan avatar Jan 07 '25 17:01 SofieKatan

+1 - this is a major issue for us as well and we would expect it given that Amplitude, Mixpanel, and others all have clear ways to accomplish this goal in their charts.

cojo avatar Jan 08 '25 17:01 cojo

+1

vignesarul avatar Jan 15 '25 08:01 vignesarul

+1

Edofo avatar Jan 21 '25 17:01 Edofo

+1

Fralleee avatar Feb 10 '25 17:02 Fralleee

Good news folks, we now support multiple formulas, so go wild! :)

andyvan-ph avatar Feb 25 '25 18:02 andyvan-ph

@andyvan-ph If you give a ~~mouse~~ hedgehog a cookie... 😅 I would love to be able to name each formula output

kdawgwilk avatar Feb 25 '25 22:02 kdawgwilk