Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Filter survey records where both Question 1 & Question 2 have a score of 10

Hi everyone   I am in dire need of some help around calculating the total satisfaction score based on two conditions meeting a certain criteria where two questions in a survey (Q3 & Q4) need to hav...
  • lbendlin's avatar
    lbendlin
    6 years ago

    Here's a measure that works for both cases.

     

    M1 = 
    var q3 = SELECTCOLUMNS(filter('Survey Results','Survey Results'[Question Score]=10 && 'Survey Results'[Question no]=3),"InteractionId",'Survey Results'[InteractionId])
    var q4 = SELECTCOLUMNS(filter('Survey Results','Survey Results'[Question Score]=10 && 'Survey Results'[Question no]=4),"InteractionId",'Survey Results'[InteractionId])
    var i = NATURALINNERJOIN(q3,q4)
    return COUNTROWS(i)