Can you create an aggregate table in your data model:
aggr_object_date:
load
timestampDate
,OBJECT
,if((sum(a) / sum(b)) < 1000, 1, 0) as ThresholdFlag_Date_Object
resident <table>
group by
timestampDate
,OBJECT
;
create and join by composite key (timeStampDate & '-' & timestampDate)
or if you only need by date...
aggr_date:
timestampDate
,sum(MeasureFlag) as ThresholdFlag_Date
resident aggr_object_date
group by timestampDate
;
drop table aggr_object_date;
and front-end would just be: sum(ThresholdFlag_Date)