let me state a bit more...
say i have a database that has earthquakes and the number of killed and year
so maybe it looks like this
year, type, country, killed
1980 Earthquake Afghanistan 20
1981 Earthquake Afghanistan 2
1981 Earthquake Afghanistan 10
1981 Earthquake Afghanistan 2
1985 Earthquake Afghanistan 3
1985 Earthquake Japan 30
or something like that. I am creating a bar chart, based on year. So I need to sum up the total for each year, and then get the MAX total for the sums, to create the maximum Y axis number. Does that make more sense? I can't figure out how to get the max of the sum.