March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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
Solved! Go to Solution.
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.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
9 | |
3 | |
2 | |
2 | |
2 |