Returns the given numeric value raised to the power of the second argument.
This function returns a number.
Syntax and Details
numeric_expression is an expression that evaluates to a number.Typically, this expression has the form [MEASURES].[measure_name]
power is a numeric expression.Typically, this expression is an integer.If you use a decimal value less than 1, be sure to start the number with 0. For example: 0.5
The first example shows the %COUNT measure raised to the third power:
SELECT POWER(MEASURES.[%COUNT],3) ON 0 FROM patients POWER 1,000,000,000,000
The next example uses the %LABEL function to apply a more detailed caption:
SELECT %LABEL(POWER(MEASURES.[%COUNT],3),"PAT CNT^3") ON 0 FROM patients PAT CNT^3 1,000,000,000,000
The following example shows a fractional power:
SELECT POWER(MEASURES.[%COUNT],0.5) ON 0 FROM patients POWER 100