CURRENCY DAX Function (Math and Trig)

Returns the value as a currency data type.

Syntax

CURRENCY ( <Value> )
Parameter Attributes Description
Value

A scalar expression to be converted to currency data type.

Return values

Scalar A single currency value.

The value of the expression evaluated and returned as a currency type value.

Remarks

The CURRENCY function rounds up the 5th significant decimal, in value, to return the 4th decimal digit; rounding up occurs if the 5th significant decimal is equal or larger than 5. For example, if value is 3.6666666666666 then converting to currency returns $3.6667; however, if value is 3.0123456789 then converting to currency returns $3.0123.

If the data type of the expression is TrueFalse then CURRENCY( ) will return $1.0000 for True values and $0.0000 for False values.

If the data type of the expression is Text then CURRENCY() will try to convert text to a number; if conversion succeeds the number will be converted to currency, otherwise an error is returned.

If the data type of the expression is DateTime then CURRENCY() will convert the datetime value to a number and that number to currency. DateTime values have an integer part that represents the number of days between the given date and 1900-03-01 and a fraction that represents the fraction of a day (where 12 hours or noon is 0.5 day). If the value of the expression is not a proper DateTime value an error is returned

Related functions

Other related functions are:

Last update: Dec 14, 2018   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo

MSDN documentation: https://msdn.microsoft.com/en-us/query-bi/dax/currency-function-dax

DAX Conventions
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.

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.

Deprecated

This parameter is deprecated and its use is not recommended.

Contribute

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