I have a parameter called Choose a competency and I have allowed multiple values. I have entered the default values in for this parameter. My record selection formula will look at the string selected and then select the records belong to the right group number. If user selects multiple values, example, the user selects both the National Certificate of Competence and Specialized Training Endorsement, the user should see all records in group number 0,1,150.
However it appears it only selects 0,1 and does not get 150. This is happening because the formula below evaluates the National Certificate of Competency first. If it holds true then it exits the entire if then else statement and will not evaluate the second value (Specialized Training Endorsement). Only one parameter value will be evaluated and the one that will get evaluated is the first one that holds true in the following select statement. Is there an alternative way to do this? I do not want to create every possible combination with an if then else statement
if {?Choose a competency group} ='National Certificate of Competence' then {pw001p05.groupno} in [0,1] else
if {?Choose a competency group} ='National Certificate of Endorsement' then {pw001p05.groupno} in [50] else
if {?Choose a competency group} ='Flag State Endorsement' then {pw001p05.groupno} in [100] else
if {?Choose a competency group} ='Specialized Training Endorsement' then {pw001p05.groupno} in [150] else
if {?Choose a competency group} ='Education' then {pw001p05.groupno} in [300] else
if {?Choose a competency group} ='Courses' then {pw001p05.groupno} in [200,201,250] else
if {?Choose a competency group} ='All' then {pw001p05.groupno} in [0,1,50,100,150,200,201,250,300]
However it appears it only selects 0,1 and does not get 150. This is happening because the formula below evaluates the National Certificate of Competency first. If it holds true then it exits the entire if then else statement and will not evaluate the second value (Specialized Training Endorsement). Only one parameter value will be evaluated and the one that will get evaluated is the first one that holds true in the following select statement. Is there an alternative way to do this? I do not want to create every possible combination with an if then else statement
if {?Choose a competency group} ='National Certificate of Competence' then {pw001p05.groupno} in [0,1] else
if {?Choose a competency group} ='National Certificate of Endorsement' then {pw001p05.groupno} in [50] else
if {?Choose a competency group} ='Flag State Endorsement' then {pw001p05.groupno} in [100] else
if {?Choose a competency group} ='Specialized Training Endorsement' then {pw001p05.groupno} in [150] else
if {?Choose a competency group} ='Education' then {pw001p05.groupno} in [300] else
if {?Choose a competency group} ='Courses' then {pw001p05.groupno} in [200,201,250] else
if {?Choose a competency group} ='All' then {pw001p05.groupno} in [0,1,50,100,150,200,201,250,300]