Forum Discussion
Bootkie2
6 years agoFrequent Visitor
Help with This &&& || Statement
I have a really dumb question. I have a table with a UserId a Question Id and an Answer. I'm trying to call out user Ids who answered "No" to q_1 But they must have said "Yes" in either q_2, q_3, or...
- 6 years ago
Create a table
TableU = INTERSECT( SELECTCOLUMNS(FILTER(TableD, TableD[Qid] = "q_1" && TableD[Answer] = "No"),"user", TableD[userID]), SELECTCOLUMNS(FILTER(TableD, TableD[Qid] in {"q_2", "q_3", "q_4"} && TableD[Answer] = "Yes"),"user", TableD[userID])) - 6 years ago
Bootkie2
6 years agoFrequent Visitor
Thanks so much. All of these solutions worked well but the INTERSECT was the easiest to achieve what I was trying to do. I wasn't aware of of that code until now. Very useful. Thanks again everyone.