TBILLYIELD

Updated on

TBILLYIELD is a DAX function that returns the yield for a Treasury bill.

Syntax

TBILLYIELD(
   Settlement,
   Maturity,
   Pr
)
Argument Properties Description
Settlement The Treasury bill’s settlement date. The security settlement date is the date after the issue date when the Treasury bill is traded to the buyer.
Maturity The Treasury bill’s maturity date. The maturity date is the date when the Treasury bill expires.
Pr The Treasury bill’s price per $100 face value.

Return Values

The Treasury bill’s yield.

Remarks

  • Dates are stored as sequential serial numbers so they can be used in calculations. In DAX, December 30, 1899 is day 0, and January 1, 2008 is 39448 because it is 39,448 days after December 30, 1899.

  • TBILLYIELD is calculated as follows:

    TBILLYIELD=100prpr×360DSM

    where:

    • DSM = number of days from settlement to maturity, excluding any maturity date that is more than one calendar year after the settlement date.
  • settlement and maturity are truncated to integers.

  • An error is returned if:

    • settlement or maturity is not a valid date.
    • settlement ≥ maturity or maturity is more than one year after settlement.
    • pr ≤ 0.
  • This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.

Example

The following DAX query:

Data Description
3/31/2008 Settlement date
6/1/2008 Maturity date
$98.45 Price per $100 face value
EVALUATE
{
  TBILLYIELD(DATE(2008,3,31), DATE(2008,6,1), 98.45)
}

Returns the yield of a Treasury bill using the terms specified above.

[Value]
0.0914169629253426

Other functions related to TBILLYIELD are:

Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/dax/tbillyield-function-dax

2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy