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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.