Creating a logical ending to pairwise comparison quizz | Community
Skip to main content
Question

Creating a logical ending to pairwise comparison quizz


I am trying to build a pairwise comparison questionnaire, comparing the 6 criteria; the end result for the user should be the grading of the 6 criteria by order of importance for the user, with % weight. 

I managed to create the logic with variables which attributes points to a criteria each time is selected in a binary comparison; but I can’t find how to create the ending which would provide the ranking of all the criteria based on the points gained after users’ answers.

Any ideas?? Thank you!

9 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14946 replies
  • August 28, 2024

Oh goodness, @Maria Moskvina ! This is definitely a tricky one that I believe would require even a bit more logic. @john.desborough might be able to help you out with this!


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5284 replies
  • August 29, 2024

@Maria Moskvina - there is no native way (that is humanly possible) in the logic rules within a typeform to show the sorted ranking of all the criteria/categories/variables within typeform. 

getting the highest score is awkward but possible (lowest is too as it is inverse logic of the rules) but just not possible. 

suggested workaround: 

  • calculate the highest variable and show the user THAT result in the form - it’s a teaser of sorts and if they want to get the full ranked list, provide their consent and or email to send them a customized report
  • connect the typeform to a google sheet and do the ranking of the scores there
  • use a tool like Document Studio - an addon for Google Sheets - that will merge the sorted data into a template that you have created in Google Docs/Slides and send the user a pdf via email 

it’s one of those things i have been trying to solve in the logic rules area (top 3, top 5, etc.as well as ranked order) but it just not structured to do the work 

another alternative is to push the data out via webhook/API, do the calculations and return the data in sorted order to another form - but that is beyond my ken in the development world. 

 

there are a number posts in the Community on the bullets above. 

(i can’t think of anything else on this @Liz ..)

cheers

des


@john.desborough thank you so much, this is really helpful! 


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14946 replies
  • August 29, 2024

Let us know how it goes, @Maria Moskvina !


Hello again!

So i’m trying to implement the first step - which is comparing the variables’ scores to define the highest one(s) (I also want to know if two variables have the same high score - in that case I will tell users in the result that their highest scored variables are these two). 

i’ve set up the logic following this instruction and this one  but i get wrong results. I know my logic is wrong but I can’t figure out where…. Maybe you could help? 

These are the elements i want users to compare via paire-wise comparison and find the highest scored one(s): 

Physical attraction -- v_phy

Emotional attraction -- v_emo

Intellectual interest -- v_int

Him/her as a personality -- v_hap

How he/she makes me feel -- v_hhm

How he/she feel about me -- v_hhf

 

And here are the paired variables for comparison: 

hhf vs hhm

hhf vs hap

hhf vs int

etc

 

I start by attributing points to simple variables depending on the answers people give, for example: 

if Q.1 “What is more important for you between the two options below?”

is A - How he/she feels about me

then add 1 to v_hhf

if Q.1 “What is more important for you between the two options below?”

is B - How he/she makes me feel

then add 1 to v_hhm. 

etc. 

 

Then, I tried to evaluate the comparison variables: 

if variable_hhf 

is greater than 0

then add variable_hhf to variable_hhf_vs_variable_hhm

if variable hhm is greater than 0

then substract variable_hhm from variable_hhf_vs_variable_hhm

etc. (i think my mistake is in this part…)

 

Finally, i tried to assign different endings depending on comparison variables value, like this (which also looks wrong to me now….):

If variable_hhf_vs_variable_hhm 

is greater than 0

and 

variable_hhf_vs_variable_hap

is greater than 0

and variable_hhf_vs_variable_int

is greater than 0

and 

variable_hhf_vs_variable_phy

is greater than 0

and 

variable_hhf_vs_variable_emo

is greater than 0

then go to ending “Characteristic you value the most is How he/she feels about me”

 

So I know I did something wrong. Probably its the endings part. But can’t figure out what is wrong exactly. 

 

Could you please help??…

Thank you very much in advance!!!

 

best regards,

Maria


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5284 replies
  • September 6, 2024

@Maria Moskvina - can you do a video walk through of your logic rules please … something that i could use to visually inspect the way you have set up the logic.. that would help me try to pinpoint where the error might be.. 

 

cheers

des


Hi @john.desborough ! here is the video: 

https://we.tl/t-SIcUkd3xbI (couldn’t paste it directly here, too heavy). 

thank you so much for your help!! 

best regards, 

Maria


@john.desborough looking at it again, i think the problem is that i wanted to avoid tie-breaker questions but i can’t really :) I’ll try adding those, displaying only highest ranking variable as the result - will let you know how it went! 

 


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14946 replies
  • September 18, 2024

How did it go, @Maria Moskvina ? Let us know if you still need help!