A
C
- CALCULATE
- CALCULATETABLE
- CALENDAR
- CALENDARAUTO
- CEILING
- CHISQ.DIST
- CHISQ.DIST.RT
- CHISQ.INV
- CHISQ.INV.RT
- CLOSINGBALANCEMONTH
- CLOSINGBALANCEQUARTER
- CLOSINGBALANCEYEAR
- COALESCE
- COLUMNSTATISTICS
- COMBIN
- COMBINA
- COMBINEVALUES
- CONCATENATE
- CONCATENATEX
- CONFIDENCE.NORM
- CONFIDENCE.T
- CONTAINS
- CONTAINSROW
- CONTAINSSTRING
- CONTAINSSTRINGEXACT
- CONVERT
- COS
- COSH
- COT
- COTH
- COUNT
- COUNTA
- COUNTAX
- COUNTBLANK
- COUNTROWS
- COUNTX
- COUPDAYBS
- COUPDAYS
- COUPDAYSNC
- COUPNCD
- COUPNUM
- COUPPCD
- CROSSFILTER
- CROSSJOIN
- CUMIPMT
- CUMPRINC
- CURRENCY
- CURRENTGROUP
- CUSTOMDATA
D
E
I
N
O
P
R
S
- SAMEPERIODLASTYEAR
- SAMPLE
- SEARCH
- SECOND
- SELECTCOLUMNS
- SELECTEDMEASURE
- SELECTEDMEASUREFORMATSTRING
- SELECTEDMEASURENAME
- SELECTEDVALUE
- SIGN
- SIN
- SINH
- SLN
- SQRT
- SQRTPI
- STARTOFMONTH
- STARTOFQUARTER
- STARTOFYEAR
- STDEVX.P
- STDEVX.S
- STDEV.P
- STDEV.S
- SUBSTITUTE
- SUBSTITUTEWITHINDEX
- SUM
- SUMMARIZE
- SUMMARIZECOLUMNS
- SUMX
- SWITCH
- SYD
T
U
Syntax of the COUPPCD Function
The syntax of the COUPPCD function is as follows:
COUPPCD(settlement, maturity, frequency, [basis])
The arguments of the function are:
- **settlement**: This is the settlement date of the security. It is the date on which the security is traded and the buyer must pay for it.
- **maturity**: This is the maturity date of the security. It is the date on which the security expires and the issuer must pay the principal amount.
- **frequency**: This is the number of coupon payments per year. The possible values are 1, 2, or 4.
- **basis** (optional): This is the day-count basis to use. The possible values are 0, 1, or omitted.
How to Use the COUPPCD Function
To use the COUPPCD function in Power BI, you need to follow these steps:
1. Create a new measure in the Power BI Desktop.
2. Enter the following formula in the formula bar:
COUPPCD(settlement, maturity, frequency, [basis])
Replace the arguments with the cell references or values that you want to use.
3. Press Enter to calculate the result.
4. Format the measure as required.
Examples of Using the COUPPCD Function
Example 1: Calculating the Days to Next Coupon Payment
Suppose you have the following data:
- Settlement date: January 1st, 2022
- Maturity date: January 1st, 2025
- Frequency: 2
- Basis: 0
To calculate the number of days to the next coupon payment, you can use the following formula:
COUPPCD(“01/01/2022”, “01/01/2025”, 2, 0)
The result is 182, which means there are 182 days between January 1st, 2022 and the next coupon payment date.
Example 2: Using Cell References
Suppose you have the following data:
- Settlement date: A1
- Maturity date: A2
- Frequency: A3
- Basis: A4
To calculate the number of days to the next coupon payment, you can use the following formula:
COUPPCD(A1, A2, A3, A4)
Assuming that the values in A1 to A4 are valid dates and numbers, this formula will calculate the result.
The COUPPCD function is a useful DAX function in Power BI for calculating the number of days between the settlement date and the next coupon payment date of a bond or a security. By following the steps and examples provided in this article, you can easily use the COUPPCD function in your financial analysis.