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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
VikasD10
Frequent Visitor

Circular dependency was detected

I have table names as "Detail" in that table contains ID,Status and Date time.

 

I have created one Column (I attached snip Dax in Attachment). Calculated one more Coloum"Detail_rank"that concatinat ID and Rank number

 

I have another"Check" table that also has ID,Status and Date time.in that table also I have created one Coloum (attached snip).Calculated one more Coloum "Check_rank" that concatinat ID and Rank number.

I was trying to create Many to one  relationship between Check_rank(many) and Detail_rank(unique) but giving A circular dependency was detected error while creating relationship 

 

Below is dax for Ra

17110221469278300369652072040584.jpg

Below is the Dax in Check table which create Rank

17110225610132246580294127136664.jpg

 

 4.17 MB of 4.69 MB

 

2 REPLIES 2
VikasD10
Frequent Visitor

Rank_Deatil SWITCH (

TRUE (),

Deatil [Task Activity Name] = "Complete",

RANKX (

FILTER (

ALL (Deatil),

Deatil[ID] EARLIER (Deatil [ID]) && Deatil [Task Activity Name] = "Complete" ,

) Deatil [Activity Status Date Time), ASC ,

) Deatil [Task Activity Name] = "Reassigned", RANKX (

FILTER (

ALL (Deatil),

Deatil [ID] EARLIER (Deatil [ID]) && Deatil [Task Activity Name] = "Reassigned" ),

Deatil [Activity Status Date Time], ASC

) + 100,

Deatil [Task Activity Name] = "Cleared", RANKX (

FILTER (

ALL (Deatil),

Deatil [ID] EARLIER (Deatil [ID]) && Deatil [Task Activity Name) "Cleared" ),

Deatil [Activity Status Date Time), ASC )+ 1000,

Deatil [Task Activity Name] = "Delete", RANKX (

FILTER (

ALL (Deatil),

Deatil [ID] EARLIER (Deatil[ID]) && Deatil[Task Activity Name] "Delete" ),

Deatil [Activity Status Date Time), ASC

) + 2000,

9999 // Default rank for other activities

 

AmiraBedh
Super User
Super User

Can you share your model, and your calculations as text and not images ?


Proud to be a Power BI Super User !

Microsoft Community : https://docs.microsoft.com/en-us/users/AmiraBedhiafi
Linkedin : https://www.linkedin.com/in/amira-bedhiafi/
StackOverflow : https://stackoverflow.com/users/9517769/amira-bedhiafi
C-Sharp Corner : https://www.c-sharpcorner.com/members/amira-bedhiafi
Power BI Community :https://community.powerbi.com/t5/user/viewprofilepage/user-id/332696

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.