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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Super User
Super User

@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!:
Power BI Cookbook Third Edition (Color)

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors