Forum Discussion

virus190's avatar
virus190
Icon for Helper II rankHelper II
5 years ago

How many calls at the same time?

Hello,

 

maybe someone can help, i would appreciate it.

 

I want to know how many calls were at the same time, i got this data from 1 day:

 

 

If i do this manually:

 

 

Is this even possible?

10 Replies

  • virus190 , Try a new column

    measure =
    var _1 = [Accepted]
    var _2 = [Hang up]
    return
    if(not(isblank(countx(filter(table, [Accepted] >= _1 && [Accepted] <= _2),[Call ID]))),"x", blank())

     

    or

     

    measure =
    var _1 = [Accepted]
    var _2 = [Hang up]
    var _3 = [Call ID]
    return
    if(not(isblank(countx(filter(table, [Accepted] >= _1 && [Accepted] <= _2 && [Call Id] <> _3),[Call ID]))),"x", blank())

    • virus190's avatar
      virus190
      Icon for Helper II rankHelper II

      Hello amitchandak ,

       

      this also works, so thank you for the quick solution, but it also only works with a few rows (look at my answer to Icey)

      Do you have a solution with a lot of rows?

  • Icey's avatar
    Icey
    Icon for Community Support rankCommunity Support

    Hi virus190 ,

     

    Try this:

    column =
    VAR _1 = [Accepted]
    VAR _2 = [Hang up]
    VAR t =
        ADDCOLUMNS (
            FILTER ( 'Table', 'Table'[CALL ID] < EARLIER ( 'Table'[CALL ID] ) ),
            "col",
                IF (
                     ( _1 <= [Accepted]
                        && _2 > [Accepted] )
                        || ( _1 >= [Accepted]
                        && _1 <= [Hang up] ),
                    1
                )
        )
    RETURN
        IF ( NOT ( ISBLANK ( COUNTROWS ( FILTER ( t, [col] = 1 ) ) ) ), "x" )
    

     

     

    Best regards

    Icey

     

    If this post helps, then consider Accepting it as the solution to help other members find it faster.

    • virus190's avatar
      virus190
      Icon for Helper II rankHelper II

      Hello Icey 

       

      it does work, but only with a few rows.

       

      I didnt mention that i have like 1 Mio+ rows and if i use this, it just loads forever.

      Maybe there is another way? Maybe with PowerQuery?

       

      Download PBIX File 

      • Icey's avatar
        Icey
        Icon for Community Support rankCommunity Support

        Hi virus190 ,

         

        I have no access to your shared file. Please share it publicly. 

        In addition, please remove sensitive information.

         

         

        Best Regards,

        Icey