INT Function (DAX)
How does the INT function (DAX) work?
INT function (DAX) rounds a number down to the nearest integer.
INT Formula Syntax
INT(<number>)
How do you use the INT function?
INT performs a type conversion to integer and always returns an integer, whereas other rounding functions (such as TRUNC) returns a decimal.
Related Blog Posts
Related Support Forum Posts
IF Function needs a calculation
Multi Criteria, IF and contains
Handling Negative Margin Calculation
Considerations when using the INT function
TRUNC and INT are similar in that both return integers. TRUNC removes the fractional part of the number. INT rounds numbers down to the nearest integer based on the value of the fractional part of the number. INT and TRUNC are different only when using negative numbers: TRUNC(-4.3)
returns -4, but INT(-4.3)
returns -5 because -5 is the lower number.
Related Video Tutorials
Formula examples using the INT function
INT ( 2.9 ) = 2