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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

DAX - circular dependency

Hi,

 

I keep running into: A circular dependency was detected: Consumer[Companyname], Consumer[Companynameknown], Consumer[Companyname].

 

Here is a simplified view of the tables used (with the Companynameknown as desired column).

 

Companytable:

companyID

CompanyName

 

 

1

Aaa

 

 

2

Bbb

 

 

3

 

 

 

4

Ccc

 

 

5

 

 

 

6

 

 

 

7

ddd

 

 

 

Consumer table

Companyid

Companyname

Consumerid

Companynameknown

 

24

Abc

544

Yes

 

44

 

545

No

 

69

Bcd

546

Yes

 

178

Dff

547

Yes

 

244

Etc

548

Yes

 

 

Where in the Consumer table:

Companyname = LOOKUPVALUE(Companytable[CompanyName],Company[companyID],[companyid])

 

I tried to get the Companynameknown based upon the content of the Consumer[companyname] column ->

Companynameknown= if(Consumer[Companyname]<>blank(),"yes","no").

Based upon articles in the forum I tried to achieve this with e.g. measures, with allselected, etc. etc. but keep running into the same error message. For me it is not an option to remove the relationship between the tables.

 

All suggestions are welcome!

 

Thanks in advance
(worst)Kees

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Since you have established a relationship between Consumer table and Companytable, please try using the RELATED function.

 

Companyname = 
RELATED ( Companytable[CompanyName] )
Companynameknown = 
IF ( [Companyname] = BLANK (), "yes", "no" )

vkkfmsft_1-1652420988987.png

vkkfmsft_0-1652420965866.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
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

3 REPLIES 3
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Since you have established a relationship between Consumer table and Companytable, please try using the RELATED function.

 

Companyname = 
RELATED ( Companytable[CompanyName] )
Companynameknown = 
IF ( [Companyname] = BLANK (), "yes", "no" )

vkkfmsft_1-1652420988987.png

vkkfmsft_0-1652420965866.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@Anonymous , if Companyname is in Consumer table as column

this should work as a new column

 

Companynameknown= if(isblank(Consumer[Companyname]),"yes","no")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks @amitchandak ,
Unfortunately this still gives me the same error:

Worstkees_0-1652210868018.png
All suggestions are welcome!

Thanks,
(worst)Kees

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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