Hallo,
I am relatively new to Adobe LiveCycle Designer, i am trying to get the sum of a decimal field "Net Value" column, and outside the table in "Term of Payment" field i am doing some calculation where i am calculating the discount amount and the total amount that the user should pay.
![Bildschirmfoto 2022-11-15 um 15.51.57.png Bildschirmfoto 2022-11-15 um 15.51.57.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/50189i84D0DC81100E0E8C/image-size/medium/is-moderation-mode/true?v=v2&px=400)
![Bildschirmfoto 2022-11-15 um 15.48.40.png Bildschirmfoto 2022-11-15 um 15.48.40.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/50192i59A039D4C5956573/image-size/medium/is-moderation-mode/true?v=v2&px=400)
In this example i have 2 positions in the table, and in the initialize event of the "Net Value" subform, i am trying to sum the values of the "Net Value" column and assign it to a decimal field "decSkontoSum" in the same subform, but unfortunately it assign just the first position value of the table as shown in the first screenshot.
![Bildschirmfoto 2022-11-15 um 15.49.17.png Bildschirmfoto 2022-11-15 um 15.49.17.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/50190i96819382CB66FBC2/image-size/medium/is-moderation-mode/true?v=v2&px=400)
In the Initialize even of the "Term of Payment" field i am getting the value of the "decSkontoSum" and then do the calculations of the discount with it.
![Bildschirmfoto 2022-11-15 um 15.54.09.png Bildschirmfoto 2022-11-15 um 15.54.09.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/50194iB22B30D71AD4D919/image-size/medium/is-moderation-mode/true?v=v2&px=400)
How to get the sum of the "Net Value" column i this case the sum of the two positions ? i have tried to use Sum function in the "calculate" event of "decSkontoSum" field but unfortunately it did not work.