Calculating Based on Recode Values | XM Community
Skip to main content
Question

Calculating Based on Recode Values

  • September 5, 2024
  • 2 replies
  • 60 views

Forum|alt.badge.img+2

Hello, I am trying to create a question to calculate a “Risk Score” based on answers to previous questions.

The previous questions contain recode values that are already in Qualtrics. Here is the intended calculation for Risk Score: If the count of the recode values is >= 17, then take the sum of the recode values. Otherwise, return “N/A” to the user. If anyone could provide any guidance as I am not proficient in Java Script, that would be greatly appreciated!

2 replies

Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+34
  • Level 8 ●●●●●●●●
  • 654 replies
  • September 5, 2024

We can also use Math operation for this and branch logic to store ‘N/A’ or score in an embedded data.


Forum|alt.badge.img+2
  • Author
  • Level 2 ●●
  • 11 replies
  • September 5, 2024

@Shashi Thank you, that is helpful to calculate the sum of the recode values and store “N/A”. However, I am unsure how to utilize math operations to count the recode values prior to summing the values.