5 Replies Latest reply: Mar 21, 2012 3:28 PM by Federico Levi RSS

    Calculate Percent

      Please to see the attachment. I show a list of days. Each day have a value, in front each value is the percent; The sum of all days is 2580 (Total_Value).






      The value for Monday (Mon) is 300, then the percent is 11,6%. (300 / 2580 * 100)



      The problem is: I have 2 List Box (one for Days and other for Values), if I select for example 'Mon', the Total isn't 2580, is 300, and the percent isn't 11,6%, is 100%. In the program I wrote the value 2580 in the script, but isn't the correct form.



      How I can select Days or Values but the the Total_Value is always the sum of ALL values?