Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
vannavada
Frequent Visitor

Circular dependency error

I am using 

COUNTROWS(RELATEDTABLE(TableName)) to get to the count. I am trying to duplicate the same column and it is giving the below error.
"A circular dependency is detected; Table(NewColumn), Table(Column), Table(NewColumn).
 
Please advice how to avoid this error and duplicate the measure.
1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @vannavada ,

 

A circular dependency is a situation where two or more objects reference each other in a way that Power BI cannot process them. This can cause errors and unexpected results in your calculations.

To avoid a circular dependency, you need to make sure that your calculated columns do not depend on each other, or on any measures that use CALCULATE. You also need to be careful when creating relationships that involve calculated columns or tables, as they can create hidden dependencies.

If you want to learn more about how to avoid circular dependency errors in DAX, you can check out this article or this post. They explain the most common causes of the error and how to fix them. 

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-jianboli-msft
Community Support
Community Support

Hi @vannavada ,

 

A circular dependency is a situation where two or more objects reference each other in a way that Power BI cannot process them. This can cause errors and unexpected results in your calculations.

To avoid a circular dependency, you need to make sure that your calculated columns do not depend on each other, or on any measures that use CALCULATE. You also need to be careful when creating relationships that involve calculated columns or tables, as they can create hidden dependencies.

If you want to learn more about how to avoid circular dependency errors in DAX, you can check out this article or this post. They explain the most common causes of the error and how to fix them. 

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.