Forum Discussion

albertoderossi's avatar
albertoderossi
Frequent Visitor
3 years ago
Solved

Calculate measure - count values in same table considering differente categories

I have data from lost and incoming calls and I have to count the lost calls only for number tha don't have incoming calls. If a call from a number is lost, but afterwards is answered (Incoming), that lost call doesn't have to be count. Like this:

All the lost calls from numbers never answered have to be count. But those the lost calls in red square doesn't have to be count because that number was answered some time after. 


any hint would be veru apreciated

 

Thanks in advance

 

 

 

 

 


Alberto

  • Hi albertoderossi 

    please try

    =
    SUMX (
    VALUES ( 'Table'[TESDE] ),
    IF ( CALCULATE ( SELECTEDVALUE ( 'Table'[TIPO DE LLAMADA] ) ) = "Lost", 1 )
    )

2 Replies

  • tamerj1's avatar
    tamerj1
    Community Champion

    Hi albertoderossi 

    please try

    =
    SUMX (
    VALUES ( 'Table'[TESDE] ),
    IF ( CALCULATE ( SELECTEDVALUE ( 'Table'[TIPO DE LLAMADA] ) ) = "Lost", 1 )
    )