I have two columns from a likert question on a survey response:
Answer_Key: Semi-colon delimited list of possible answers
Answer: Numeric index for the selected answer (starts at 0)
Example (desired results):
Answer_Key: Strongly Agree;Agree;No Opinion;Disagree;Strongly Disagree
Answer: 0
Calculated_Text_Answer: Strongly Agree
Answer_Key: Yes;No;Maybe;N/A
Answer: 3
Calculated_Text_Answer: N/A
In a programming language, I'd split the Answer_Key into an array and index into the array using the Answer to get my Calculated_Text_Answer. How could I accomplish this in Alteryx?