Forum Discussion

LeeFord's avatar
LeeFord
Regular Visitor
8 years ago
Solved

Count values between two time stamps

Hi,   I effectively have phone call records that have a start and end time on them. Is there anyway to calculate how many calls were active at the same time along a line chart? (If I select the sta...
  • v-yuta-msft's avatar
    8 years ago

    Hi LeeFord,

     

    You can create a measure and using DAX formula below:

    CALCULATE (
        COUNT ( table[calls] ),
        FILTER (
            table,
            table[time] <= MAX ( table[time] )
                && table[time] >= MIN ( table[time] )
        )
    )

    Regards,

    Jimmy Tao