function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
IT Admin DeloitteIT Admin Deloitte 

Cumulative sum in table's columns

Hi All,

as you can see in the image below, this columns make the sum in a cumulative way that I don't want. Every cell is the sum of what it contains plus the previous. For example: the fourth cell should contains 90, but is 0 + 210 + 4000 + 90 = 4300.
This is strange to me, because i've developed it as:
<td data-field="price"><div style="float:left;position: relative;top: 1px;font-weight: lighter;">K$</div><apex:outputText styleClass="valoreoutput" style="width: 79%;position: relative;top:1px"  value="{!cmpQ1[segment]['ActualsConv']}"  /></td>

User-added image 
Any idea?

Thankyou!
James LoghryJames Loghry
It sounds like the logic you use to cmpQ1 is incorrect.  It appears that you are double-adding the 'ActualsConv' value in the map.  I would check that logic first.