Hi,
Is there a way of doing running totals within the XamCalculationManager/XamDataGrid setup?
I'm open to any alternate strategies that anyone can suggest! :-)
e.g.:
Sample project attached (see field MyCalc2).
Cheers,
Steve
Hi Steve,
Yes you can implement running totals easily since the formula supports relative references. Here is an example of a running total for 'Prop1':
Formula="IF( IsError( [RunningTotal(-1)]), [//StartingValue], [RunningTotal(-1)] + [Prop1])"
Note: that the 'IF' function takes 3 parameters:
Also be aware that there is a property exposed off FieldLayoutSettings named CalculationScope that governs which record references are returned when using these relative indices. The possible values are:
I hope this helps.
Thanks Joe! Great help.
Is there somewhere this is well documented? I would have struggled to find all of this myself and I'm sure I'm missing out on some really rich functionality.