Scoring issue | Community
Skip to main content
Answered

Scoring issue


This might be a bit of a complex question. I’m building a quiz that has a lot of logic involved. I need the scoring to work properly for the logic to work correctly. 

No matter what I do, the scoring just doesn’t calculate. Let me demonstrate:
I have a 9 question quiz, and each question is an opinion scale. The scale goes from 1-7. The first 4 questions are reversed scored, so 1=7, 2=6, and so on. Questions 5-9 are scored as stated. I entered in the scores for each question as noted (1-4 are reverse, 5-9 are normal). Here’s where it gets complex.

I want questions 1-6 to be summed up and added to variable @A_1 and questions 7-9 to be summed and added to variable @B_2. I then want @A_1 to be divided by 6 and @B_2 to be divided by 3. The scores come out so wacky every time.

I then want the averaged score to be recalled on the ending screen. 

I’m using the following logic to total the scores: 
1A: If 1A is greater or equal to 0, then add 1a to @A_1
1B: If 1B is greater or equal to 0, then add 1b to @A_1
1C: If 1C is greater or equal to 0, then add 1c to @A_1
1D: If 1D is greater or equal to 0, then add 1d to @A_1
1E: If 1E is greater or equal to 0, then add 1e to @A_1
1F: If 1F is greater or equal to 0, then add 1f to @A_1
1G: If 1G is greater or equal to 0, then add 1g to @B_2
1H: If 1H is greater or equal to 0, then add 1h to @B_2
1I: If 1I is greater or equal to 0, then add 1i to @B_2

Then, 

Always divide @A_1 by 6
Always divide @B_2 by 3

Finally, they are taken to 1 of 4 ending screens depending on the following: 
If @A_1 is less than 10 and @B_2 is less than 20, go to screen 1
If @A_1 is greater than 10 and @B_2 is less than 20, go to screen 2
If @A_1 is less than 10 and @B_2 is greater than 20, go to screen 3
If @A_1 is greater than 10 and @B_2 is greater than 20, go to screen 4

Where am I going wrong in this? Is this operator error? I’m hoping someone can help!! I’d be so appreciative. 

Best answer by john.desborough

sophialebano wrote:

@john.desborough Thank you! I did manage to figure out the logic on this, but I do have a follow up question. Is this type of calculation possible? 
Average Score = (32 - q1 - q2 - q3 - q4 + g5 + q6) divided by 6

create a v_total variable (or something like that), - set the base value of the variable to 32 if that is required - and use logic rules to add/subtract the value from each question as you go along. then at the end divide the v_total variable by 6 and you would have the average. 

 

des

View original

4 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15024 replies
  • February 21, 2024

@john.desborough is definitely your scoring man!


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5312 replies
  • February 22, 2024

@sophialebano - can you take some screenshots of your logic rules please and thanks.. 

 

it looks like you have less than and greater than 10 and the same for 20 but what if the variable values ARE 10 and 20?? 

just sayin to check those,.. and to share the visuals on your logic rules

 

 

des


  • Author
  • Explorer
  • 1 reply
  • February 22, 2024

@john.desborough Thank you! I did manage to figure out the logic on this, but I do have a follow up question. Is this type of calculation possible? 
Average Score = (32 - q1 - q2 - q3 - q4 + g5 + q6) divided by 6


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5312 replies
  • Answer
  • February 22, 2024
sophialebano wrote:

@john.desborough Thank you! I did manage to figure out the logic on this, but I do have a follow up question. Is this type of calculation possible? 
Average Score = (32 - q1 - q2 - q3 - q4 + g5 + q6) divided by 6

create a v_total variable (or something like that), - set the base value of the variable to 32 if that is required - and use logic rules to add/subtract the value from each question as you go along. then at the end divide the v_total variable by 6 and you would have the average. 

 

des


Reply