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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Piinherio
Frequent Visitor

a circular dependency was detected

Hello, 

 

I am trying to measure the stock level of certian items for a project. 

the table below shows the material number, SKU Qty (the quantity of final product to be produced), Qty means the quantity I need of this material to make one product for example material number 89 I need one item to make 1 product for material 99 I need two items of this material to make one product, stock is already there. 

 

I calculated Total Project Item = CALCULATE(SUMX(List1,List1[SKU Qty] * List1[Qty ])) in a column Not a measure. 

 

now I am trying to make a column for the status by  Status = IF(List1[Stock] < List1[Total Project Item], "Low", "ok")

but it shows an error " a circular dependency was detected: List1[total project item], list1[status], List1 [Total project item]

 

Piinherio_0-1682088192800.png

 

https://drive.google.com/file/d/1OUbNQB1jUcbSmqL5jKY1ATWnKUpcP1Ok/view?usp=sharing    Power Bi file

 

is there anyway to solve this. 

 

thanks in advance 

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

Is this what you are looking for?

Screen Capture #914.png

View solution in original post

2 REPLIES 2
HotChilli
Super User
Super User

I think we can reduce this column to :

Total Project Item = List1[SKU Qty] * List1[Qty ]

and the Status column should work OK now.

Give it a go and let me know.

Ahmedx
Super User
Super User

Is this what you are looking for?

Screen Capture #914.png

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.