You can place member formulas in a calculation script. When you do, the formula overrides conflicting formulas that are applied to members in the database outline.
In a calculation script, you can perform both of these operations:
To calculate a formula that is applied to a member in the database outline, use the member name followed by a semicolon (;). For example, the following command calculates the formula applied to the Variance member in the database outline:
Variance;
To override values that result from calculating an outline, manually apply a formula that you define in a calculation script. For example, the following formula cycles through the database, adding the values in the members Payroll, Marketing, and Misc, and placing the result in the Expenses member. The formula overrides any formula placed on the Expenses member in the database outline:
Expenses = Payroll + Marketing + Misc;
See: