How are Demand Assessment scores calculated?

Claudia17
Mega Contributor

Hello,

Does anyone know the logic behind how 'Score' is calculated (or where I can find this code) in the Assessments tab on the demand form? I know that there is a hierarchy of how assessments: Metrics < Categories < Type, but I'm not seeing how the scores from each metric + category are involved with calculating the overall score for demands. is every metric included in the 'Score' on the demand form?

Any insight is appreciated.

Thanks

5 REPLIES 5

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

Hello 

here is the formula used 

Normalized value = (Input Value - Min value defined in metric) / (Max value defined in metric - Min value defined in metric) * current metric weight / (sum of valid metric weight) * scale_factor

 

Here is the how -

  • - The business rule "Compute Overall Score" triggered the update to the score field on the demand form.

This business rule is triggered on changes to risk, value, and size field on-demand form.

 

Risk is score_risk column on the demand form

Value is score_value column on the demand form

Size is score_size on the demand form.

 

  • Score_risk is calculated based on business rule "Populate Metric Results" when the state of demand is changed to qualified

This business rule calculates average values of risk based on assessment metric result custom calculations.

 

  • Score_value is calculated based on business rule "Populate Metric Results" when the state of demand is changed to qualified

This business rule calculates average values of value based on assessment metric result custom calculations.

  • Score_size is calculated based on business rule "Populate Metric Results" when the state of demand is changed to qualified

This business rule calculates average values of risk based on assessment metric result custom calculations.

This Business rule "Compute Overall Score" triggers the script include called "EntityScorer" which calculates score.

  • Script include "EntityScorer" calls function ""updateOverallScore"" which first calculates score_risk

riskScore = (10 - parseFloat(taskGr.getValue("score_risk")));

This function ""updateOverallScore" in turn calls script include "ScoreFactory" which calculates overall score based on score_risk, score_value and score_size values.

  Score = score_risk+score_value+score_size/3

 

To set the weights and min-max scores for the Demand assessment categories in the assessment you need to set them here Project administration --> Assessment Metric Categories 

find_real_file.png

 

Thanks Miguel, do you know how each of the assessment categories are grouped to calculate in the three sub-scores?

I'm assuming:

- Size metrics --> size score

- Risk metrics --> risk score

- Strategic alignment, ROI, Cost metrics --> value score?

That is correct 

Claudia17
Mega Contributor

Thanks Miguel, do you know how each of the assessment categories are grouped to calculate in the three sub-scores?

I'm assuming:

- Size metrics --> size score

- Risk metrics --> risk score

- Strategic alignment, ROI, Cost metrics --> value score?