Daily DAX : Day 439 INTRATE
Power BI DAX Function: INTRATE
The INTRATE function in Data Analysis Expressions (DAX) calculates the interest rate for a fully invested security — a security that pays all interest at maturity (no periodic coupons).
Syntax
INTRATE(, , , [, ])
Parameters
| Parameter | Description |
|---|---|
settlement | The security's settlement date (date purchased). |
maturity | The security's maturity date (date redeemed). |
investment | The amount invested (purchase price). |
redemption | The amount received at maturity (face value). |
basis (optional) | Day count basis (default: 0).
|
Return Value
The annual interest rate as a decimal (format as percentage in visuals).
Formula
INTRATE uses:
INTRATE = ((redemption - investment) / investment) × (B / DIM)
Where: - DIM: Days from settlement to maturity. - B: Days in year based on the basis.
Use Cases
- Calculating yield on zero-coupon bonds.
- Interest rate for certificates of deposit (CDs) or promissory notes.
- Evaluating discount securities like Treasury bills (though specialized functions may apply).
- Financial modeling in Power BI for investments paying interest only at maturity.
Example
Security purchased on 2025-01-01 for $95,000, matures on 2026-01-01 for $100,000 (basis 1: actual/actual).
Interest Rate = INTRATE(DATE(2025,1,1), DATE(2026,1,1), 95000, 100000, 1)
Result: Approximately 0.0526 (or 5.26%).
Note: Dates should use the
DATE function or cell references. This function is not supported in DirectQuery mode for calculated columns or RLS. Some sources note it as deprecated or not recommended in certain contexts, but it remains available in DAX.
Comments
Post a Comment