I am building a query for survey data and I want to assign a numeric value to the answers of the survey questions.
The key is that the same answers indicate different amounts of "points" depending on the question. In other words, Yes might =1 sometimes but not others.
For example:
Question 1: Are you satisfied with your life? Yes= 1pt, More or Less=1pt, No=0 pts
Question 2: Do you feel full of energy? No=1 pt, More or Less=0pts Yes= 0 pts
I wrote in the SWITCH function originally (example below)
SWITCH([Q1]=Yes,1,[Q1]="More or Less",1,[Q1]=No,0)
But alas, it is working for some columns and not others. In expression column I wrote in the proper point system for the corresponding question, but still no luck. I also tried the IIF function which also didn't work.
Is there an alternative way to accomplish this? Is my expression incorrect?