Calculations in chart editor

You can add new measures to the data source through calculations using standard functions. You can add calculations at the data source level or in the chart editor.

When adding calculations on the data source level please note:

  • Only simple arithmetic operations and parentheses can be used in formulas.
  • Calculations you add will be available for all charts built on this data source.
  • You cannot use other calculated measures or dimensions in formulas.
  • When building a graph, calculations are performed first, then one of the standard types of aggregation is applied:
    • sum
    • average
    • minimum
    • maximum
    • distinct count
    • median
  • Calculations are not available for Google Analytics, Google Adwords, and combined data sources.

To perform a calculation in the chart editor:

  1. Click the Add measure button in the bottom right of the chart editor page and then click Add calculation:

  1. Enter a name for the calculation.
  2. Start typing a formula in the Expression box to see the metrics that match. If the formula is entered correctly, a Calculation is valid note will appear at the bottom of the window.
  3. Click Done.

The newly built calculation will appear in the list of measures for this chart. To edit a calculation, select it and click Edit.

Was this article helpful?
Thank you!
Is there anything we can improve? Message
We’re sorry to hear that
Please explain why this article wasn’t helpful to you. Message
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.
Rate this page
Rate this page
Is there anything we can improve?

Don’t want to answer

Thank you for your feedback!
Last updated: October 12, 2021

Found a typo or other text error? Select the text and press Ctrl+Enter.

Report a problem
We always review our content. Your feedback helps us improve it.
Provide an email so we can follow up
Thank you for your feedback!