FIXED DAX Function (Text)

Rounds a number to the specified number of decimals and returns the result as text with optional commas.

Syntax

FIXED ( <Number> [, <Decimals>] [, <NoCommas>] )
Parameter Attributes Description
Number

The number you want to round and convert to text.

Decimals Optional

The number of digits to the right of the decimal point; if omitted, 2. A negative number round to the left of the decimal point.

NoCommas Optional

A logical value: if TRUE, do not display commas in the returned text; if FALSE or omitted, display commas in the returned text.

Return values

Scalar A single string value.

A number represented as text.

Remarks

If the value used for the Decimals parameter is negative, Number is rounded to the left of the decimal point.

If you omit Decimals, it is assumed to be 2.

If NoCommas is 0 or is omitted, then the returned text includes commas as usual.

FIXED rounds Number half away from zero, like ROUND: FIXED ( 2.5, 0 ) returns “3”, and FIXED ( -2.5, 0 ) returns “-3”. If Decimals is not an integer, FIXED rounds it to the nearest integer: FIXED ( 1234.5678, 2.9 ) returns “1,234.568”. Decimals can be up to 127. A larger value returns an error.

If you omit Decimals, FIXED uses 2 decimals. If Decimals is BLANK, FIXED uses 0 decimals: FIXED ( 1234.5678, BLANK () ) returns “1,235”. Any value of NoCommas that is not zero works as TRUE, and BLANK works as FALSE.

If Number is BLANK, the result is “0.00”, not BLANK. A text that contains a number is converted to a number. A date becomes its serial number: FIXED ( DATE ( 2008, 1, 1 ), 0 ) returns “39,448”.

The result is a text, not a number. Therefore, it sorts in alphabetical order: “10.00” comes before “9.00”. To show a number with a specific format and keep it as a number, use a format string. To get other formats as text, use FORMAT.

This function is not supported in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.

» 8 related functions

Examples

--  FIXED returns a number as a string after having rounded to the
--  desired number of decimals, adding commas by default.
EVALUATE
ADDCOLUMNS (
    VALUES ( 'Product'[Category] ),
    "FIXED with commas",      FIXED ( [Sales Amount], 2, FALSE ),
    "FIXED without commas",   FIXED ( [Sales Amount], 2, TRUE ),
    "FIXED without decimals", FIXED ( [Sales Amount], 0, TRUE ),
    "FIXED rounded to 100",   FIXED ( [Sales Amount], -2, FALSE ),
    "Sales Amount",           [Sales Amount]
)
Category FIXED with commas FIXED without commas FIXED without decimals FIXED rounded to 100 Sales Amount
Audio 384,518.16 384518.16 384518 384,500 384,518.16
TV and Video 4,392,768.29 4392768.29 4392768 4,392,800 4,392,768.29
Computers 6,741,548.73 6741548.73 6741549 6,741,500 6,741,548.73
Cameras and camcorders 7,192,581.95 7192581.95 7192582 7,192,600 7,192,581.95
Cell phones 1,604,610.26 1604610.26 1604610 1,604,600 1,604,610.26
Music, Movies and Audio Books 314,206.74 314206.74 314207 314,200 314,206.74
Games and Toys 360,652.81 360652.81 360653 360,700 360,652.81
Home Appliances 9,600,457.04 9600457.04 9600457 9,600,500 9,600,457.04
--  FIXED rounds half away from zero, like ROUND.
--  A decimal value of Decimals is rounded to an integer.
--  With Decimals omitted FIXED uses 2 decimals, but BLANK works as 0.
--  A BLANK Number returns "0.00", not BLANK.
EVALUATE
SELECTCOLUMNS (
    {
        ( "FIXED ( 2.5, 0 )", FIXED ( 2.5, 0 ) ),
        ( "FIXED ( -2.5, 0 )", FIXED ( -2.5, 0 ) ),
        ( "FIXED ( 1234.5678 )", FIXED ( 1234.5678 ) ),
        ( "FIXED ( 1234.5678, 2.9 )", FIXED ( 1234.5678, 2.9 ) ),
        ( "FIXED ( 1234.5678, BLANK () )", FIXED ( 1234.5678, BLANK () ) ),
        ( "FIXED ( 1250, -2, TRUE )", FIXED ( 1250, -2, TRUE ) ),
        ( "FIXED ( BLANK () )", FIXED ( BLANK () ) )
    },
    "Expression", [Value1],
    "Result", [Value2]
)
Expression Result
FIXED ( 2.5, 0 ) 3
FIXED ( -2.5, 0 ) -3
FIXED ( 1234.5678 ) 1,234.57
FIXED ( 1234.5678, 2.9 ) 1,234.568
FIXED ( 1234.5678, BLANK () ) 1,235
FIXED ( 1250, -2, TRUE ) 1300
FIXED ( BLANK () ) 0.00

Related functions

Other related functions are:

Last update: Nov 26, 2026   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo

Microsoft documentation: https://learn.microsoft.com/en-us/dax/fixed-function-dax

2018-2026 © SQLBI. All rights are reserved. Information coming from Microsoft documentation is property of Microsoft Corp. » Contact us   » Privacy Policy & Cookies

Context Transition

This function performs a Context Transition if called in a Row Context. Click to read more.

Row Context

This expression is executed in a Row Context. Click to read more.

Passed by Expression

This parameter is passed by expression and can be evaluated multiple times in different evaluation contexts.

Iterator

Not recommended

The use of this function is not recommended. See Remarks and Related functions for alternatives.

Not recommended

The use of this parameter is not recommended.

Deprecated

This function is deprecated. Jump to the Alternatives section to see the function to use.

Volatile

A volatile function may return a different result every time you call it, even if you provide the same arguments. Click to read more.

Deprecated

This parameter is deprecated and its use is not recommended.

DirectQuery compatibility

Limitations are placed on DAX expressions allowed in measures and calculated columns.
The state below shows the DirectQuery compatibility of the DAX function.

Contribute

Want to improve the content of FIXED? Did you find any issue?
Please, report it us! All submissions will be evaluated for possible updates of the content.