Balance Sheet Case Study Task: Reverse the Sign of Calculated Columns Using a Nested Formula
In the Balance Sheet Case Study Task: Add Calculated Columns to the Layout task, you set up a calculated column to provide the difference between the current balance and the last month end balance, and you set up a calculated column to provide the difference between the current balance and the last year ending balance. In a subsequent task, you named the columns Change This Month and Change This Year.
When you set up the calculated columns, you applied a formula for subtraction. You now need to apply the reverse sign to those calculated columns, which you accomplish by applying a multiplication formula to the columns.
For the calculated columns to return accurate results, you need to apply the reverse sign (multiplication formula) to the column balances before you subtract balances to get the changes in the balances. You can accomplish this by modifying the existing subtraction formula to include a nested function for the multiplication.
To create a nested formula to reverse the sign of calculated columns, complete the following steps for the Change This Month column:
Select the Change This Month column in the liabilities section.
Click the Define Custom Formula icon in the Formula section of the Column tab.
Select Subtraction form the Basic Match section.
In the Function: Subtraction section, select the Minuend option.
In the Parameter: Minuend section, select the Nested Function option, and then click the Edit button next to the Nested Function option.
The system opens a second Function window.
In the new Function window, select Multiplication from the Basic Math list.
In the Function: Multiplication section, select the Multiplier option.
In the Parameter: Multiplier section, select the Constant Value option.
Enter -1 in the Constant Value field, and then click OK.
The system closes the second Function window and returns you to the first Function window.
The Minuend field in the original Function window now has the value multiplication(CurrentActual.'-1').
In the Function: Subtraction section, select Subtrahend.
In the Parameter: Subtrahend section, select the Nested Function option, and then click the Edit button next to the Nested Function option.
The system opens a second Function window.
In the new Function window, select Multiplication from the Basic Math list.
In the Function: Multiplication section, select the Multiplicand option.
In the Parameter: Multiplicand section, select the Field option, and then select Last Month End from the list.
In the Function : Multiplication section, select the Multiplier option.
In the Parameter: Multiplier section, select the Constant Value option.
Enter -1 in the Constant Value field, and then click OK.
The system closes the second Function window and returns you to the first Function window.
The Subtrahend field in the original Function window now has the value multiplication(Last Month End.'-1')
Click OK on the Function window.
Click the Save icon to save your layout.
Repeat Steps 1-18 for the Change This Year column, substituting these values:
In Step 1, select the Change This Year column.
In Step 13, select Last Year End.
After you complete the steps in this task, your statement layout should look like the following image:
