These cookies provide us with information on how our websites are being used, to help us improve the quality and relevance of content we place on them. Additionally, they also allow us to show you embedded videos and remember your preferences and actions, so that the websites do not bother you with the same request repeatedly (e.g. filling a form to download a PDF file and provide feedback about such actions to our affiliated entities).
POWER
The POWER function returns a number raised to the base specified as the second parameter of the POWER function (e.g., Interest rate, Revenue). Complex and undefined results are replaced with NULL.
The POWER function has the following format:
POWER(n, b)
The base n and the exponent b accept any numeric data, including metrics, metric expressions, and constants.
For fractional exponent (b) values, using fractions (for example, 1/2) rather than decimals (for example, 0.5) improves performance.
Syntax
POWER(…,…)
POWER(number, power)
Examples
SELECT POWER(10, 1/12)
SELECT POWER(SUM({fact/amount}), 2)
SELECT POWER(1, SUM({fact/amount}))
SELECT POWER({metric/total_amount} * (1/2), {metric/total_amount})