Analysis Services

Creating Calculated Members

You can create customized measures or dimension members, called calculated members, by combining cube data, arithmetic operators, numbers, and/or functions. For example, you can create a calculated member called Marks that converts dollars to marks by multiplying an existing dollar measure by a conversion rate. Marks can then be displayed to end users in a separate row or column.

Calculated member definitions are stored, but their values exist only in memory. In the preceding example, values in marks are displayed to end users but are not stored as cube data.

You can create calculated members in regular or virtual cubes. For more information, see Creating Calculated Members in Regular Cubes and Creating and Maintaining Calculated Members in Virtual Cubes.

To create a calculated member, use Calculated Member Builder. It enables you to specify the following options for the calculated member:

After you create a calculated member, you can rename it. Renaming changes the associated column or row heading displayed to end users.

To rename a calculated member

Analysis Manager

Analysis Manager

Using Function Libraries to Build Calculated Members

Microsoft® SQL Server™ 2000 Analysis Services provides its own extensive function library for creating calculated members. Analysis Services also supports other function libraries:

A function in a library other than the Analysis Services function library is supported by Analysis Services only if it meets the following conditions:

You should test each function separately from libraries other than the Analysis Services function library before you expose the resulting data to end users. For more information about supported functions, see Visual Basic for Applications Functions and Excel Functions.

Note  When you use a function in a library other than the Analysis Services function library, you can omit an optional argument only if you also omit all arguments that follow it.

If multiple libraries include the same function name, Analysis Services functions take precedence. After that, precedence is resolved in order of registration.

In order for end users to see the correct values returned by a function, the library containing the function must be installed and registered on their computers.

Usage Notes

You can use the following techniques when you create calculated members:

See Also

Calculated Members

Calculated Member Builder

MDX