@Anju ICU-1111 @Liz
first off.. with the 3 variables you have for each ‘category’ like health, you can do the calculation something like this:
create a text variable for the category called something like v_health_text and set the default to “No” - more on that later.
- if health_ideal is greater than 0 add heath_ideal to health
- if health_now is greater than or equal to 0 subtract health_now from health
- if health is greater than or equal to 4 then replace v_health_text with ‘focus’
what that gives you is the following
- you have a value in the health variable that you can use in any further calculations if you have to decide a priority for ‘working on’ an area - more in a bit
- you have a text variable containing ‘focus’ if the differential in the calculation is GTE 4 -you can use this as a condition to determine if you need to provide info about this category later on in the form (using logic rules) or if you connect to a Google Sheet and do some followup analysis as well
if you do similar for each category (you have 12) then you would have the ability to do something like this:
- if v_text_health is focus then go to statement page health or if v_text_category_two is focus go to statement page category two.. etc..
that would walk the user through the series of statement pages that might be applicable to give them some preliminary information within the form. on each statement page, starting with the first one, you would have to then check to see if the next category text variable in line was ‘focus’ and then go to that statement page and so on through the 12 possible statement pages.
if you were doing that in the question group for health, for example, you could have the user presented with one statement page if the health value was gte 4 or another statement page saying ‘not an issue here’ and then route the user to the next group.
if you want to look at the ‘order of priority’ of the highest differential score in the categories - say someone had a differential of 6 in one category and then a 5 and a 4 - those three categories would show a ‘focus’ needed.. but which one to start with.. if you base that on the highest score you would need to evaluate and determine which one is highest.. tricky part is that you could be solving/evaluating across all 12 categories, have a unique category or anything in between. it does present a challenge - especially if you have to use a tie breaker to determine which one to start with if two or more are tied with the greatest differential..
but yes it can be done lol
des