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
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

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @aolivero,

 

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

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.