Dax Function: YIELDMAT

Category: Financial Functions

The YIELDMAT function in Power BI calculates the annual yield of a security that pays interest at maturity, based on its settlement date, maturity date, issue price, and redemption value.

Purpose

  • To evaluate the annualized return of interest-bearing securities where interest is paid only at the maturity date.

  • Commonly used for securities such as bonds and certificates of deposit that pay a lump sum upon maturity.

Type of Calculations

  • Computes the annualized yield based on issue price, redemption value, and the period from settlement to maturity.

  • Accounts for day count conventions to ensure precise calculations.

Practical Use Cases

  1. Bond Analysis: Assess the annual return on bonds paying interest at maturity.

  2. Investment Comparison: Compare the profitability of various fixed-income securities.

  3. Portfolio Management: Determine yield metrics for securities in a portfolio.


YIELDMAT(settlement, maturity, issue, rate, [basis])

ParameterTypeDescription
settlementScalarThe settlement date of the security, when the buyer takes ownership. Must be a valid date.
maturityScalarThe maturity date of the security, when it is redeemed. Must be after the settlement date.
issueScalarThe issue date of the security, when it was originally issued.
rateScalarThe annual interest rate for the security.
[basis]Scalar(Optional) The day count basis to use. Default is 0 (US 30/360).

How Does YIELDMAT Dax Works

Mathematical Principle

The YIELDMAT function calculates yield using the formula:

Where:

  • : Redemption value at maturity.

  • : Issue price of the security.

  • : Number of days in a year (based on the basis parameter).

  • : Days from settlement to maturity.

Key Points

  • The calculation considers the annualized rate of return based on the period from issue to maturity.

  • The basis parameter allows flexibility to conform to different day count conventions.

What Does It Return?

  • Decimal Value: The annualized yield of the security as a decimal (e.g., 0.045 for 4.5%).

When Should We Use It?

  • Evaluate Maturity-Yield Securities: Ideal for analyzing securities that pay a lump sum at maturity.

  • Compare Investment Options: Assess yield differences between securities with varying terms.

  • Financial Reporting: Include accurate yield calculations in reports for stakeholders.

Examples

Basic Usage :

Calculate the yield for:

  • Settlement date: 2023-01-01

  • Maturity date: 2024-01-01

  • Issue date: 2022-01-01

  • Annual interest rate: 5%

  • Day count basis: US 30/360


YIELDMAT(DATE(2023, 1, 1), DATE(2024, 1, 1), DATE(2022, 1, 1), 0.05, 0)

Result: 0.0502 (5.02%)

Column Usage

For a table of securities:

SecuritySettlementMaturityIssueRate
A2023-01-012024-01-012022-01-010.05
B2023-06-012025-06-012022-06-010.04
Add a calculated column:

YieldToMaturity =
YIELDMAT(
Securities[Settlement],
Securities[Maturity],
Securities[Issue],
Securities[Rate],
0
)

Result: Adds annualized yields for each security.

Advanced Usage

Inflation-Adjusted Yield:

Account for inflation in the calculation:


RealYield =
YIELDMAT(
Securities[Settlement],
Securities[Maturity],
Securities[Issue],
Securities[Rate],
0
) - InflationRate

Result: Yields adjusted for inflation impact.

Tips and Tricks

  • Ensure all dates (settlement, maturity, issue) are valid and sequential.

  • Use the basis parameter that matches the security’s day count convention for accurate results.

  • Incorrect date sequencing (e.g., settlement after maturity) will cause errors.

  • Ensure the rate parameter is expressed as a decimal (e.g., 0.05 for 5%).

Performance Impact of YIELDMAT DAX Function:

  • Efficient for use in financial models and portfolio analysis.

  • Optimize by applying filters for large datasets before calculation.

Related Functions You Might Need

FunctionDescription
YIELDCalculates yield for securities with periodic interest payments.
YIELDDISCComputes the yield for discounted securities without periodic interest.
PRICEDetermines the price of a security based on yield and other parameters.

Want to Learn More?
For more information, check out the official Microsoft documentation for YIELDMAT You can also experiment with this function in your Power BI reports to explore its capabilities.

Unlock the full capabilities of Power BI and elevate your data insights with our specialized consulting services. Whether you need guidance on advanced DAX functions like those highlighted here, support in designing interactive dashboards, or expertise in optimizing data models for enhanced performance, our experienced Power BI consultants are equipped to deliver customized solutions for your business. Explore our Power BI Consulting Services page to discover how we can help your organization make smarter, data-driven decisions.

1. What does the YIELDMAT function calculate?

It calculates the annualized yield of a security paying interest at maturity.

2. What inputs does the YIELDMAT function require?

Settlement date, maturity date, issue date, annual interest rate, and an optional day count basis.

3. How is YIELDMAT different from YIELD?

YIELDMAT is for securities paying interest at maturity, while YIELD handles periodic interest payments.

4. Can YIELDMAT handle different day count conventions?

Yes, the basis parameter allows selecting different day count conventions.

5. What are common errors with YIELDMAT?

Errors often arise from invalid dates or mismatched parameters.