Question 1
A financial services organization wants to create a formula indicator to calculate the 'Change Success Rate'. They have two existing automated indicators: '# of Successful Changes' and '# of Unsuccessful Changes'. Which formula ensures the result is a percentage and correctly handles cases where there are zero total changes to avoid division by zero errors?
Answer and explanation
Correct answer: B
This formula correctly uses JavaScript within the formula indicator to first calculate the total, then checks if the total is greater than zero before performing the division. This prevents a 'division by zero' error, which would result in an invalid score (NaN). The if/else block provides a safe fallback value of 0 when no changes have occurred.