Skip to main content
The table includes the metric for each cohort over time as well as the size of each cohort.

Setup

To build this chart you will need to structure your query with the cohorts as the rows and the time passed as the pivot. A calculation is used to pull the cohort size out of the pivot. Additional calculations are necessary to figure out how to color each cell. We’ll also need the column totals enabled. The following table explains each field used in the example, including the calculation formulas. Don’t forget to enable the column totals and adjust the total calculation as follows:
  • column D - Sales - to be maximum
  • column E - Sales (row max) - to be maximum
  • column F - Sales (row non-zero min) - to be minimum

Example code