Hello, I am new to InfoPath but am designing a quality scorecard for use by our quality team while monitoring and reviewing processes. The form has a basic info section, a quality section, and a compliance section. I have everything setup correctly but now I am trying to add 3 fields that provide the user with the final quality score by adding the 2 section score totals together. Those fields are QualityScore (Section 1), ComplianceScore (Section 2), TotalScore.
Section 1's total (QualityScore) is working fine as it is just a basic addition formula that adds up the value of the 5 questions in that section and displays the total. The ComplianceScore and the TotalScore is where I cannot for the life of me figure out how to get it to work.
The Compliance section is 16 questions. Questions 1 and 12, if answered no, return a value of -1 (reduction of quality score by 1). Questions 3, 6, and 11, if answered no, return a value of -2 (reduction of quality score by 2).
if it ended here I would again just do a simple addition formula in the ComplianceScore textbox control and then in the TotalScore textbox control just add the formula QualityScore + ComplianceScore. The issue is that the remaining questions (2,4,5,7,8,9,10,13,14,15,16 (these return a 1 if No)) are requirements so if any of them are answered with a "No" the TotalScore is automatically 0 and the ComplianceTotal textbox control should display the Text "Compliance Failure".
I have put rules on the questions, I have tried rules on the ComplianceScore control and none of them work all the time. I can get them to work sometimes but the results seem to change depending on the order by which I select the answers. This would be so much simpler to me if I could just put an If Statement in the formula bar for the TotalScore. IF(SUM(2,4,5,7,8,9,10,13,14,15,16) > 0, 0, QualityScore + ComplianceScore) while the formula for the ComplianceScore would be IF(SUM(2,4,5,7,8,9,10,13,14,15,16) > 0, "Compliance Failure", Q1+Q12+Q3+Q6+Q11).
Can someone help me figure this out!! Thanks!
Lee