Can you explain a bit more what you're trying to achieve? Looking at the description of the aggr() function are you sure it is meant for use in the load statement? It looks like it is more appropriate as a chart function. An example qvw will be really helpful. Also, have you included "group by" in the load statement? If you're using SUM() it will normally be required.