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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Gonqq
Helper I
Helper I

Circular Dependency with LOOKUPVALUE

Hi , i'm currently using lookupvalue on some calculated columns and i can't seem to understand as to why the circular dependency is happening. Screenshots:

Gonqq_0-1629388779209.png

Gonqq_1-1629388811369.png

 

 

 

Any help would be highly appreciated.

Thank you

2 ACCEPTED SOLUTIONS
PaulDBrown
Community Champion
Community Champion

See if this video from the gurus at SQLBI helps:

Avoiding circular dependency errors in DAX 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

Hi @PaulDBrown. The video was very clear and I was able to understand why it was happening. That calculated column and the lookupvalue had all the columns from the table BALANCETES depending on it, which means when calculating CVEE-FC it was including the CSEP column.
All i had to do was adding CALCULATE and ALLEXPECT to reduce the columns to what i wanted.
Printscreen:

Gonqq_0-1629399676077.png


Thank you so much, this was bothering me for a long time.

View solution in original post

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

@Gonqq Is Regras[CVEE- FC] a calculated column?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler . Regras[CVEE- FC] is a column from the Table Regras which i import from excel.

Screenshot of a part of table Regras:

Gonqq_0-1629396178256.png

 

PaulDBrown
Community Champion
Community Champion

See if this video from the gurus at SQLBI helps:

Avoiding circular dependency errors in DAX 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi @PaulDBrown. The video was very clear and I was able to understand why it was happening. That calculated column and the lookupvalue had all the columns from the table BALANCETES depending on it, which means when calculating CVEE-FC it was including the CSEP column.
All i had to do was adding CALCULATE and ALLEXPECT to reduce the columns to what i wanted.
Printscreen:

Gonqq_0-1629399676077.png


Thank you so much, this was bothering me for a long time.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.