<?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: Keep left from multiple files in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Keep-left-from-multiple-files/m-p/866092#M11984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Keep option prevents the files from automatically concatenating and you cannot force concatenation with the concatenate keyword. You can load the files using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Exists(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;transaction_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the load statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jul 2015 06:23:55 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2015-07-02T06:23:55Z</dc:date>
    <item>
      <title>Keep left from multiple files</title>
      <link>https://community.qlik.com/t5/App-Development/Keep-left-from-multiple-files/m-p/866090#M11982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying load complimentary data from multiple files keeping the records that exist on a previously loaded table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transactions:&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;select * from transactions;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feedback:&lt;/P&gt;&lt;P&gt;LEFT KEEP (Transactions) LOAD transaction_id as trans_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; disposition&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [lib://feedback files/*.txt]&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Feedback &amp;lt;&amp;lt; pwmb_dispositions 06-24&lt;/P&gt;&lt;P&gt;Lines fetched: 238&lt;/P&gt;&lt;P&gt;Feedback-1 &amp;lt;&amp;lt; pwmb_dispositions 06-26&lt;/P&gt;&lt;P&gt;Lines fetched: 133&lt;/P&gt;&lt;P&gt;Feedback-2 &amp;lt;&amp;lt; pwmb_dispositions 06-27&lt;/P&gt;&lt;P&gt;Lines fetched: 116&lt;/P&gt;&lt;P&gt;Feedback-3 &amp;lt;&amp;lt; pwmb_dispositions 06-28&lt;/P&gt;&lt;P&gt;Lines fetched: 145&lt;/P&gt;&lt;P&gt;Feedback-4 &amp;lt;&amp;lt; pwmb_dispositions 06-29&lt;/P&gt;&lt;P&gt;Lines fetched: 30&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;$Syn 1 = trans_id+disposition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is a synthetic key is generated. Some conclusions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If I remove the "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;LEFT KEEP (Transactions)" the data from the files are loaded fine (without the synthetic key) but not filtered.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If I remove the "*.txt" and load a single file, the synthetic key is not generated and the data is filtered.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Is there any other way to achieve my goal?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thanks &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 22:48:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Keep-left-from-multiple-files/m-p/866090#M11982</guid>
      <dc:creator />
      <dc:date>2015-07-01T22:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Keep left from multiple files</title>
      <link>https://community.qlik.com/t5/App-Development/Keep-left-from-multiple-files/m-p/866091#M11983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to filter data use exits functions end of the table like based but &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;transaction_id should exists in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Transactions&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Transactions:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load *,;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select * from transactions;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Feedback:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; LOAD transaction_id as trans_id,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; disposition&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [lib://feedback files/*.txt]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(txt, codepage is 1252, embedded labels, delimiter is '\t', msq) where exsits(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;transaction_id)&lt;/SPAN&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 06:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Keep-left-from-multiple-files/m-p/866091#M11983</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2015-07-02T06:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Keep left from multiple files</title>
      <link>https://community.qlik.com/t5/App-Development/Keep-left-from-multiple-files/m-p/866092#M11984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Keep option prevents the files from automatically concatenating and you cannot force concatenation with the concatenate keyword. You can load the files using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Exists(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;transaction_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the load statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 06:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Keep-left-from-multiple-files/m-p/866092#M11984</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-07-02T06:23:55Z</dc:date>
    </item>
  </channel>
</rss>

