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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
askugor
New Member

Strange Circular Dependency issue

I've made very simple pbix (only one table with 2 columns and 6 rows) where I've got circular dependency error in calculated column.

Please, does anybody know what's wrong with this calculated column?Strange Circular Dependency.jpg

1 ACCEPTED SOLUTION

Hi @askugor,

Let me first apologize for not looking at your formula correctly I was on my cellphone and not on the computer, it's not an excuse for pointing a bad answer but again sorry.

Regarding your question check the post below about circulary dependance.

https://www.sqlbi.com/articles/avoiding-circular-dependency-errors-in-dax/

As you can see the use of VALUES, DISTINCT and ALL in calculated tables can many times create circulary dependecy due to the internal dax motor and how this formulas are calculated.

Hope this helps, and my apologies once again.

Regards,
MFelix

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

4 REPLIES 4
MFelix
Super User
Super User

Hi @askugor,

You are calculating a column and then placing a filter on the full table this includes the calculated column so the circular dependency.

Try to change the table in filter to ALL(TestTable[NR]).

Regards,
MFelix

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Thanks MFelix,

 

then I have another question:)

Why this slightly changed formula doesn't make circular dependency:

 

TestColumn = CALCULATE(CONCATENATEX(TestTable;TestTable[Name];"-");FILTER(TestTable;TestTable[Nr]<EARLIER(TestTable[Nr])))
 
I've just removed VALUES and didn't insert ALL.
 
Thank you
 
 
 

Hi @askugor,

Let me first apologize for not looking at your formula correctly I was on my cellphone and not on the computer, it's not an excuse for pointing a bad answer but again sorry.

Regarding your question check the post below about circulary dependance.

https://www.sqlbi.com/articles/avoiding-circular-dependency-errors-in-dax/

As you can see the use of VALUES, DISTINCT and ALL in calculated tables can many times create circulary dependecy due to the internal dax motor and how this formulas are calculated.

Hope this helps, and my apologies once again.

Regards,
MFelix

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Dear MFelix,

 

no need to apologize:)

Thanks for looking at it so quickly.

 

I wasn't aware of this peculiarity with VALUES, DISTINCT and ALL in CALCULATE regarding circular dependency and internal DAX engine.

 

Thanks again

 

Best regards

 

Alen

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors