Hello, I have been looking at previous posts but don't see anything that fits my specific scenario. Can anyone help with this?
I need to count a record if it meets 4 specific criteria. I have tried writing the formulas separately and bringing them into a running total using "Evaluate using a formula". I also tried writing one formula statement in "Evaluate using a formula" but that is also not working. I think I may need to create a variable statement. If that is the case, could someone provide some direction?
Here are my formulas written in one combined formula statement:
(If{TABLE.ID} = "5987" then {TABLE.VALUE} = "No") and
(If{TABLE.ID} = "5986" then {TABLE.VALUE} in ["No","Unknown"]) and
(If{TABLE.ID} = "5988" then {TABLE.VALUE} = "No contraindications") and
(If{TABLE.ID} = "5989" then {TABLE.VALUE} = "No exclusions")
If each of the above statements is true, I need to count the record. If any of them is false, I do not want to count the record.
My report is grouped by patient ID. I've tried placing the running total in the group footer and the report footer - it returns 0. It does work if I include only one of the formulas - when I combine them it doesn't work. Any suggestions?
I need to count a record if it meets 4 specific criteria. I have tried writing the formulas separately and bringing them into a running total using "Evaluate using a formula". I also tried writing one formula statement in "Evaluate using a formula" but that is also not working. I think I may need to create a variable statement. If that is the case, could someone provide some direction?
Here are my formulas written in one combined formula statement:
(If{TABLE.ID} = "5987" then {TABLE.VALUE} = "No") and
(If{TABLE.ID} = "5986" then {TABLE.VALUE} in ["No","Unknown"]) and
(If{TABLE.ID} = "5988" then {TABLE.VALUE} = "No contraindications") and
(If{TABLE.ID} = "5989" then {TABLE.VALUE} = "No exclusions")
If each of the above statements is true, I need to count the record. If any of them is false, I do not want to count the record.
My report is grouped by patient ID. I've tried placing the running total in the group footer and the report footer - it returns 0. It does work if I include only one of the formulas - when I combine them it doesn't work. Any suggestions?