Forum Discussion

Vtomsons's avatar
Vtomsons
Helper I
4 years ago
Solved

Voicemails returned

  Hi,   I have a sample of the data I am working with. Result I am trying to produce is how many voicemails have been returned from a sales activity log with these columns (data set is thousands l...
  • lbendlin's avatar
    lbendlin
    4 years ago

    calculated column: 

    VM Ret = 
    if([Phone Results]="Voice Mail",
        var c = [Contact]
        var cs = [Case Subject]
        var sd = [Sent Date]
        var r = calculate(COUNTROWS('Table'),ALL('Table'),'Table'[Contact]=c,'Table'[Case Subject]=cs,'Table'[Message Type]="Incoming",'Table'[Sent Date]>sd)
        return if(r>0,"True","False"))

    see attached.