Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Cognizant Technology Solutions
CA
Last activity: 23 Jan 2017 14:04 EST
Guardrails Compliance Score - Calculation - The rationale
Hi,
I am working on Pega 7.1.8 application and I came across the value of Compliance score to be 0 where as the percentage of compliance score is 47.Now when I checked the declare expression of the compliance score I could get the below expression
.pyrules<=0
score=100
else
score=@max(0, (1 - @divide((10* .pyWarningsHighSeverityUnjustified) + (2 * .pyWarningsHighSeverityJustified) + (5 * .pyWarningsMediumSeverityUnjustified) + (1 * .pyWarningsMediumSeverityJustified), .pyRules))*100)
I also came across a link where this value being 0 is agrreable one and not a defect
https://community.pega.com/support/support-articles/guardrails-compliance-weighted-score-shows-zero
I am trying to understand the rationale behind the weighted score calculation.Techinically if the numerator in the division rule is going to greater than the number of rules(pyRules),the value would be always 0