Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Guys,
I'm facing a circular depedency error.
Here is the background:
I have to create a calculated column, which has the logic... if the month number is 1 then a result from a column imported from database (this part is working), if month number is NOT 1 then it has to look for the previous value of addition of two current column values.
Now, the addition of two columns --> these two columns are also have to be a calculated column which is referring back to the column.
let's say the logic is in the 6th cell:
Z = If ( month6 <>1, AA5+AC5, K6 )
AA = Z-V
AC = AA-K
As Here in formula Z, if the month value is not 1 then it has to go to the previous row of addtion of two values of a calculated column.
The dax formulas are:
Now in order to look for previous row, I've created an index and prev index, and put that in the lookupvalue function (lookup is working). But when it comes to col AA and AC it referes back to Z.
In the formula above:
AA+AC is
Solution Tried:
@Idrissshatila @Ahmedx @amitchandak @Ritaf1983 @parry2k @Greg_Deckler @Ashish_Mathur @MFelix
Do give some advice, on how to solve this error
Hello @Kaustubh_94 ,
try creating it on the power query level, this may work.
Proud to be a Super User! | |
At power query level, I think we cannot create calculated columns based on another calculated columns. Column can only be created based on columns which are imported from data source.
yes, exactly so create the first created column in power query.
Proud to be a Super User! | |
this is the issue here... 1st created column depends upon 2nd created col...and the 2nd created col depend on the 1st... its like a=b+c where b=a+d... where a,b,c,d are col to be created, so how do i do it in power query.
this won't work like that, you need to have a place to start with that is available, you can't reference a column that doesn't exists to be the value.
Proud to be a Super User! | |
Thanks...
Is there a way to create an instance of the col that does not exist... because this formula of inter dependency of col works in MS- Excel, but with a warning. So is there a way to replicate this in power bi.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |