Average & Sum in table, API  w/filters in map