Creating basic calculations
You can create basic arithmetic calculations for columns with numeric data types.
About this task
The expression for these calculations is predefined, and you need only to select the proper mathematical operator, and in some cases, a constant value. For example, you can create a column Revenue by multiplying values for Quantity and Unit price.
Procedure
Results
A calculation based on one column is created as an embedded calculation. The calculation is added at the top of the list of columns in the table. You can move it to a folder inside the same table.
A calculation based on two columns can be created as an embedded or stand-alone calculation. If the columns are from the same table, an embedded calculation is created. It is added at the top of the list of columns in the table. If the columns are from different tables, a stand-alone calculation is created. It is added at the top of the data module tree, outside of any table. You can move this calculation to a module-level folder.
What to do next
The calculated column can be used in the same way as other columns in the table. From its context menu, you can access the different actions to edit the calculation, format its data, or remove it.
The calculation can be used in reports, dashboards, explorations, and other Cognos® Analytics content.