We have updated Flexmonster Software License Agreement, effective as of September 30, 2025 (list of changes)

Running Totals For Calculated Values

Answered
Chris Callahan asked on October 21, 2025

Hello,

I am using a calculated metric to output the result of an If expression, which outputs a '1' per row when the condition is met and a null value when it is not met. The If expression is using values from a separate external report that is then populating them into the Flexmonster instance. However, the running total/aggregation for the '1' values do not add up to a correct subtotal across the rows inside the calculated metric column, and instead convey the same '1' value for any primary rows containing sub-rows with a '1'.

  • In screenshot 1- One of the areas where the total is expected has a callout next to it where I state the subtotal should be 5 instead of 1.
  • In screenshot 2- Displays the formula I'm using to produce these values. I've also tried to use different distinctcount, count, runningtotals functions to achieve the desired result, but to no avail.
    • Formula: If((sum("CustomColumn26") /sum("CustomColumn27")*100)>3,1,"")
  • Note: Screenshots are from a test company and do not display any type of sensitive, real data.

Has anything changed in the last 3-4 years to support this or is there another workaround I can try? Will this be available in a future release.

Cited ticket with a similar question/request: https://www.flexmonster.com/question/running-totals-of-calculated-value/

Thanks for any insights you can provide!

2 answers

Public
Maksym Diachenko Maksym Diachenko Flexmonster October 22, 2025

Hello,

Thank you for reaching out to us.

We recommend using the individual property for the "< 3%" calculated measure. For your formula, it makes the calculation work per individual value (i.e., for each row or cell), and then the total is shown as the sum of all these particular results.

On the contrary, when individual: true is not set, the formula behaves differently for totals. It performs aggregation based on already aggregated values. In your case, it uses the sums of "CustomColumn26" and "CustomColumn27", which leads to a different result (always "1" or empty).

We have prepared an example showing a similar formula illustrating this approach: https://jsfiddle.net/flexmonster/cyvoe982/
Note that the individual property is only available for CSV and JSON data sources.

Please let us know if the suggested approach works for you.

Best regards,
Maksym

Public
Maksym Diachenko Maksym Diachenko Flexmonster 13 hours ago

Hello,

Hope you are doing well.
We are wondering if you tried the suggested solution by enabling the individual property to achieve the necessary results for calculated values.
Looking forward to hearing your feedback.

Best regards,
Maksym

Please sign in or register to submit your answer