<?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 Linking Problem causes Loops in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Linking-Problem-causes-Loops/m-p/324992#M119711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have three tables..&lt;/P&gt;&lt;P&gt;Table 1 - Billing Header&lt;/P&gt;&lt;P&gt;SalesmanCode&lt;/P&gt;&lt;P&gt;BillingNumber&lt;/P&gt;&lt;P&gt;CustomerNumber&lt;/P&gt;&lt;P&gt;BillingDate (date of Invoice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2 - Billing Detail&lt;/P&gt;&lt;P&gt;BillingNumber&lt;/P&gt;&lt;P&gt;MaterialCode&lt;/P&gt;&lt;P&gt;ProductClassCode&lt;/P&gt;&lt;P&gt;BillingAmount&lt;/P&gt;&lt;P&gt;Tabel 3 - Budget&amp;nbsp; (Note that SalesmanCode and CustomerNumber are the same as in Table 1 and ProductClassCode is isame as in Table 2)&lt;/P&gt;&lt;P&gt;SalesmanCode&lt;/P&gt;&lt;P&gt;CustomerNumber&lt;/P&gt;&lt;P&gt;ProductClassCode&lt;/P&gt;&lt;P&gt;Date (all dates are first of the month)&lt;/P&gt;&lt;P&gt;BudgetAmount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1 and Table 2 links with BillingNumber and I get accurate results. When I add Table 3 I get the message about "One or more loops have been detected . . . . . .&amp;nbsp;&amp;nbsp;&amp;nbsp; In the Table Viewer I get dashed line on ProductClassCode (Table 2 to Table 3) and dashed lines on BillingNumber (Table 1 to Table2). When the users selects a SalesmanCode or CustomerNumber and a ProductClassCode they should see actual sales for the month and the budget amount for that ProductClass. How do I get the Budget Table to link to the Billing tables with causing the "loop" problem and get the results I need.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2011 22:13:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-24T22:13:25Z</dc:date>
    <item>
      <title>Linking Problem causes Loops</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-Problem-causes-Loops/m-p/324992#M119711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have three tables..&lt;/P&gt;&lt;P&gt;Table 1 - Billing Header&lt;/P&gt;&lt;P&gt;SalesmanCode&lt;/P&gt;&lt;P&gt;BillingNumber&lt;/P&gt;&lt;P&gt;CustomerNumber&lt;/P&gt;&lt;P&gt;BillingDate (date of Invoice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2 - Billing Detail&lt;/P&gt;&lt;P&gt;BillingNumber&lt;/P&gt;&lt;P&gt;MaterialCode&lt;/P&gt;&lt;P&gt;ProductClassCode&lt;/P&gt;&lt;P&gt;BillingAmount&lt;/P&gt;&lt;P&gt;Tabel 3 - Budget&amp;nbsp; (Note that SalesmanCode and CustomerNumber are the same as in Table 1 and ProductClassCode is isame as in Table 2)&lt;/P&gt;&lt;P&gt;SalesmanCode&lt;/P&gt;&lt;P&gt;CustomerNumber&lt;/P&gt;&lt;P&gt;ProductClassCode&lt;/P&gt;&lt;P&gt;Date (all dates are first of the month)&lt;/P&gt;&lt;P&gt;BudgetAmount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1 and Table 2 links with BillingNumber and I get accurate results. When I add Table 3 I get the message about "One or more loops have been detected . . . . . .&amp;nbsp;&amp;nbsp;&amp;nbsp; In the Table Viewer I get dashed line on ProductClassCode (Table 2 to Table 3) and dashed lines on BillingNumber (Table 1 to Table2). When the users selects a SalesmanCode or CustomerNumber and a ProductClassCode they should see actual sales for the month and the budget amount for that ProductClass. How do I get the Budget Table to link to the Billing tables with causing the "loop" problem and get the results I need.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 22:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-Problem-causes-Loops/m-p/324992#M119711</guid>
      <dc:creator />
      <dc:date>2011-05-24T22:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Linking Problem causes Loops</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-Problem-causes-Loops/m-p/324993#M119712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached test data to show an example of the problem.&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 17:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-Problem-causes-Loops/m-p/324993#M119712</guid>
      <dc:creator />
      <dc:date>2011-05-25T17:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Linking Problem causes Loops</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-Problem-causes-Loops/m-p/324994#M119713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You got a circular reference. The results for selections in this case are (kind of) unpredictable.. You need to change your data model. &lt;/P&gt;&lt;P&gt;My suggestion is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Fact:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SalesmanCode, BillingNumber, CustomerNumber, BillingMonth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SM1,Invoice1,CN1,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SM1,Invoice2,CN2,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SM1,Invoice3,CN3,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SM2,Invoice4,CN4,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SM2,Invoice5,CN5,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SM3,Invoice6,CN6,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SM3,Invoice7,CN7,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SM1,Invoice8,CN1,2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SM2,Invoice9,CN4,2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SM5,Invoice10,CN77,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SM1,Invoice11,CN2,2&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(Fact)&lt;/P&gt;&lt;P&gt;Load * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; BillingNumber, MaterialCode, ProductClassCode, BillingAmount&lt;/P&gt;&lt;P&gt; Invoice1,abc,RAM,1223.44&lt;/P&gt;&lt;P&gt; Invoice2,def,STRM,456.54&lt;/P&gt;&lt;P&gt; Invoice3,ghi,STRM,789.54&lt;/P&gt;&lt;P&gt; Invoice4,jkl,PE,684.20&lt;/P&gt;&lt;P&gt; Invoice5,mno,PC,78.25&lt;/P&gt;&lt;P&gt; Invoice6,pqr,URL,788.48&lt;/P&gt;&lt;P&gt; Invoice7,stu,URM,751.25&lt;/P&gt;&lt;P&gt; Invoice8,vwx,RAM,425.00&lt;/P&gt;&lt;P&gt; Invoice9,xyz,PE,323.42&lt;/P&gt;&lt;P&gt; Invoice10,CBA,FE,542.97&lt;/P&gt;&lt;P&gt; Invoice11,FED,STRM.987.25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate(Fact)&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;SalesmanCode, CustomerNumber ,BillingMonth,ProductClassCode,BudgetAmount&lt;/P&gt;&lt;P&gt;SM1,CN1,1,RAM,1000.25&lt;/P&gt;&lt;P&gt;SM1,CN1,2,RAM,825&lt;/P&gt;&lt;P&gt;SM1,CN2,1,STRM,500.00&lt;/P&gt;&lt;P&gt;SM1,CN3,1,STRM,250.00&lt;/P&gt;&lt;P&gt;SM2,CN4,1,PE,750.00&lt;/P&gt;&lt;P&gt;SM2,CN5,1,PC,450&lt;/P&gt;&lt;P&gt;SM3,CN6,1,URL,790&lt;/P&gt;&lt;P&gt;SM3,CN7,1,URM,625.00&lt;/P&gt;&lt;P&gt;SM4,CN99,1,ARK,20000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 19:07:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-Problem-causes-Loops/m-p/324994#M119713</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-25T19:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Linking Problem causes Loops</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-Problem-causes-Loops/m-p/324995#M119714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich,&lt;/P&gt;&lt;P&gt;Great, works in the example I gave. However, my tables are a bit more complicated when loading. &lt;/P&gt;&lt;P&gt;Table 1 left joins two other tables and then has a mapping that Table 2 uses. Table 2 also has other tables that are left joined. So how to I left join table 1 to table 2 after the loading and mapping stuff runs?&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 22:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-Problem-causes-Loops/m-p/324995#M119714</guid>
      <dc:creator />
      <dc:date>2011-05-25T22:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Linking Problem causes Loops</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-Problem-causes-Loops/m-p/324996#M119715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After the creation of all tables &lt;/P&gt;&lt;P&gt;you can make &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (Table1)&lt;/P&gt;&lt;P&gt;Load * resident Table2;&lt;/P&gt;&lt;P&gt;drop table Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate(Table1)&lt;/P&gt;&lt;P&gt;load * resident Table3;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Table3;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 03:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-Problem-causes-Loops/m-p/324996#M119715</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-26T03:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Linking Problem causes Loops</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-Problem-causes-Loops/m-p/324997#M119716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Perfect. Thanks Erich.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 15:53:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-Problem-causes-Loops/m-p/324997#M119716</guid>
      <dc:creator />
      <dc:date>2011-05-26T15:53:56Z</dc:date>
    </item>
  </channel>
</rss>

