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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
chua129
Helper I
Helper I

Needed Help in circular dependency!!!

Hi Guys!

 

I need some help in circular dependency! I have a column that relies on a calculated column that is looked up from another table.  Tried to understand the articles that is posted earlier but i cant seem to! 

 

Thanks! 

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

 

Share some data, describe your question and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

 

Sorry, couldnt show the actual data as I have signed an agreement not to disclose. But here is a sample to what I am facing.

 

I have 3 tables, lets call it A,B and C

 

Table A has a column called Faculty and its specific ID

so eg. SCS - U113 and so on.

 

Table B has a column with the ID. (eg U113)

I have a calculated column that obtains the faculty from Table A using a LOOKUPVALUE(Faculty(Table A), ID(table A), ID(table B)

 

Table C has a column with a grouping and faculty. For example,

Faculty SCS, ACS, OCS belongs to a group call Command.

 

I need to obtain the grouping in Table B based on the calculated column from Table A but it is showing me the circular dependency error. This statement was used...

 

group = IF('Data'[Faculty]="PCS","NO",IF(OR('Data'[Faculty]="OCS",'Data'[Faculty]="SCS"),CALCULATE(FIRSTNONBLANK('Group'[group],1),FILTER('Group','Group'[ID]='Data'[ID])),IF('Data'[Faculty]="VCS",CALCULATE(FIRSTNONBLANK('Group'[group],1),FILTER('Group',' Group'[Cycle key]='Data'[Cycle Key]),ALLEXCEPT(Data,Data[Team])))))

 

Thanks !

Hi @chua129,

I need to obtain the grouping in Table B based on the calculated column from Table A but it is showing me the circular dependency error.

You could still use the LOOKUPVALUE function based on faculty column (the calculated one) in TableB and the faculty column in TableC, to return the group values.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

 

You can share dummy data (in a form that ca be copied in MS Excel).


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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