Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Count rows if between two time slots

Dear all,   I have the following issue which I think should be relatively easy to solve, but I have not found a solution yet. Currently I have below table in excel but I would like to get the same ...
  • v-yingjl's avatar
    v-yingjl
    5 years ago

    Hi Anonymous ,

    You can modify the formula like this:

    Column =
    VAR __Start = [Timestart]
    VAR __End = [Time + 10 Minutes]
    VAR _count =
        COUNTROWS (
            FILTER ( ALL ( 'table' ), [Timestamp] >= __Start && [Timestamp] <= __End )
        )
    RETURN
        IF ( ISBLANK ( _count ), 0, _count )
    

     

    Best Regards,
    Yingjie Li

    If this post helps then please consider Accept it as the solution to help the other members find it more quickly.