Number.Power

Number

Raises a number to a specified power.

Examples on this page use shared sample tables. View them to understand the input data before reading the examples below.

Syntax

Number.Power(number as nullable number, power as nullable number) as nullable number

Parameters

NameTypeRequiredDescription
numbernumberYesThe base number.
powernumberYesThe exponent to raise the base to.

Return Value

numberThe result of raising number to the given power.

Remarks

Number.Power raises the first argument to the power of the second. For example, Number.Power(2, 3) returns 8. Fractional exponents are supported — Number.Power(x, 0.5) is equivalent to Number.Sqrt(x). Negative exponents return reciprocals.

This is useful for mathematical transformations such as squaring values for variance calculations or applying exponential scaling.

Examples

Example 1: Square each product price

Table.AddColumn(
    Table.SelectColumns(Products, {"ProductName", "Price"}),
    "PriceSquared", each Number.Power([Price], 2), type number
)
Result
ProductName
Price
PriceSquared
1Widget A25625
2Gadget B502,500
3Widget C15225
4Gadget D755,625
5Thingamajig E12014,400

Compatibility

Power BI Desktop Power BI Service Excel Desktop Excel Online Dataflows Fabric Notebooks