<?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: Concatenation(?) of 2 fact tables with mixed granularity in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concatenation-of-2-fact-tables-with-mixed-granularity/m-p/524657#M555257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here your app back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2013 12:26:06 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2013-07-25T12:26:06Z</dc:date>
    <item>
      <title>Concatenation(?) of 2 fact tables with mixed granularity</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenation-of-2-fact-tables-with-mixed-granularity/m-p/524655#M555255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to concatenate 2 Fact tables but it seems to be a bit tricky. I've read several documents from Henric(perhaps thats why the title sounds like this) but it drives me crazy and won't work. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that there is somebody out there who can help me with the concatenation. See the attached sample files or my description. I created some simple data, the reality sadly is a "bit" more complex. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Description in short:&lt;/P&gt;&lt;P&gt;Table1 - has orders and dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="45" style="width: 468px; border: 1px solid rgb(0, 0, 0); height: 26px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;Order no&lt;BR /&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Start Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;End Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10001&lt;/TD&gt;&lt;TD&gt;01.01.2010&lt;/TD&gt;&lt;TD&gt;01.10.2010&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2 - some kind of sub-orders(dont know how to call it correctly in english)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="68" style="width: 453px; border: 1px solid rgb(0, 0, 0); height: 35px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Order no&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Sub-Order no.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Start Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;End Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10001&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;01.01.2010&lt;/TD&gt;&lt;TD&gt;02.04.2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10001&lt;/TD&gt;&lt;TD&gt;350&lt;/TD&gt;&lt;TD&gt;10.04.2010&lt;/TD&gt;&lt;TD&gt;06.06.2010&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so on like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally it should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" height="103" style="width: 399px; border: 1px solid rgb(0, 0, 0); height: 105px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;STRONG style="color: #ffffff; text-align: -webkit-center; background-color: #6690bc;"&gt;Order no&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #ffffff; text-align: -webkit-center; background-color: #6690bc;"&gt;Sub-Order no.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #ffffff; text-align: -webkit-center; background-color: #6690bc;"&gt;Start Date&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #ffffff; text-align: -webkit-center; background-color: #6690bc;"&gt;End Date&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10001&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;01.01.2010&lt;/TD&gt;&lt;TD&gt;01.10.2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10001&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;01.01.2010&lt;/TD&gt;&lt;TD&gt;02.04.2010&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10001&lt;/TD&gt;&lt;TD&gt;350&lt;/TD&gt;&lt;TD&gt;10.04.2010&lt;/TD&gt;&lt;TD&gt;06.06.2010&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my sample file I added some flag files for the final table, to make life easier in charts etc. but the concatenation is my main problem. &lt;/P&gt;&lt;P&gt;I think a key&amp;nbsp; like "Order no¦Sub-Order no." or "10001¦0" would be neccessary too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 12:05:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenation-of-2-fact-tables-with-mixed-granularity/m-p/524655#M555255</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2013-07-25T12:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation(?) of 2 fact tables with mixed granularity</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenation-of-2-fact-tables-with-mixed-granularity/m-p/524656#M555256</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 can do this in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Table&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800000;"&gt; [Order no],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&lt;SPAN style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;as &lt;/SPAN&gt;[Sub-Order no],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Start Date],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [End Date]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM &lt;/SPAN&gt;...&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Table1&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Concatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #800000;"&gt; [Order no],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&lt;SPAN style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;[Sub-Order no],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Start Date],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [End Date]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM &lt;/SPAN&gt;....&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Table&lt;/SPAN&gt;2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080;"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN style="color: #808080;"&gt;Ariel&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 12:22:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenation-of-2-fact-tables-with-mixed-granularity/m-p/524656#M555256</guid>
      <dc:creator>ariel_klien</dc:creator>
      <dc:date>2013-07-25T12:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation(?) of 2 fact tables with mixed granularity</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenation-of-2-fact-tables-with-mixed-granularity/m-p/524657#M555257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here your app back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 12:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenation-of-2-fact-tables-with-mixed-granularity/m-p/524657#M555257</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-07-25T12:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation(?) of 2 fact tables with mixed granularity</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenation-of-2-fact-tables-with-mixed-granularity/m-p/524658#M555258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much ... man I was a bit to complicated in my head&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 12:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenation-of-2-fact-tables-with-mixed-granularity/m-p/524658#M555258</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2013-07-25T12:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation(?) of 2 fact tables with mixed granularity</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenation-of-2-fact-tables-with-mixed-granularity/m-p/524659#M555259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx / Danke&amp;nbsp; Marcus &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel a bit stupid right now ^^ 30 degree at the office are not very helpful at these topics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the "best" value for field "sub-order" in the first row (actually it is Order 10001 and sub-order 0 ). Because in the first row there is&amp;nbsp; no sub-order in reality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think of cases where I want to count the suborders for an order. Or does the value not matter and it's better to use a flag field for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 13:12:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenation-of-2-fact-tables-with-mixed-granularity/m-p/524659#M555259</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2013-07-25T13:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation(?) of 2 fact tables with mixed granularity</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenation-of-2-fact-tables-with-mixed-granularity/m-p/524660#M555260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there not a large amount of data (its relative ...) you could use 0 and then count(if(Vorgang &amp;gt;0, Vorgang), otherwise create better a extra flag field with 0 and 1 by sub-orders und then sum(flag).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 14:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenation-of-2-fact-tables-with-mixed-granularity/m-p/524660#M555260</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-07-25T14:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation(?) of 2 fact tables with mixed granularity</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenation-of-2-fact-tables-with-mixed-granularity/m-p/524661#M555261</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;thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would say the amount of data can be called large. There are about 500k+ rows for this table(ok not the same like 50 mio). As you mentioned it is relative. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume summing up the flag field is faster? Is there a difference in memory usage if I use null() instead of 0 or 1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 14:48:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenation-of-2-fact-tables-with-mixed-granularity/m-p/524661#M555261</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2013-07-25T14:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenation(?) of 2 fact tables with mixed granularity</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenation-of-2-fact-tables-with-mixed-granularity/m-p/524662#M555262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum(flag) should be the fastest possibility. Memory usage could be a little bit higher as without flag-field, because it is extra. Towards 0/1 or null() I assume it is about the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 14:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenation-of-2-fact-tables-with-mixed-granularity/m-p/524662#M555262</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-07-25T14:58:55Z</dc:date>
    </item>
  </channel>
</rss>

