@Brianthejenkins @vickioneill
thanks for the early Saturday morning poke in the logic brain Vicki lol..
the voices in my head are only fueled by two coffees so far, so it might be a little disjointed, but i would follow the logic along these lines:
- as the questions are answered, you assign appropriate ‘points’ to a tracking/scoring variable for each Type
- assuming that the scoring is something along this line: for Q1
- if A then add 1 to v_typeA
- if B then add 1 to v_typeB
- if C then add 1 to v_typeD
- my assumption is that there is a max possible score that could be accumulated for any Type
- say out of 100 total points in survey, Type A might have a max possible of 40, Type B max of 20 ...etc.
- each of the max possible scores for a Type should be set as a numeric variable (for ease of changing the number downstream - ie v_max_typeA = 40)
- at the end of the questions/points accumulation, you would use the logic rules/calculations to do the following:
- if v_typeA is greater than 0, then divide v_typeA by v_max_TypeA
- if v_typeA is greater than 0 then multiply v_typeA by 100
- Note - the way the logic rules work you have to have some condition to evaluate in order to do the calculations, in this case we look to see if there were points awarded to Type A and then figure out the percentage - in order to display as a ‘whole number’ percentage we have to multiply by 100
- do the same for all the other type variables
- you could then display the results on a statement page for example using the @recall function
- here are your results:
- Type A [@recall v_typeA] % (with the percent sign being hard-typed on the screen
- Type B [@recall v_typeB] %
- etc
that may be overly pedantic, and i apologize for that, but that is how i convert the value into a whole number % within Typeform’s logic.
hope that does help somewhat..
des