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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
aolivero
Regular Visitor

Calculated column with compounded accumulated performance (for stocks)

Hello everyone,

 

I've been reading a lot regarding accumulated sums in a column, but none of the questions/answers used a case like this, where it's not simply adding numbers, but more related to compounding, so here's the problem:


I've got performances by month of a stock, and I want to calculate the accumulated performance during a year, month by month.

An example of the calculation would be:

Accumulated performance in January = 5%

February's performance = 2.5%

 

Accumulated performance on the first of March = (1 + 0.05) * (1+ 0.025)-1 = 7.625% (NOT 7.5% as it would usually be)

 

And here's how I calculate it on excel (last column): 

 image.png

 

Well, that's all I've got, if you need anything else please let me know, I've been trying this for days.

 

Thank you so much in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @aolivero,

 

You can achieve these in excel side and import table with result to power bi.

 

Maybe you can take a look at below blog to use EXP and LN function to achieve similar effect.(not real recursive calculate)

Recursive Calculations in PowerPivot using DAX

 

In addition, you can also try to create a R visual to use r script to achieve recursive calculation.

R Recursive Function

 

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @aolivero,

 

Actually, dax can achieve rolling calculate, but recursive calculate is not support.

 

Regards,

Xiaoxin Sheng

So...  what I'm asking is not possible?

Anonymous
Not applicable

Hi @aolivero,

 

You can achieve these in excel side and import table with result to power bi.

 

Maybe you can take a look at below blog to use EXP and LN function to achieve similar effect.(not real recursive calculate)

Recursive Calculations in PowerPivot using DAX

 

In addition, you can also try to create a R visual to use r script to achieve recursive calculation.

R Recursive Function

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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