DOLLARDE DAX Function (Financial)

Converts a dollar price expressed as an integer part and a fraction part, such as 1.02, into a dollar price expressed as a decimal number. Fractional dollar numbers are sometimes used for securities prices.

Syntax

DOLLARDE ( <Fractional_dollar>, <Fraction> )
Parameter Attributes Description
Fractional_dollar

A number expressed as an integer part and a fraction part, separated by a decimal symbol.

Fraction

The integer to use in the denominator of the fraction.

Return values

Scalar A single decimal value.

The price as a decimal number.

Remarks

DOLLARDE reads the decimal digits of Fractional_dollar as the numerator of a fraction, and uses Fraction as the denominator. For example, DOLLARDE ( 1.02, 16 ) reads 1.02 as 1 and 2/16, and returns 1.125.

The number of decimal digits that DOLLARDE reads as the numerator is the number of digits in Fraction. With a Fraction of 32 (two digits), 1.1 is the same as 1.10, which means 1 and 10/32, so the result is 1.3125. With a Fraction of 8 (one digit), 1.1 means 1 and 1/8, so the result is 1.125.

DOLLARDE does not return an error if the numerator is equal to or greater than Fraction. For example, DOLLARDE ( 1.20, 16 ) returns 2.25 (1 and 20/16).

Fraction is rounded to the nearest integer. DOLLARDE returns an error if the rounded Fraction is less than 1, or if Fraction is BLANK. A negative Fractional_dollar returns a negative result. A BLANK Fractional_dollar returns BLANK.

DOLLARFR does the opposite conversion.

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

» 1 related function

Examples

-- DOLLARDE converts a fractional price into a decimal price.
-- DOLLARFR converts the decimal price back into a fractional price.
-- The decimal digits of a fractional price are the numerator,
-- Fraction is the denominator: 1.02 with Fraction 16 is 1 and 2/16.
EVALUATE
ADDCOLUMNS (
    {
        ( 1.02, 16 ),
        ( 99.08, 16 ),
        ( 101.1, 32 ),
        ( 101.31, 32 )
    },
    "DOLLARDE", DOLLARDE ( [Value1], [Value2] ),
    "DOLLARFR", DOLLARFR ( DOLLARDE ( [Value1], [Value2] ), [Value2] )
)
Value1 Value2 DOLLARDE DOLLARFR
1.02 16 1.125 1.02
99.08 16 99.49999999999999 99.08
101.1 32 101.31249999999999 101.1
101.31 32 101.96875 101.31

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/dollarde-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 DOLLARDE? Did you find any issue?
Please, report it us! All submissions will be evaluated for possible updates of the content.