Vars to cases & retain variable/value labels Tableau setup - restructure data for Tableau, flip data
问题 I am flipping my survey data so I can use it in Tableau. Here is example data in SPSS (keep in mind that each variable has value & variable labels). ID age rate1 rate2 rate3 mr_1 mr_2 mr_3 ... 1 35 8 3 2 1 2 2 40 2 2 3 2 3 41 6 3 5 2 3 4 43 3 3 1 Where rate1-3 are 3 rating questions. Mr_1 to mr_3 is a multiple response check all the apply question (What is your ethnicity? 1=White 2=Hispanic, 3=Black) I flip the data using this: VARSTOCASES /MAKE answer FROM age rate1 rate2 rate3 mr_1 mr_2 mr