CountIf a tag is greater than zero between a date range


I have a data tag that is always on. I want to count the number of seconds that it is grater than zero over an established time range using custom properties. i have tried both system.tag.queryTag History and Calculation. These give me the number of seconds that it that is active. Its active as long as the process is running. any other thoughts?

below is what i have tried with all of the different aggregation modes available.



looked at it again and i did use the above correctly. Just looked weird. :slight_smile: