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 August 31st. Request your voucher.

Reply
lbaysinger20
New Member

Recursive Calculation in DAX

I am currently trying to perform a price forecast calculation in DAX in excel. I have quarterly price data and a base price. I need to take the base price and add the price difference of the previous two quarters to the base price to find a new calculated price. This needs to be repeated using the new calculated price as the base price and carry on for future pricing. An image of the Excel logic is included, for example. DAX code to avoid self-referencing would help a lot. Calculated columns are ok, as I believe that is the only way to reach the goal at this point. Thank you!

lbaysinger20_0-1741876290989.png

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

You cannot do conditional aggregations in DAX. Your only option is List.Accumulate in Power Query.

View solution in original post

5 REPLIES 5
v-veshwara-msft
Community Support
Community Support

Hi @lbaysinger20 ,

Following up to see if your query has been resolved. If any of the responses helped, please consider marking the relevant reply as the 'Accepted Solution' to assist others with similar questions.

If you're still facing issues, feel free to reach out.

Thank you.

v-veshwara-msft
Community Support
Community Support

Hi @lbaysinger20 ,

Just checking in to see if you query is resolved and if any responses were helpful. If so, kindly consider marking the helpful reply as 'Accepted Solution' to help others with similar queries. 

Otherwise, feel free to reach out for further assistance.

Thank you.

v-veshwara-msft
Community Support
Community Support

Hi @lbaysinger20 ,

Thank you for engaging with the Microsoft Fabric Community.

Just following up to check if your query has been resolved and whether the responses from @lbendlin  and @Deku  were helpful. If so, please consider marking the helpful replies as Accepted Solutions to assist others with similar queries. If further assistance is needed, please reach out.
Thank you.

Deku
Super User
Super User

You can have a look at the Dax financial functions. Not used them myself but there might be something there


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!
lbendlin
Super User
Super User

You cannot do conditional aggregations in DAX. Your only option is List.Accumulate in Power Query.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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