Forum Discussion

jbernard82's avatar
jbernard82
New Member
10 years ago
Solved

Help with measure

I've got a table full of call records and I am creating a matrix to display total incoming calls and outgoing calls for each extension selected in the slicer. I wrote the following or the measure thi...
  • konstantinos's avatar
    konstantinos
    10 years ago

    My suggestion that is what I would do ( although don't know your other visuals ) is to create an active relantionship Extension -  ToNumber  and inactive relantionship with Extension - FromNumber..The measures can be 

     

    Calls in = COUNTROWS( Calls )
    
    Calls Out =
    CALCULATE (
        COUNTROWS ( Calls );
        USERELATIONSHIP ( Extensions[Extension]; Calls[FromNumber] )
    )

    This way you won't have to change your visual or your model.