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
Anonymous
Not applicable

Recursive calculation - Workaround?

Hey guys,

I've been stucked in a problem for a few days and I need help.

I want to create a measure to calculates recursively the price for n current Month.

My formula is the same as below:

PriceN = PriceN(month-1)*Lambda + (1-Lambda)*Price(month-1)

Example:

gdoretto_0-1628800297463.png

 

Can anyone help me please to solve this problem within Power BI?

Thanks in advance

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey @Anonymous ,

 

in this blog i describe how table iterators can be used to overcome the lack of recursive capabilities, maybe you will find this useful: Using Table Iterators to calculate a future value - Mincing Data - Gain Insight from Data (minceddata.info)

Hopefully, this helps to tackle your challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

1 REPLY 1
TomMartens
Super User
Super User

Hey @Anonymous ,

 

in this blog i describe how table iterators can be used to overcome the lack of recursive capabilities, maybe you will find this useful: Using Table Iterators to calculate a future value - Mincing Data - Gain Insight from Data (minceddata.info)

Hopefully, this helps to tackle your challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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.