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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
hagosusng
Frequent Visitor

Calculating asset returns - year, months, quarters, semi-annual, 1yr, 3 yrs, 5 yrs, 10 years, week,

Hi,

 

I am trying to get the returns (in this example - yearly. but i also will like to get it the other periods in the topic) from a table that contains  date (in minutes), value, and index (i added the index column - wasn't part of the original table), both periodic (yearly in this instance) returns and cummulative returns.

 

Below is the link to sample of the table. Not that this is the first 1000 records. The data is over 10 million rows , so i can't put it on excel.

 

Data 

 

Below is the formula i tried and the output i got using a matrix.

 

hagosusng_0-1684573074689.png

 

 

hagosusng_1-1684573084081.png

 

 

hagosusng_2-1684573097936.png

 

 

The problem is that the max(data[close]) function returns the  '(highest value of the year/highest value of previous year) - 1', instead of the '(value of the last minutes recorded of the year/value of the last minutes recorded of the previous year)-1'.

 

Please let me know if further clarication is required.

 

Thank you!

1 REPLY 1
hagosusng
Frequent Visitor

I have included snapshot of the sample file, should you be unable to open the link.

 

hagosusng_0-1684573768297.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors