Hi Matt,
Thanks for the help - your calcs makes sense but do not work - the formula is correct and verified (see below what am i using) but the amount field do not get populated by the formula.
The way i apply the formula is on the Repeating Table by making a rule where the type (drop down) is equal to to 1 - expression used in the condition is self::my:group2/my:TypeOfIncrease = 1 then set the value of Amount field to the the below formula.
Formula - (number(position() = 1) * ../../my:OriginalAmount * (self::my:group2[1]/my:Percent)) + (number(position() != 1) * (preceding-sibling::my:group2[1]/my:Amount) * (self::my:group2[1]/my:Percent))
Is it not working because i'm applying them in the repeating table rules? i also tried applying formula in the Amount field 's default value (of the repeating table) - but that does not recognise preceding-sibling .
Where did i go wrong here?
Also, how would the amount field get poplauted - on the selection of the dropdown or when i insert another row? i would like to get the field poplated by the drop down selection or text entered in percent field in the same row.
Thanks Again