<?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: Calculating between two tables - circular dependency? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-between-two-tables-circular-dependency/m-p/3790069#M148097</link>
    <description>&lt;P&gt;This did work. I am hoping you might be able to elaborate a little on why RELATED was necessary for this? I am not sure where the circular dependecy came from. I was able to get the % into table 1, so I am not sure why I couldn't also just lookup the value on pull it into table 3 as well. It doesn't appear as if there is any circular dependency.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In any case, thank you! It is working now.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2024 20:47:12 GMT</pubDate>
    <dc:creator>jwin2424</dc:creator>
    <dc:date>2024-03-25T20:47:12Z</dc:date>
    <item>
      <title>Calculating between two tables - circular dependency?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-between-two-tables-circular-dependency/m-p/3786897#M147913</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have three tables as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1 and Table 3 are joined together with a Many to one reltaionship with the many side being on table 3 and the one side beind on table 1. The cross filter direction with this relationship is 'Both.' They are joined together by the OPP ID.&lt;BR /&gt;&lt;BR /&gt;Table 2 is not joined in any way. It is simply a reference table with some % data on it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Table 1 is the only table with a stage and a quarter number, so I concated the two together and used it as my primary lookup key. I did a lookup from Table 2 to return to % to win. The value of each OPP ID is on Table 3. I did a lookup with the OPP ID to return the concat value. I used the concat value to lookup from table Table and return the %.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have tried this a few ways, and I keep getting a circular dependency error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have tried getting the % to win two different ways. I cant seem to get the % either through the diconnected table nor the connected one. Can anyone help?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I am trying to get the line items on Table 3 to the value and multiply it by the % to win based on the concat number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 19:01:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-between-two-tables-circular-dependency/m-p/3786897#M147913</guid>
      <dc:creator>jwin2424</dc:creator>
      <dc:date>2024-03-22T19:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating between two tables - circular dependency?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-between-two-tables-circular-dependency/m-p/3786916#M147914</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you not do it in Power query ? If the table 2 only purpose is to give a win % to table 1.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 19:16:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-between-two-tables-circular-dependency/m-p/3786916#M147914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-22T19:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating between two tables - circular dependency?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-between-two-tables-circular-dependency/m-p/3787049#M147923</link>
      <description>&lt;P&gt;Well, I dont know how to do lookupvalue in power query. I need to lookup the concat value and both the close quarter and stage are calculated columns from the report dashboard. I dont know how to do that in power query.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here is an example. How do I do this in power query?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Estimated Close Quarter =&lt;/SPAN&gt; &lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[fiscal_quarter]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'&lt;/SPAN&gt;&lt;SPAN&gt;[fiscal_calendardate]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Opportunity&lt;/SPAN&gt;&lt;SPAN&gt;[estimatedclosedate]&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Mar 2024 21:43:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-between-two-tables-circular-dependency/m-p/3787049#M147923</guid>
      <dc:creator>jwin2424</dc:creator>
      <dc:date>2024-03-22T21:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating between two tables - circular dependency?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-between-two-tables-circular-dependency/m-p/3787062#M147924</link>
      <description>&lt;P&gt;I tried this and got the same ciclical reference error&lt;BR /&gt;&lt;BR /&gt;= Table.AddColumn(#"Filtered Rows", "Estimated Close Quarter 2", each Table.First(&lt;BR /&gt;Table.SelectRows(&lt;BR /&gt;Calendar,&lt;BR /&gt;each [fiscal_calendardate] = Opportunity[estimatedclosedate]&lt;BR /&gt;)&lt;BR /&gt;)[fiscal_quarter])&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 22:23:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-between-two-tables-circular-dependency/m-p/3787062#M147924</guid>
      <dc:creator>jwin2424</dc:creator>
      <dc:date>2024-03-22T22:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating between two tables - circular dependency?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-between-two-tables-circular-dependency/m-p/3788735#M148031</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi all&amp;nbsp;,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, thanks for your concern about this case, I have some additions for problem solving.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343802" data-lia-user-login="jwin2424" class="lia-mention lia-mention-user"&gt;jwin2424&lt;/a&gt;&amp;nbsp;, &lt;/SPAN&gt;&lt;SPAN&gt;thank you for giving a specific description of the problem. Based on your description, I may not be able to understand and solve your problem very well. Depending on the content of your text, I will give you the following steps to solve the problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. Create three tables as the picture you show.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The original Table 1.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The original Table 2.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The original Table 3.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In Table1, New column &lt;STRONG&gt;% to win&lt;/STRONG&gt; and input:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;% to win = LOOKUPVALUE(Table2[% to win],Table2[Concat],Table1[Concat])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;In Table 3, New column &lt;STRONG&gt;Concat&lt;/STRONG&gt; and input:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Concat = LOOKUPVALUE(Table1[Concat],Table1[OPP ID],Table3[OPP ID])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. Manage relationships as the text “Table 1 and Table 3 are joined together with a Many to one reltaionship with the many side being on table 3 and the one side beind on table 1. The cross filter direction with this relationship is 'Both.' They are joined together by the OPP ID. Table 2 is not joined in any way. It is simply a reference table with some % data on it.".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. In table 1, New column &lt;STRONG&gt;primary lookup key&lt;/STRONG&gt; as the text “Table 1 is the only table with a stage and a quarter number, so I concated the two together and used it as my primary lookup key.” and input:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;primary lookup key = CONCATENATE(Table1[Stage],Table1[Close Quarter])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4. The operation as the text “I did a lookup from Table 2 to return to % to win. The value of each OPP ID is on Table 3. I did a lookup with the OPP ID to return the concat value. I used the concat value to lookup from table Table and return the %.” has been done in step1.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;5. In Table 3, New column &lt;STRONG&gt;% to win value&lt;/STRONG&gt; as the text “ I am trying to get the line items on Table 3 to the value and multiply it by the % to win based on the concat number.” and input:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;% to win value = Table3[Estimated Value]*RELATED(Table1[% to win])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can modify the above DAX codes according to your needs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have no way of analyzing what you are causing the loop error because I don’t know the data what is.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To better solve your problems, you may need to answer some questions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. What is the data you have used in the Measure &lt;STRONG&gt;Test&lt;/STRONG&gt; as your picture? Please give the data of table &lt;STRONG&gt;Opportunity ,Opportunity Product, Forecast Statistics&lt;/STRONG&gt; with pictures.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. What is your desired outcome? Please give your specific requirements and an example diagram of what to expect.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Caroline Mei&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post &lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 06:41:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-between-two-tables-circular-dependency/m-p/3788735#M148031</guid>
      <dc:creator>v-yanimei-msft</dc:creator>
      <dc:date>2024-03-25T06:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating between two tables - circular dependency?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-between-two-tables-circular-dependency/m-p/3790069#M148097</link>
      <description>&lt;P&gt;This did work. I am hoping you might be able to elaborate a little on why RELATED was necessary for this? I am not sure where the circular dependecy came from. I was able to get the % into table 1, so I am not sure why I couldn't also just lookup the value on pull it into table 3 as well. It doesn't appear as if there is any circular dependency.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In any case, thank you! It is working now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 20:47:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-between-two-tables-circular-dependency/m-p/3790069#M148097</guid>
      <dc:creator>jwin2424</dc:creator>
      <dc:date>2024-03-25T20:47:12Z</dc:date>
    </item>
  </channel>
</rss>

