Forum

Conditional Mapping...
 
Notifications
Clear all

Conditional Mapping Survey

4 Posts
2 Users
0 Reactions
103 Views
(@lanser)
Posts: 61
Estimable Member
Topic starter
 

I have been given a large datset to sort out, consisting of 38 questions Q1-Q38 all with an answer of Strongly Disagree, Disagree, Not sure, Agree, Strongly Agree.

I need to convert all of the questions to numerical values 1-5 unfortunately some of the questions a negatively weighed eg for Q1 Disagree is 2 but for Q2 it could be 4.

I have a mapping table that has each Q number as either + or - and a second mapping table that has the answers listed 1-5 and 5-1.

How do I get a query to look at the data, see if a question is + or - and apply the relevent numerical score?

thanks
John

 
Posted : 10/01/2023 1:32 pm
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

Hi John,

I played around with your data a bit and believe the attached file now contains the basis for further analysis. See if you can follow the transformations I did.

First unpivot tblData, merge with tblLinks and expand. Finally, merge with the unpivoted tblWeights and expand.

Loaded the result to sheet tblData and created a straight-forward pivot table from it. See if this works for you. If not, come back here.

Riny

 
Posted : 11/01/2023 3:00 am
(@lanser)
Posts: 61
Estimable Member
Topic starter
 

Thanks Riny, thats perfect, I still get confused with unpivoting etc

 
Posted : 11/01/2023 8:52 am
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

Glad I could help!

 
Posted : 11/01/2023 10:16 am
Share: