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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
KK111
Frequent Visitor

Ways to avoid circular dependency

Hello! I am trying to create a calculated column by dividing one column from table 1 by another column from table 2. I use the following: 

 

=sumx(naturaljoin(table1,table2),column 1/ column2)

 

however I get circular dependency error. What can I add to my syntax to create a workaround?

the issue is that I cannot use a measure because I need to slice and dice my data and these two columns do not have direct relationship. 

Usually I use calculate and then all or removefilter function. But I can't use it because it this case I'm dividing kg by % and with calculate I have to use an aggregate function and I can't use an aggregate function with % 

 

thank you 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @KK111 ,

 

You can try to use LOOKUPVALUE function to create a calculated column in Table 1, then use SUMX function to calculate.

 

Column 2 = LOOKUPVALUE(Table2[Sales],Table2[Product],Table1[Product])
Column 3 = SUMX(Table1,Table1[Column 2]/Table1[Quantities])

 

 


Best Regards,
Liang
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

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @KK111 ,

 

You can try to use LOOKUPVALUE function to create a calculated column in Table 1, then use SUMX function to calculate.

 

Column 2 = LOOKUPVALUE(Table2[Sales],Table2[Product],Table1[Product])
Column 3 = SUMX(Table1,Table1[Column 2]/Table1[Quantities])

 

 


Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.