Runtime monitoring

H!

I want to monitor how much time a property has an certain value. visualised percentage. of the selected time range:

so i would like to do the following:
at Time_minute_1 i have Value_x : 0
at Time_minute_2 i have Value_x: 1
at Time_minute_3 i have Value_x: 0

when i select a time range from Time_minute_1 until Time_minute_3
i want to see a (bar or gauge) of 50 (50% of the time selected the value_x was ‘1’

when i selet a tame range from Time_minute_0 until Time_minute 3
i want to see a (bar or gauge) of 25 (25% of the time selected the value_x was ‘1’

Is there a way to do this?

Regards,
Thomas

Try to use average of value_x with the min interval 1m, then visualize it using Bar Graph.