What are DURATION MDURATION and PDURATION in power bi DAX

This recipe explains what are DURATION MDURATION and PDURATION in power bi DAX

Recipe Objective - What are DURATION, MDURATION, and DURATION in Power BI DAX?

DURATION - Returns the Macauley duration for an assumed par value of $100.

MDURATION - Returns the modified Macauley duration for a security with an assumed par value of $100.

PDURATION - Returns the number of periods required by an investment to reach a specified value.

Syntax of DURATION -

DURATION(Settlement, Maturity, Coupon, Yld, Frequency, [Basis])

Parameters -

Settlement - The security's settlement date.

Maturity - The security's maturity date.

Coupon - The security's annual coupon rate.

Yld - The security's annual yield.

Frequency - The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.

Returns the Macauley duration.

Syntax of MDURATION -

MDURATION(Settlement, Maturity, Coupon, Yld, Frequency, [Basis])

Parameters -

Settlement - The security's settlement date.

Maturity - The security's maturity date.

Coupon - The security's annual coupon rate.

Yld - The security's annual yield.

Frequency - The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.

Returns the modified Macauley duration.

Syntax of PDURATION -

PDURATION(Rate, Pv, Fv)

Parameters -

Rate - The interest rate per period.

Pv - The present value of the investment.

Fv - The desired future value of the investment.

Returns the number of periods required by an investment to reach a specified value.

In this way, we can use DURATION, MDURATION, and PDURATION functions in Power BI DAX.

What Users are saying..

profile image

Gautam Vermani

Data Consultant at Confidential
linkedin profile url

Having worked in the field of Data Science, I wanted to explore how I can implement projects in other domains, So I thought of connecting with ProjectPro. A project that helped me absorb this topic... Read More

Relevant Projects

MLOps AWS Project on Topic Modeling using Gunicorn Flask
In this project we will see the end-to-end machine learning development process to design, build and manage reproducible, testable, and evolvable machine learning models by using AWS

Stock Price Prediction Project using LSTM and RNN
Learn how to predict stock prices using RNN and LSTM models. Understand deep learning concepts and apply them to real-world financial data for accurate forecasting.

Word2Vec and FastText Word Embedding with Gensim in Python
In this NLP Project, you will learn how to use the popular topic modelling library Gensim for implementing two state-of-the-art word embedding methods Word2Vec and FastText models.

Time Series Classification Project for Elevator Failure Prediction
In this Time Series Project, you will predict the failure of elevators using IoT sensor data as a time series classification machine learning problem.

Predictive Analytics Project for Working Capital Optimization
In this Predictive Analytics Project, you will build a model to accurately forecast the timing of customer and supplier payments for optimizing working capital.

Tensorflow Transfer Learning Model for Image Classification
Image Classification Project - Build an Image Classification Model on a Dataset of T-Shirt Images for Binary Classification

NLP Project to Build a Resume Parser in Python using Spacy
Use the popular Spacy NLP python library for OCR and text classification to build a Resume Parser in Python.

Time Series Analysis with Facebook Prophet Python and Cesium
Time Series Analysis Project - Use the Facebook Prophet and Cesium Open Source Library for Time Series Forecasting in Python

Build a Graph Based Recommendation System in Python -Part 1
Python Recommender Systems Project - Learn to build a graph based recommendation system in eCommerce to recommend products.

Build an End-to-End AWS SageMaker Classification Model
MLOps on AWS SageMaker -Learn to Build an End-to-End Classification Model on SageMaker to predict a patient’s cause of death.