<?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: Efficiently including multiple facts in a model in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Efficiently-including-multiple-facts-in-a-model/m-p/1210226#M388308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I didn't meant to use two associated tables else to merge them but not per concatenating else through a mapping or maybe a joining.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Oct 2016 12:23:51 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-10-24T12:23:51Z</dc:date>
    <item>
      <title>Efficiently including multiple facts in a model</title>
      <link>https://community.qlik.com/t5/QlikView/Efficiently-including-multiple-facts-in-a-model/m-p/1210222#M388304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping someone might have some optimisation ideas for an app I'm working on.&amp;nbsp; I've attached an approximation of the issue I have. I have a very large fact table (2.5 billion rows) called "Summary" that appears in an existing app.&amp;nbsp; I've been requested to add a new dataset called "Planning" to this model (planning only contains three million rows, but has a number of columns which don't appear in "Summary."&amp;nbsp; The grain of the planning table is also different. Summary is per Branch, Product and Week whereas "Planning" is only per Product Category and Week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current solution is to concatenate the tables together as illustrated in the attached.&amp;nbsp; The problem I have is that because the "Summary" table is so large, concatenating the "Planning" data is using a huge amount of memory (400 gigs, in case you're interested) even though most of the rows in the added columns are "Null."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attempted a solution with a link table, but because Branch/Product/Week is the lowest grain in the model I ended up with a link table just as large as the "summary" table which means that calculations on the relatively small "Planning Data" measures are very slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question:&amp;nbsp; given the respective size of my tables, is the way I'm currently implementing the best balance of calculation speed for the new table as well as efficiency in memory use (I have 1 terabyte of memory available, but obviously it's not ideal to use most of that in one app)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 13:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Efficiently-including-multiple-facts-in-a-model/m-p/1210222#M388304</guid>
      <dc:creator>nsm1234567</dc:creator>
      <dc:date>2016-10-21T13:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Efficiently including multiple facts in a model</title>
      <link>https://community.qlik.com/t5/QlikView/Efficiently-including-multiple-facts-in-a-model/m-p/1210223#M388305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Concatenating the fact-tables is often a good way to get a good performance (significantly better than a linktable model). But in your case I would also try to map the planning data to the Summary table with Week and Product as Key (which could be removed after them - also a joining might be possible but I assume that mapping won't need as much as RAM for it and also be faster).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 13:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Efficiently-including-multiple-facts-in-a-model/m-p/1210223#M388305</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-10-21T13:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Efficiently including multiple facts in a model</title>
      <link>https://community.qlik.com/t5/QlikView/Efficiently-including-multiple-facts-in-a-model/m-p/1210224#M388306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many distinct values do you have for each of ?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Branch&lt;/LI&gt;&lt;LI&gt;Product&lt;/LI&gt;&lt;LI&gt;Week&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And how many distinct values for ?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Branch | Product concatenated pairs&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 14:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Efficiently-including-multiple-facts-in-a-model/m-p/1210224#M388306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-21T14:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Efficiently including multiple facts in a model</title>
      <link>https://community.qlik.com/t5/QlikView/Efficiently-including-multiple-facts-in-a-model/m-p/1210225#M388307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&amp;nbsp; If I'm understanding you correctly, you're suggesting having the two tables in the data model linked by a "Product/Week" composite key?&amp;nbsp; The issue I had previously was that it was very costly to run things back through the Summary table due to its size.&amp;nbsp; So if I wanted to see a measure from the Planning table per a dimension in the product table I was often getting calculation timeouts even though the Planning table is pretty small relatively speaking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 12:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Efficiently-including-multiple-facts-in-a-model/m-p/1210225#M388307</guid>
      <dc:creator>nsm1234567</dc:creator>
      <dc:date>2016-10-24T12:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Efficiently including multiple facts in a model</title>
      <link>https://community.qlik.com/t5/QlikView/Efficiently-including-multiple-facts-in-a-model/m-p/1210226#M388308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I didn't meant to use two associated tables else to merge them but not per concatenating else through a mapping or maybe a joining.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 12:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Efficiently-including-multiple-facts-in-a-model/m-p/1210226#M388308</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-10-24T12:23:51Z</dc:date>
    </item>
  </channel>
</rss>

