SAP Knowledge Base Article - Public

2406746 - How num-decimal-places can cause miscalculation of adjusted rating(scale-adjusted-calculation)

Symptom

Scale-adjusted-calculation is not working, the overall rating is not accurate. For example, the rating should be 1, but system showed up with 2.

Environment

SAP SuccessFactors Performance and Goals

SAP SuccessFactors 360 Multi-Rater

Reproducing the Issue

1. Assumed that we configured the scale-adjusted-calculation as underneath in an objective section, and there are 2 objectives (A and B)need to be rated.

        <scale-adjusted-calculation enable="true"  display-calculated-rating="false">
          <scale-map-value>
            <score-min>1.0</score-min>
            <score-max>1.599</score-max>
            <mapto-score>1.0</mapto-score>
            <mapto-desc><![CDATA[Failed]]></mapto-desc>
          </scale-map-value>
          <scale-map-value>
            <score-min>1.6</score-min>
            <score-max>2.599</score-max>
            <mapto-score>2.0</mapto-score>
            <mapto-desc><![CDATA[As expected]]></mapto-desc>
          </scale-map-value>
          <scale-map-value>
            <score-min>2.6</score-min>
            <score-max>3.599</score-max>
            <mapto-score>3.0</mapto-score>
            <mapto-desc><![CDATA[Good]]></mapto-desc>
          </scale-map-value>
        </scale-adjusted-calculation>

2. Then we give one objective A rating 1 and objective B rating 2. The final rating should be 1.5 due to the weight is not configured and system should take average by default.

3. And based on the adjusted rating code here. It should be map to 1.0 because it’s between 1 and 1.599. But result in form showed up as 2 (As expected)

            <score-min>1.0</score-min>
            <score-max>1.599</score-max>
            <mapto-score>1.0</mapto-score>
            <mapto-desc><![CDATA[Failed]]></mapto-desc>

Cause

This issue is typically caused by num-decimal-places attribute which controls how many digits system take as result.If we look into the templates configuration for this case, you will find that num-decimal-places is 0 (<num-decimal-places>0</num-decimal-places>) which means final rating result will rounding to the nearest integer. And that's how rating "2" is generated by the system.

Resolution

In order to 1.5 can be retained as a number with digit not integer, we need to change <num-decimal-places>0</num-decimal-places> to <num-decimal-places>1</num-decimal-places>. It will resolve the issue and map the rating to 1 (Failed) as we configured.

See Also

https://launchpad.support.sap.com/#/notes/2175998

Keywords

scale adjusted calculation, scale adjusted rating, adjusted ratings, adjusted calculation, scale map, map ratings, map score

, KBA , LOD-SF-PM-RAT , Ratings and Weights , LOD-SF-MTR-RAT , Ratings and Weights , Problem

Product

SAP SuccessFactors HCM Core all versions