i'm not sure why aggr is needed as opposed to Total <field>. But if you use aggr, it's only going to return 1 row for each field in your aggr.. i.e. 1 row for each Month, so that's probably your issue. Try adding NODISTINCT like: sum(aggr(NODISTINCT sum(X_Price),[Month]))