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
Bond Analysis: Assess the annual return on bonds paying interest at maturity.
Investment Comparison: Compare the profitability of various fixed-income securities.
Portfolio Management: Determine yield metrics for securities in a portfolio.
YIELDMAT(settlement, maturity, issue, rate, [basis])
| Parameter | Type | Description |
|---|---|---|
settlement | Scalar | The settlement date of the security, when the buyer takes ownership. Must be a valid date. |
maturity | Scalar | The maturity date of the security, when it is redeemed. Must be after the settlement date. |
issue | Scalar | The issue date of the security, when it was originally issued. |
rate | Scalar | The 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
basisparameter).: Days from settlement to maturity.
Key Points
The calculation considers the annualized rate of return based on the period from issue to maturity.
The
basisparameter 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.045for 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:
| Security | Settlement | Maturity | Issue | Rate |
|---|---|---|---|---|
| A | 2023-01-01 | 2024-01-01 | 2022-01-01 | 0.05 |
| B | 2023-06-01 | 2025-06-01 | 2022-06-01 | 0.04 |
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
basisparameter that matches the security’s day count convention for accurate results.Incorrect date sequencing (e.g., settlement after maturity) will cause errors.
Ensure the
rateparameter is expressed as a decimal (e.g.,0.05for 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
| Function | Description |
|---|---|
YIELD | Calculates yield for securities with periodic interest payments. |
YIELDDISC | Computes the yield for discounted securities without periodic interest. |
PRICE | Determines 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.
It calculates the annualized yield of a security paying interest at maturity.
Settlement date, maturity date, issue date, annual interest rate, and an optional day count basis.
YIELDMAT is for securities paying interest at maturity, while YIELD handles periodic interest payments.
Yes, the basis parameter allows selecting different day count conventions.
Errors often arise from invalid dates or mismatched parameters.