Formulas

Last updated:

|Edit this page|

Formulas are custom mathematical expressions that you can use to compare and combine the value of multiple series.

Formula map chart

To add a formula, click Enable formula mode. Then, within the input box, type out the expression you would like to evaluate.

This expression can contain any number of basic mathematical operators (+, -, *, /) along with variables (A, B, C, ...), which correspond to the series with that letter.

If you have two series A and B, then the formula A / B will plot the value of series A divided by the value of series B at each point in time.

You can add multiple formulas to your insight, each will be shown as a separate series.

Questions? Ask Max AI.

It's easier than reading through 698 pages of documentation

Community questions

Was this page useful?

Next article

Statistical analysis

When analyzing data, it's important to understand if your results are statistically significant. In other words, are the trends you're seeing real, or are they just due to random chance? PostHog helps you answer this question by providing confidence intervals for your trend lines. What are confidence intervals? A confidence interval is a range of values that likely contains the true value of a metric. A 95% confidence level means that if you were to run the same analysis again 100 times, 95 of…

Read next article