<?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 Join two qvds in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234128#M85597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;I didn't concatenate or Join two tables becuase the two facts have different kind of calendar.So I linked my second table to main Fact table with a common key as you said using f1 &amp;amp; '/' &amp;amp; f2 &amp;amp; '/' &amp;amp; f3 as %_JoinKey.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Feb 2010 19:22:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-09T19:22:55Z</dc:date>
    <item>
      <title>Join two qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234120#M85589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to know what is the best way to join two tables with 5 same Columns and again each table has 3 different columns.The tables examples are attached.Bothe Tables are qvds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 18:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234120#M85589</guid>
      <dc:creator />
      <dc:date>2010-02-08T18:41:18Z</dc:date>
    </item>
    <item>
      <title>Join two qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234121#M85590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your tables are not huge, just join it:&lt;/P&gt;&lt;P&gt;Tab:&lt;BR /&gt;LOAD * from QVD1.qvd(qvd);&lt;/P&gt;&lt;P&gt;Left join (Tab)&lt;BR /&gt;LOAD * from QVD2.qvd(qvd;&lt;/P&gt;&lt;P&gt;Then it will automatically join these two tables using the common fields.&lt;/P&gt;&lt;P&gt;Other option is to create a concatenated key merging contents of first 5 fields and storing them as %_JoinKey field.Idea would be to have it prepared bedore you save QVD files and save it in the QVD itself.&lt;BR /&gt;For concatenation, good practice is to use a delimiter like "/" for merging contents of multiple fields into one. Something like LOAD f1 &amp;amp; '/' &amp;amp; f2 &amp;amp; '/' &amp;amp; f3 as %_JoinKey,.....&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 18:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234121#M85590</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-08T18:48:00Z</dc:date>
    </item>
    <item>
      <title>Join two qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234122#M85591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh&lt;/P&gt;&lt;P&gt;Thanks for your reply&lt;/P&gt;&lt;P&gt;For real my table 1 : has 9 Key columns same as table 2, ---&amp;gt; 17 coluns same as table 2 ,&lt;/P&gt;&lt;P&gt;----&amp;gt; 5 columns different from table 2&lt;/P&gt;&lt;P&gt;and Table 2: has 9 key columns same as table 1, ---&amp;gt; 17 coluns same as table 1 ,&lt;/P&gt;&lt;P&gt;----&amp;gt; 7 columns different from table 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I run the following script it goes fine but I cannot close my debug window and I have to kill my application.&lt;/P&gt;&lt;P&gt;Sub LoadFacts // Every new analysisgid will call this subroutine&lt;/P&gt;&lt;P&gt;Tab:&lt;/P&gt;&lt;P&gt;LOAD *&lt;BR /&gt;FROM Facts_$(vAnlys_Gid)_Tab1.qvd (qvd);&lt;BR /&gt;concatenate(Tab)&lt;BR /&gt;Load *&lt;BR /&gt;FROM Facts_$(vAnlys_Gid)_Tab2.qvd (qvd);&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 19:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234122#M85591</guid>
      <dc:creator />
      <dc:date>2010-02-08T19:07:39Z</dc:date>
    </item>
    <item>
      <title>Join two qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234123#M85592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And how much data in tose QDVs you re dealing with?&lt;/P&gt;&lt;P&gt;One of the problem is that you are defining Tab inside Sub. I would rather do it outside before you call sub first time. You can load null() as dummy to initiate Tab. Then inside Sub I would do Concatenate to Tab for both QVD loads.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 22:14:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234123#M85592</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-08T22:14:53Z</dc:date>
    </item>
    <item>
      <title>Join two qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234124#M85593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tab:&lt;/P&gt;&lt;P&gt;sub LoadFacts&lt;/P&gt;&lt;P&gt;Load ...&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;end sub ...&lt;/P&gt;&lt;P&gt;70 million rows all qvds together&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 22:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234124#M85593</guid>
      <dc:creator />
      <dc:date>2010-02-08T22:32:32Z</dc:date>
    </item>
    <item>
      <title>Join two qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234125#M85594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I meant was that you could try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Sub LoadFact (cnt)&lt;BR /&gt; Concatenate(Fact)&lt;BR /&gt; LOAD $(cnt) as Field1 autogenerate 1;&lt;BR /&gt;&lt;BR /&gt; Concatenate(Fact)&lt;BR /&gt; LOAD $(cnt) as Field2 autogenerate 1;&lt;BR /&gt;End Sub&lt;BR /&gt;Fact:&lt;BR /&gt;Load null() as DummyField autogenerate 1;&lt;BR /&gt;for i = 1 to 100&lt;BR /&gt; Call LoadFact i;&lt;BR /&gt;next i&lt;BR /&gt;drop field DummyField;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 00:26:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234125#M85594</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-09T00:26:31Z</dc:date>
    </item>
    <item>
      <title>Join two qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234126#M85595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 06:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234126#M85595</guid>
      <dc:creator />
      <dc:date>2010-02-09T06:18:12Z</dc:date>
    </item>
    <item>
      <title>Join two qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234127#M85596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did it work for you? If so, could you please validate the asnwer helped you? This will help others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 17:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234127#M85596</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-09T17:22:08Z</dc:date>
    </item>
    <item>
      <title>Join two qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234128#M85597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;I didn't concatenate or Join two tables becuase the two facts have different kind of calendar.So I linked my second table to main Fact table with a common key as you said using f1 &amp;amp; '/' &amp;amp; f2 &amp;amp; '/' &amp;amp; f3 as %_JoinKey.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 19:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-two-qvds/m-p/234128#M85597</guid>
      <dc:creator />
      <dc:date>2010-02-09T19:22:55Z</dc:date>
    </item>
  </channel>
</rss>

