Forum Discussion
Rsanjuan
9 years agoAdvocate III
If - Then Calculation Problems
Hi, I am having trouble creating an If - Then calculation and was hoping someone here can help. I am trying to calculate the current year revenue and previous year revenue for different bus...
Rsanjuan
9 years agoAdvocate III
mattbrice
9 years agoSolution Sage
What exactly does circular dependency error message say?
Usually with calculated columns the circular dependency is because of the use of a CALCULATE statement. CALCULATE transitions all the other columns in the table into the filter context for your calculation - including other calculated columns. So you most likely have the new columns trying to transition each other into their respective filter contexts which is causing the error. Chicken of the egg syndrome: DAX can't resolve one calculated column before the other which is needed to complete calculation. To combat that, I usually use ALLEXCEPT() to remove the "other" column from the current columns context transition.