RTC 6.0.3 - Wrong calculation of the (SAFe) Achieve Value Percentage of a PI Objective
Hello,
i'm using RTC 6.0.3 with the SAFe program process template.
When creating PI Objectives, I noted that the automatically calculated field entitled "Achieved Value (%)" returned wrong values in the following circumstances.
1) If "Business Value (planned)" field is set on 10 for example, when setting the "Business Value (actual)" on 0, then the "Achieved Value (%)" returns 10. It should be 0.
2) If "Business Value (planned)" field is set on 0 for example, when setting the "Business Value (actual)" on 10, then the "Achieved Value (%)" returns 1000. It should be nothing or do something to prevent setting actual BV is planned BV is 0.
Achieved Value (%) = Business Value (actual) / Business Value (planned)
Is this a know behaviour? Can I correct this? If so, how?
Thanks. Regards,
Olivier.
Accepted answer
Hi,
It was not a known behavior until you pointed it out, so thank you for that! A defect has been opened so that we can fix this in the template. You can correct it on your own, however, by updating the script that does this calculation. To do that, you must use the Eclipse client and follow these steps:
- Establish a Repository Connection to your RTC repository
- On that connection, choose Manage Connected Project Areas... to access the project area
- Open that Project Area and then choose Process Configuration
- In the menu, navigate to Project Configuration > Configuration Data > Work Items > Attribute Customization
- In the Attribute Customization box, expand Calculated Values to find Calculated Achieved Value
-
Update the script to only do the calculation if both the planned and actual values are non-zero:
var achievedValue = 0;
if (busValPlanned > 0 & busValActual > 0) {
achievedValueRatio= Number(busValActual / busValPlanned);
achievedValue= achievedValueRatio * 100;
} else;
Let me know if you need any help with this and thank you for pointing out the issue.
Amy
Comments
Thanks a lot Amy!
Thanks Amy, I am working on the same program as Olivier and I checked the formula proposed above. It is still showing an error. (when the actual or planned business value field is 0).