Forum Discussion
Repeated Calculated Column Optimization
Hi NBU_FFF ,
Apologies, my bad, DAX does not support true recursion, especially in calculated columns or tables where the value of a row depends on the value of a previous row in the same column. If you're trying to implement logic where each "DayN" calculation depends on the previous day’s result, DAX is not the right tool for this kind of recursion.
Best regards,
DataNinja777 Thanks for your help again. I tried but showed error below:
Seemed DAX not support Recursive, not sure how you achieve that without error.
I attached my PBI file here, could you pls have a look?
- Anonymous1 year agoNot applicable
Hi NBU_FFF,
DAX doesn't support true recursion in calculated columns or tables because it lacks row-by-row iteration based on previous results. Since Power Query isn't an option either, the best approach would be to use a measure instead of calculated columns.
Limitation: This won’t work for deep recursion across multiple rows because DAX measures rely on context, not row-by-row memory like Power Query.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Regards,
Vinay Pabbu