Numerical Operations in Power BI

Last Updated : 6 Feb, 2026

Numerical operations in Power BI play an important role in transforming raw data into meaningful insights. They allow users to perform calculations, aggregations and mathematical analysis on data to support accurate reporting and decision‑making.

  • Includes operations like addition, subtraction, multiplication and division
  • Supports aggregations such as sum, average, count, min and max
  • Implemented using DAX formulas and Power Query transformations

Transforming Text into Numeric Values

In many datasets, numeric values are imported as text. This prevents Power Query from performing calculations and aggregations. Converting these text values into numeric data types is important.

You can download dataset from here

1. Identifying Text-Based Numeric Data

Here in the Product dataset, the Length, depth and width column appears to contain numbers but is stored as text. Since Power Query treats text and numbers differently, calculations cannot be performed until the data type is corrected.

no1
Columns

2. Changing the Data Type

To convert text to a numeric format:

  • Select the column containing numeric text values.
  • Right-click on the column header.
  • Choose Change Type.
  • Select Whole Number or Decimal Number.
image2
Change Data type
  • Use Whole Number when the data consists of integers.
  • For measurements or values requiring precision Decimal Number is the preferred option.

3. Replacing the Existing Data Type

When prompted select Replace Current to update the column data type. This ensures uniformity and prevents calculation errors later in the transformation process.

no3
Replace current

Applying Mathematical Operations

Once the data is converted to a numeric format Power Query enables a wide range of mathematical and statistical operations to derive insights from your data.

1. Using Statistical Functions

Power Query provides several built-in aggregation functions under the Transform ribbon:

no5
Statistics function
  • Sum: Total of all values
  • Minimum / Maximum: Smallest and largest values
  • Average: Mean value
  • Standard Deviation: Shows how much values vary from the average
  • Count Values: Number of non-null entries
  • Count Distinct Values: Number of unique values
no6
Sum function Output

2. Performing Unit Conversions using Standard

Datasets often contain measurements in different units making standardization necessary. To convert Length from centimeters to inches:

  • Select the Length column that needs conversion.
  • Open the Transform tab and choose Standard, then apply Multiply.
ghdhjs99
Standard function
  • Multiply each value by 0.393701 the conversion factor from centimeters to inches.

Advanced Numeric Functions in Power BI

Power BI Power Query offers a range of advanced numeric functions that go beyond basic calculations. These functions help you perform scientific, trigonometric, rounding and data validation operations, making it easier to clean, transform and analyze numeric datasets.

sql3
Numeric Functions

1. Scientific Functions

Power BI provides a Scientific functions menu in Power Query to perform common calculations without writing formulas. You can access it directly from the Transform or Add Column ribbon.

1. Select the column containing numeric values.

2. Click on Transform or Add Column in the ribbon and select Scientific.

3. From the dropdown, choose the desired operation:

sql4
Scientific Function
  • Absolute Value: Returns the absolute value of each number
  • Power: Raises each number to a specified exponent
  • Square Root: Computes the square root
  • Exponent: Returns e raised to the number
  • Logarithm: Computes the logarithm with a specified base
  • Factorial: Returns the factorial of each number

4. Power Query will create a new column containing the calculated results.

sql5
Square Root of width column

2. Rounding Functions

Power BI Power Query provides a set of rounding functions that help you control the precision of numeric data. These functions are essential when preparing data for reporting, ensuring consistency in values and avoiding unnecessary decimal clutter. You can use them directly from the Transform or Add Column ribbon.

1. Select the column containing numeric values.

2. Click on Transform or Add Column in the ribbon and choose Rounding.

3. From the dropdown select the appropriate rounding operation:

sql6
Rounding function
  • Round: Rounds a number to the nearest integer or specified number of decimal places.
  • Round Up: Always rounds numbers up to the nearest integer or specified decimal.
  • Round Down: Always rounds numbers down to the nearest integer or specified decimal.

4. Power Query will generate a new column with the rounded values according to your chosen method.

sql7
Round Up

3. Information Functions

Power BI Power Query includes Information functions that help you validate numeric values and analyze data quality. These functions are particularly useful for detecting errors, missing values or understanding the characteristics of your numbers before performing calculations or visualizations.

1. Select the column you want to analyze.

2. Go to the Transform or Add Column ribbon and choose Information.

3. From the dropdown, select the desired function:

  • Is Number: Checks if a value is numeric and returns TRUE or FALSE.
  • Is Null: Identifies missing or null values in the dataset.
  • Is Blank: Detects empty fields or blank entries.
  • Is Error: Determines whether a cell contains an error.
  • Type Of: Returns the data type of a value.
  • Is Even: Returns TRUE if a number is even, FALSE otherwise.
  • Is Odd: Returns TRUE if a number is odd, FALSE otherwise.
  • Sign: Returns 1 for positive numbers, -1 for negative numbers and 0 for zero.

4. Power Query will create a new column showing the result of the selected check for each row.

sql8
isEven

4. Trigonometric Functions

Power BI Power Query provides Trigonometric functions that allow you to perform calculations based on angles, which are especially useful in engineering, scientific analysis and any scenario requiring geometric computations. These functions operate directly on numeric columns and can be accessed through the Transform or Add Column ribbon.

1. Select the column containing numeric values

2. Click on Transform or Add Column in the ribbon and choose Trigonometry.

3. From the dropdown, select the desired operation:

  • Sine (Sin): Returns the sine of a number.
  • Cosine (Cos): Returns the cosine of a number.
  • Tangent (Tan): Returns the tangent of a number.
  • Arc Sine (Asin): Returns the arcsine (inverse sine) of a number.
  • Arc Cosine (Acos): Returns the arccosine (inverse cosine) of a number.
  • Arc Tangent (Atan): Returns the arctangent (inverse tangent) of a number.
  • Hyperbolic Functions: Includes Sinh, Cosh and Tanh for hyperbolic calculations.

4. Power Query will create a new column containing the calculated trigonometric values.

Comment
Article Tags:

Explore