You use Formula Editor to create formulas. Formula Editor is a tab in the Member Properties dialog box in Outline Editor. Formulas are plain text. You can type the formulas directly into the formula text area, use a predefined formula template, or you can create a formula in the text editor of your choice and paste it into Formula Editor.
You can also include formulas in a dimension build data source. See Setting Field Type Information.