Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
ssstaud
Frequent Visitor

Error

 
4 REPLIES 4
Anonymous
Not applicable

Hi @ssstaud ,

Could you please provide the calculation logic of weighted time to maturity(Y axis)? As checked the data of transactions table, it only have start_date. So how can we get the weighted time to maturity?  It will display as the specific date, and equal to start_date plus the number of days for xxx?

Best Regards

erer

Anonymous
Not applicable

Hi @ssstaud ,

According to the revised history of your post, I updated your sample pbix file(see attachment). Please check whether that is what you want.

yingyinr_0-1621404392751.png

If the above one is not your expected result, please provide more details(calculation logic and specific examples) for your expected result. Thank you.

Best Regards

Hello @Anonymous, 

Thank you so much for helping me and sorry for deleting it, thought that nobody would care about this. 

Sadly it is not the solution I was looking for.  

I will try to depict my problem better this time. I have updated the pbix and and excel files on the link: https://mega.nz/folder/vlo0RCJS#Kxh79nbxIEPh05wX-h1hhw 

What are the important values here:
mature_at: the time when our company has to pay the money back to the client 
amount: how much money we have to pay back (i.e. the weight)


The calculation logic is better described by this:

ssstaud_0-1621507839038.png

How it works: Lets say that in may 2016 a person bought a bond that matures in 5 yrs for the amount of $100. So WAM is for may 5 yrs. For June 2016 it is 4 yrs 11 months.
In July sb. bought a bond of the same value of $100 that also matures in 5 yrs. So for July 2016 the WAM is 4 yrs 11 months, because:

ssstaud_1-1621508455787.png

And the graph should look like this (eventually ending in a zero, because all the bonds matured i.e. the money was given back to the client) 

ssstaud_2-1621508672121.png

 

Thank you once again for helping me!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.