Daily DAX : Day 396 DOLLARFR

Power BI DAX: DOLLARFR() Function

Syntax

DOLLARFR(decimal_price, fraction)

Parameters

Parameter Description
decimal_price A decimal number representing the price (e.g., 1.25 for $1.25).
fraction An integer that specifies the denominator of the fraction (e.g., 8 for 1/8ths, 32 for 1/32nds).

Description

The DOLLARFR() function converts a decimal price into a fractional dollar price commonly used in financial markets, especially in bond and treasury pricing where prices are quoted in fractions (like 1/32 or 1/64).

It expresses the price in the format: whole_number + fraction, where the fractional part is based on the specified denominator.

Example:
If a bond is priced at 99.25 and quoted in 32nds, you can convert it using:

DOLLARFR(99.25, 32) → Returns 99.08
(99 whole dollars + 8/32 = 99 + 0.25)

Use Case: Bond & Treasury Pricing

  • Used in fixed-income securities (e.g., U.S. Treasury notes, corporate bonds).
  • Prices are traditionally quoted in 32nds or 64ths of a dollar.
  • Converts clean decimal prices into the market-standard fractional format.
  • Helps in reporting, data import, and matching market quotes.

Example in Power BI

Bond Price (Fractional) = 
DOLLARFR([Clean Price], 32)

Input: Clean Price = 100.50100 + 16/32

Output: DOLLARFR(100.50, 32) = 100.16

Related Function

DOLLARDE() – Converts fractional dollar price back to decimal.

DOLLARDE(100.16, 32) → 100.50


Comments

Popular posts from this blog

Daily DAX : Day 131 SELECTEDMEASURE

Daily DAX : Day 446 INFO.CSDLMETADATA

Daily DAX : Day 453 ENDOFWEEK