<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Ways to avoid circular dependency in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Ways-to-avoid-circular-dependency/m-p/2390977#M34938</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/355054"&gt;@KK111&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try to use &lt;A href="https://docs.microsoft.com/en-us/dax/lookupvalue-function-dax" target="_self"&gt;LOOKUPVALUE&lt;/A&gt; function to create a calculated column in Table 1, then use SUMX function to calculate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column 2 = LOOKUPVALUE(Table2[Sales],Table2[Product],Table1[Product])
Column 3 = SUMX(Table1,Table1[Column 2]/Table1[Quantities])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Mar 2022 03:03:19 GMT</pubDate>
    <dc:creator>V-lianl-msft</dc:creator>
    <dc:date>2022-03-14T03:03:19Z</dc:date>
    <item>
      <title>Ways to avoid circular dependency</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Ways-to-avoid-circular-dependency/m-p/2386179#M34867</link>
      <description>&lt;P&gt;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:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=sumx(naturaljoin(table1,table2),column 1/ column2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however I get circular dependency error. What can I add to my syntax to create a workaround?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;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 %&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 12:23:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Ways-to-avoid-circular-dependency/m-p/2386179#M34867</guid>
      <dc:creator>KK111</dc:creator>
      <dc:date>2022-03-10T12:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ways to avoid circular dependency</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Ways-to-avoid-circular-dependency/m-p/2390977#M34938</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/355054"&gt;@KK111&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try to use &lt;A href="https://docs.microsoft.com/en-us/dax/lookupvalue-function-dax" target="_self"&gt;LOOKUPVALUE&lt;/A&gt; function to create a calculated column in Table 1, then use SUMX function to calculate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column 2 = LOOKUPVALUE(Table2[Sales],Table2[Product],Table1[Product])
Column 3 = SUMX(Table1,Table1[Column 2]/Table1[Quantities])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 03:03:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Ways-to-avoid-circular-dependency/m-p/2390977#M34938</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2022-03-14T03:03:19Z</dc:date>
    </item>
  </channel>
</rss>

