Hi robertw937098 ,The instance variable value is getting overridden in
your script. It will always contain the average difference of the last
customer.To calculate the average for each row, you can use the
Enrichement activity using below steps.1. In "Add additional data", add
a new output column for average.2. Go to "Advanced Selections", then
"Expression"3. You will see the list of all the available functions.4.
You can use sum and calculate the average.Thanks,Nainy Jain