# Function multiply

multiply( value1, value2, name?, withParentheses?): CalculatedMeasure

Creates a calculated measure by multiplying two given numbers or measures.

# Parameters

Parameter Type Description
value1 Measure | number First value
value2 Measure | number Second value
name? string Optional name for the new measure
withParentheses? boolean Optional boolean flag whether to wrap the arithmetic operation with parentheses

# Returns

CalculatedMeasure

A calculated measure instance

# Example

const measure1 = measureFactory.sum(DM.Dimension.Attribute1);
const measure2 = measureFactory.sum(DM.Dimension.Attribute2);
const measureProduct = measureFactory.multiply(measure1, measure2);