Hi JimBizServ,
Here is my data structure:

And we can using following formula to get the last value of field2.
../my:group1/my:group2[count(../my:group2)]/my:field2
You can replace the group name and field name with yours. Then sum of all last values.
Thanks & Regards,
Emir
Emir Liu
TechNet Community Support
