locked
Consecutively count how many times a certain condition has been met in stream analytics RRS feed

  • Question

  • I have a real time stream coming through in stream analytics at a 5 minute interval. For example;

    Time Value
    8:00 30
    8:05 31
    8:10 33
    8:15 20
    8:20 21
    8:25 40
    8:30 40
    8:35 40
    8:40 40

    One of the requirements I need to implement is to consecutively count how many times a certain condition has been met. In the example above, if my condition is when the value equals 40, I want to count how many times this has happened consecutively, which should return 4 because the value 40 has occurred 4 times in a row.

    Is this possible to do within Stream Analytics?

    Thanks

    Friday, July 27, 2018 5:24 AM

All replies

  • Hi Nghia,

       Can you please provide us with what have you tried so far and what error are you facing?

    Friday, July 27, 2018 6:53 PM