Dax Function: Math and Trigonometric Functions

Category: Math and Trigonometric functions

Math and Trigonometric (Trig) functions in Power BI are used to perform a variety of mathematical and geometric calculations within Data Analysis Expressions (DAX). These functions enable users to manipulate numerical data, perform arithmetic operations, and apply trigonometric formulas to solve complex analytical problems.

Purpose of the Function

The Math and Trig functions are essential tools in Power BI for handling numerical computations. They allow users to perform basic operations such as addition, subtraction, and rounding, as well as more advanced calculations like logarithms, exponents, and trigonometric transformations. These functions are invaluable for creating calculated columns, measures, and transforming raw data into actionable insights.

FunctionDescription
ABSCalculates the absolute value of a number.
ACOSComputes the arccosine (inverse cosine) of a given value.
ACOSHReturns the inverse hyperbolic cosine of a number.
ACOTProvides the arccotangent (inverse cotangent) of a number.
ACOTHComputes the inverse hyperbolic cotangent of a number.
ASINDetermines the arcsine (inverse sine) of a value.
ASINHCalculates the inverse hyperbolic sine of a number.
ATANReturns the arctangent (inverse tangent) of a value.
ATANHProvides the inverse hyperbolic tangent of a number.
CEILINGRounds a value up to the nearest integer or specified multiple.
CONVERTConverts an expression from one data type to another.
COSComputes the cosine of a specified angle.
COSHCalculates the hyperbolic cosine of a value.
COTReturns the cotangent of an angle in radians.
COTHDetermines the hyperbolic cotangent of an angle.
CURRENCYConverts a value into the currency data type.
DEGREESTransforms radians into degrees.
DIVIDEPerforms division and provides an alternate value or BLANK() if dividing by zero.
EVENRounds a number up to the nearest even integer.
EXPCalculates the value of e raised to the power of a given number.
FACTComputes the factorial of a number (e.g., 1 × 2 × 3 × … up to the given number).
FLOORRounds a value down to the nearest multiple or towards zero.
GCDDetermines the greatest common divisor of two or more integers.
INTRounds a value down to the nearest whole number.
ISO.CEILINGRounds a number up to the nearest integer or specified multiple, in line with ISO standards.
LCMComputes the least common multiple of integers.
LNReturns the natural logarithm of a value.
LOGComputes the logarithm of a number for a specified base.
LOG10Calculates the base-10 logarithm of a number.
MODReturns the remainder when one number is divided by another.
MROUNDRounds a value to the nearest multiple you specify.
ODDRounds a number up to the nearest odd integer.
PIProvides the value of Pi (3.14159265358979) accurate to 15 decimal places.
POWERReturns a number raised to a specified power.
QUOTIENTPerforms division and returns only the integer portion of the result.
RADIANSConverts degrees into radians.
RANDGenerates a random number between 0 (inclusive) and 1 (exclusive).
RANDBETWEENProduces a random value within a defined range.
ROUNDRounds a value to the specified number of decimal places.
ROUNDDOWNRounds a number down towards zero.
ROUNDUPRounds a number up away from zero.
SIGNIdentifies the sign of a number (1 for positive, -1 for negative, or 0 for zero).
SINComputes the sine of a given angle.
SINHDetermines the hyperbolic sine of a value.
SQRTReturns the square root of a number.
SQRTPICalculates the square root of a number multiplied by Pi.
TANComputes the tangent of a specified angle.
TANHDetermines the hyperbolic tangent of a number.
TRUNCTruncates a number by removing its fractional part, leaving only the integer portion.

 

Maximize the potential of Power BI and enhance your data insights with our expert consulting services. Whether you’re looking for assistance with advanced DAX functions, help designing interactive dashboards, or support in optimizing your data models for better performance, our skilled Power BI consultants are ready to provide tailored solutions for your business. Visit our Power BI consultancy page to learn more about how we can empower your organization to make more informed, data-driven decisions.

1. What are Math and Trig functions in Power BI?

Math and Trig functions in Power BI are DAX functions that help perform numerical and geometric calculations, such as rounding, trigonometry, and logarithmic operations.

2. How do I use the ROUND function in Power BI?

The ROUND function allows you to round numbers to a specified number of decimal places. Syntax: ROUND(<number>, <num_digits>).

3. What is the difference between CEILING and FLOOR in Power BI?

CEILING rounds a number up to the nearest multiple, while FLOOR rounds it down to the nearest multiple.

4. Can trigonometric functions handle degrees in Power BI?

By default, trigonometric functions like SIN and COS work with radians. Use the RADIANS function to convert degrees to radians.

5. What is the purpose of the MOD function?

The MOD function returns the remainder of a division operation. It is useful for cyclical patterns or repetitive calculations.

Established in 2020, Lets Viz Technologies provides a full range of high-quality data analysis and data visualization services. We are also an authorized Zoho Partner.

 

Contact

WeWork Berger Delhi One, C-001/A2, Sector 16B, Noida, Uttar Pradesh 201301

0124-502-5592
info@lets-viz.com

We are Social

Trust Pilot Reviews