<?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: Extract from the same field the values coming from two source files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extract-from-the-same-field-the-values-coming-from-two-source/m-p/806080#M1044180</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;I would add a source field, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD Product,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'File1' As Source&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM File1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concatenate (Data)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD Product,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'File2' As Source&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM File2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now just use Source as a filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2014 10:48:07 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2014-11-24T10:48:07Z</dc:date>
    <item>
      <title>Extract from the same field the values coming from two source files</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-from-the-same-field-the-values-coming-from-two-source/m-p/806078#M1044178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have uploaded the same field "Product" from 2 different file: the 1st with all the products and the 2nd with just some of them.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Now I'd like to have a table that shows just the product coming from the second file so the user can immediately select these products.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas??&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 10:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-from-the-same-field-the-values-coming-from-two-source/m-p/806078#M1044178</guid>
      <dc:creator />
      <dc:date>2014-11-24T10:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extract from the same field the values coming from two source files</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-from-the-same-field-the-values-coming-from-two-source/m-p/806079#M1044179</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;Rename that field and then use that field as filter&lt;/P&gt;&lt;P&gt;Try like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Product as NewProduct,&lt;/P&gt;&lt;P&gt;Product //Use this if required for creating association else comment it.&lt;/P&gt;&lt;P&gt;from tableNAme;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From above script use NewProduct as filter&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 10:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-from-the-same-field-the-values-coming-from-two-source/m-p/806079#M1044179</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-11-24T10:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Extract from the same field the values coming from two source files</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-from-the-same-field-the-values-coming-from-two-source/m-p/806080#M1044180</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;I would add a source field, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD Product,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'File1' As Source&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM File1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concatenate (Data)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD Product,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'File2' As Source&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM File2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now just use Source as a filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 10:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-from-the-same-field-the-values-coming-from-two-source/m-p/806080#M1044180</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-11-24T10:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Extract from the same field the values coming from two source files</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-from-the-same-field-the-values-coming-from-two-source/m-p/806081#M1044181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I think your best option is to create a field to mark these products when you are loading them I'll need a sample script to be more specific but maybe could be one these options:&lt;/P&gt;&lt;P&gt;- Loading all products and mark those which exists in file 2&lt;/P&gt;&lt;P&gt;ProductTable:&lt;/P&gt;&lt;P&gt;LOAD IdProduct,... &lt;/P&gt;&lt;P&gt;FROM file1;&lt;/P&gt;&lt;P&gt;Concatenate &lt;/P&gt;&lt;P&gt;LOAD IdProduct,... &lt;/P&gt;&lt;P&gt;FROM file2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (ProductTable)&lt;/P&gt;&lt;P&gt;LOAD IdProduct, '1' as _IsFromFile2 &lt;/P&gt;&lt;P&gt;FROM file2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Load products from file2 marked and then load products from file1 wich not exists in file2&lt;/P&gt;&lt;P&gt;ProductTable:&lt;/P&gt;&lt;P&gt; LOAD IdProduct, '1' as _IsFromFile2,... &lt;/P&gt;&lt;P&gt;FROM file2;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD IdProduct, '0' as _IsFromFile2,...&lt;/P&gt;&lt;P&gt;FROM file1 where not exist('IdProduct', IdProduct);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 10:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-from-the-same-field-the-values-coming-from-two-source/m-p/806081#M1044181</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-11-24T10:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Extract from the same field the values coming from two source files</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-from-the-same-field-the-values-coming-from-two-source/m-p/806082#M1044182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I might be wrong but, how can you select Products from the second table only, with your load script ?&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, 24 Nov 2014 10:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-from-the-same-field-the-values-coming-from-two-source/m-p/806082#M1044182</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2014-11-24T10:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Extract from the same field the values coming from two source files</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-from-the-same-field-the-values-coming-from-two-source/m-p/806083#M1044183</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;Nice one. I really like this logic and thanks for teaching this different way to develop script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 11:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-from-the-same-field-the-values-coming-from-two-source/m-p/806083#M1044183</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-11-24T11:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Extract from the same field the values coming from two source files</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-from-the-same-field-the-values-coming-from-two-source/m-p/806084#M1044184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Jonathan solution works fine then I made a table with Source='file2' in the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 14:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-from-the-same-field-the-values-coming-from-two-source/m-p/806084#M1044184</guid>
      <dc:creator />
      <dc:date>2014-11-24T14:44:35Z</dc:date>
    </item>
  </channel>
</rss>

