Revenue data: total/average not working

If revenue attributes is correct self.r.data1 =  , no data show of any
of the other objects. Error: Data has no attributes of data1. If is
self.data1 = in revenue, everything works, accept revenue total and
average.