Math on Query Results

You can modify the result of a Keen Compute Query. Here are some examples that show how to manipulate the results of a Keen Compute query and how to do math on those query results.

The examples below are using the keen-analysis.js and keen-dataviz.js library.

Addition: Cumulative Values

Subtraction: Difference between two query results

Multiplication: Multiply by 2, or divide the result of your line graph by 2

Division: Divide the result of a metric by 100

Percentages: Percent of Total