<?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 Loop problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-problem/m-p/221839#M74609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- Link both "Sales" and "Budget" gives loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Disconnecting only 1 table "Budget" gives wrong results (cf. attached file "loop problem - budget disconnected.qvw").&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/8688.1disconencted.PNG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/8688.1disconencted.PNG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Budget lines should be "4".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- That's why I use the island approach disconnecting the 2 tables "Sales" and "Budget" (cf. attached file "loop problem - sales &amp;amp; budget disconnected.qvw").&lt;/P&gt;&lt;P&gt;Here, the results are OK.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/5481.2disconencted.PNG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/5481.2disconencted.PNG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;BUT,&lt;/B&gt; my problem is that with 5'000'000 lines in "Sales", the graph cannot refresh !!!&lt;/P&gt;&lt;P&gt;(--&amp;gt; my first post)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jul 2010 10:52:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-13T10:52:37Z</dc:date>
    <item>
      <title>Loop problem</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-problem/m-p/221835#M74605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;Here is my model :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1930_sourceID:1930" /&gt;&lt;/P&gt;&lt;P&gt;As you can see, I have a loop problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I have this kind of problem, I usually do the following :&lt;/P&gt;&lt;P&gt;- create a master table for "Products" (or "Cutomers")&lt;BR /&gt;- use a "if" statement in my expression to make the link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For exemple : if a want to make a graph showing "sales" and "budget" by "product", I use the dimension "MasterProduct",&lt;/P&gt;&lt;P&gt;For "sales" I use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=sum(if(Sales_ProductID = MasterProductID, Amount))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;For "budget" I use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=sum(if(Budget_ProductType = MasterProductType, Budget))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I this case, I have more than 5'000'000 lines in "Sales" and many lines in "Customers" and "Product". QV can't make the calculation (out of memory, or application freezes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an idea of another solution ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 10:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-problem/m-p/221835#M74605</guid>
      <dc:creator />
      <dc:date>2010-07-13T10:03:44Z</dc:date>
    </item>
    <item>
      <title>Loop problem</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-problem/m-p/221836#M74606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicolas,&lt;/P&gt;&lt;P&gt;I have faced this loop problem. So, for this, i have renamed the fields, which create loosen table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 10:11:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-problem/m-p/221836#M74606</guid>
      <dc:creator />
      <dc:date>2010-07-13T10:11:14Z</dc:date>
    </item>
    <item>
      <title>Loop problem</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-problem/m-p/221837#M74607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should resolve your loop data model.&lt;/P&gt;&lt;P&gt;For example, you can rename Product type in Budget table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 10:11:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-problem/m-p/221837#M74607</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-07-13T10:11:28Z</dc:date>
    </item>
    <item>
      <title>Loop problem</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-problem/m-p/221838#M74608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;sparur wrote:&lt;BR /&gt;For example, you can rename Product type in Budget table. &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Yes, this is what I usually do when I face this kind of problem :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I rename "ProductType" to "Budget_ProductType" and use a "if" statement in my expression (like said in my first post).&lt;/P&gt;&lt;P&gt;The problem is I have to many rows, the "if" is too long to compute...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 10:19:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-problem/m-p/221838#M74608</guid>
      <dc:creator />
      <dc:date>2010-07-13T10:19:21Z</dc:date>
    </item>
    <item>
      <title>Loop problem</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-problem/m-p/221839#M74609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- Link both "Sales" and "Budget" gives loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Disconnecting only 1 table "Budget" gives wrong results (cf. attached file "loop problem - budget disconnected.qvw").&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/8688.1disconencted.PNG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/8688.1disconencted.PNG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Budget lines should be "4".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- That's why I use the island approach disconnecting the 2 tables "Sales" and "Budget" (cf. attached file "loop problem - sales &amp;amp; budget disconnected.qvw").&lt;/P&gt;&lt;P&gt;Here, the results are OK.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/5481.2disconencted.PNG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/5481.2disconencted.PNG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;BUT,&lt;/B&gt; my problem is that with 5'000'000 lines in "Sales", the graph cannot refresh !!!&lt;/P&gt;&lt;P&gt;(--&amp;gt; my first post)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 10:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-problem/m-p/221839#M74609</guid>
      <dc:creator />
      <dc:date>2010-07-13T10:52:37Z</dc:date>
    </item>
    <item>
      <title>Loop problem</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-problem/m-p/221840#M74610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(2nd file)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 10:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-problem/m-p/221840#M74610</guid>
      <dc:creator />
      <dc:date>2010-07-13T10:53:28Z</dc:date>
    </item>
    <item>
      <title>Loop problem</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-problem/m-p/221841#M74611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you change the field name back to ProductType in the Budget table, left join your product table onto your sales table, then drop the sales table, the loop goes away and you get a synthetic key on CustID and ProductType. On the surface that sounds right to me. Then remove the if() from your Budget expression, and you get the totals of 4 and 4. Not sure if everything else will be like you want it, but that part seems to be, and it should be efficient for large data sets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jul 2010 00:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-problem/m-p/221841#M74611</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-07-14T00:12:06Z</dc:date>
    </item>
  </channel>
</rss>

