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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anika3186
Frequent Visitor

Ring dependency detected for second calculated column

Hello,

 

I got an error message on a calculated column. Initial situation: I created a table and a calculated column that gives me sales divided by sales:

 

Average Retail Price = DIVIDE(SalesData[Sales CY], SalesData[QTY CY])

 

I've now added another calculated column that I'd like to do an ABC analysis of based on average sales. I used the following formula here:

 

ABC =

IF(SalesData[Average Retail Price]>9,"A",

IF(Sales Data[Average Retail Price]>8,"B",

IF(Sales Data[Average Retail Price]>7,"'C","D"

)))

 

Now I get the error message:

<ccon>A ring dependency was detected: SalesData[Average Retail Price], SalesData[ABC], SalesData[Average Retail Price].</ccon>

 

Can someone tell me what exactly my error is?

Many Thanks.

Anika

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

Right, so there's the problem.

I think the first thing to say is that calculated columns should not use measures.  That is not good practice.  The next thing to do is find a solution for the issues here.

Maybe you can rewrite Average Retail Price without using measures (it's possible that circular dependency errors will continue since I haven't seen your data or model)) or do it in Power Query.

I think those are good starts.

View solution in original post

4 REPLIES 4
HotChilli
Super User
Super User

Right, so there's the problem.

I think the first thing to say is that calculated columns should not use measures.  That is not good practice.  The next thing to do is find a solution for the issues here.

Maybe you can rewrite Average Retail Price without using measures (it's possible that circular dependency errors will continue since I haven't seen your data or model)) or do it in Power Query.

I think those are good starts.

I changed it and know it works! 🙂

 

Thanks a lot!

HotChilli
Super User
Super User

Are we getting the full information here?

Is Average Retail Price column using  measures or calculated columns or 'normal' columns?

The Average Retail Price column is a calculated column, I created: DIVIDE(SalesData[Sales CY], SalesData[QTY CY])

 

And this calculated column uses measures in the formula (Sales CY & QTY CY are measures)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors