How can I sum value across entries assigned to a category for a given year across multiple years?
{% amount = craft.entries
   .postDate(['and', '&gt;=' someDate, '&lt;=' ~ someOtherTime])
   .select('dollar')
   .relatedTo(category)
   .sum()
%}


Loop through all years and sum the value