<?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 How to mix data from different sources in Script ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-mix-data-from-different-sources-in-Script/m-p/319784#M496099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you load your second table instead of creating a second table, join it to the first table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (firstone)&lt;/P&gt;&lt;P&gt;LOAD myid, seconddate, otherinformation SQL...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that you have both in the same row, you can do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (firstone)&lt;/P&gt;&lt;P&gt;LOAD myid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(mtype='FIRSTTYPE', firstdate, seconddate) as FinalValue&lt;/P&gt;&lt;P&gt;resident firstone;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that work for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2012 10:58:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-31T10:58:47Z</dc:date>
    <item>
      <title>How to mix data from different sources in Script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-mix-data-from-different-sources-in-Script/m-p/319782#M496096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is a pretty simple but i can't manage to do that &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a script in which i have two queries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;firstone:&lt;/P&gt;&lt;P&gt;LOAD myid,&lt;/P&gt;&lt;P&gt;firstdate,&lt;/P&gt;&lt;P&gt;mytype;&lt;/P&gt;&lt;P&gt;SQL select myid, firstdate,mytype;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;secondone:&lt;/P&gt;&lt;P&gt;LOAD myid,&lt;/P&gt;&lt;P&gt;seconddate,&lt;/P&gt;&lt;P&gt;otherinformation;&lt;/P&gt;&lt;P&gt;SQL select myid, seconddate,otherinformation;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create an object like that :&lt;/P&gt;&lt;P&gt;if(mytype='FIRSTTYPE',firstdate,seconddate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have understood !&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I can do that in an expression or variable but i would like to pre-calculate that during the Script Reload&lt;/P&gt;&lt;P&gt;to be able to have a "virtual" table with myid and the result of my calculation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible ? and how ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 10:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-mix-data-from-different-sources-in-Script/m-p/319782#M496096</guid>
      <dc:creator>fredericvillemi</dc:creator>
      <dc:date>2012-01-31T10:37:59Z</dc:date>
    </item>
    <item>
      <title>How to mix data from different sources in Script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-mix-data-from-different-sources-in-Script/m-p/319783#M496098</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 first join two tables on Primary key so that both dates should be in same table and then in next resident load create newdate by using if condition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;MyId,&lt;/P&gt;&lt;P&gt;Firstdate,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;MyId,&lt;/P&gt;&lt;P&gt;SecondDate&lt;/P&gt;&lt;P&gt;From B;&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;If(MyType='ABC',ForstDate,SecondDate)&lt;/P&gt;&lt;P&gt;Resident T1;&lt;/P&gt;&lt;P&gt;Drop Table T1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 10:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-mix-data-from-different-sources-in-Script/m-p/319783#M496098</guid>
      <dc:creator>vijay_iitkgp</dc:creator>
      <dc:date>2012-01-31T10:58:39Z</dc:date>
    </item>
    <item>
      <title>How to mix data from different sources in Script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-mix-data-from-different-sources-in-Script/m-p/319784#M496099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you load your second table instead of creating a second table, join it to the first table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (firstone)&lt;/P&gt;&lt;P&gt;LOAD myid, seconddate, otherinformation SQL...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that you have both in the same row, you can do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (firstone)&lt;/P&gt;&lt;P&gt;LOAD myid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(mtype='FIRSTTYPE', firstdate, seconddate) as FinalValue&lt;/P&gt;&lt;P&gt;resident firstone;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that work for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 10:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-mix-data-from-different-sources-in-Script/m-p/319784#M496099</guid>
      <dc:creator />
      <dc:date>2012-01-31T10:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to mix data from different sources in Script ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-mix-data-from-different-sources-in-Script/m-p/319785#M496100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frederic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can join those two tables and create a single table by using left, right or full join keywords in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create a sample using full outer join function. It is same as SQL logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I call the logical table that i create with resident function..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Omer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 11:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-mix-data-from-different-sources-in-Script/m-p/319785#M496100</guid>
      <dc:creator />
      <dc:date>2012-01-31T11:05:16Z</dc:date>
    </item>
  </channel>
</rss>

