add idi to analytic sums