<?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: join load from files where exists a certain field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/join-load-from-files-where-exists-a-certain-field/m-p/856564#M654981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ira,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get rid of the "join" before "load" since you are doing an outer join, join clause is superfluous and it might be causing the undesired results. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2015 19:55:46 GMT</pubDate>
    <dc:creator>sinanozdemir</dc:creator>
    <dc:date>2015-06-30T19:55:46Z</dc:date>
    <item>
      <title>join load from files where exists a certain field</title>
      <link>https://community.qlik.com/t5/QlikView/join-load-from-files-where-exists-a-certain-field/m-p/856562#M654979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi guys,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I am 'fighting' with QlikView&amp;nbsp; Skript &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; and have a question. My problem is that I have different Excel Files, each containing different Fields (some are common, some not). What I want to do is to load everything only from files containing field 'Denial' with value 'Yes'. I have tried to do that with:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;denial_article:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Each file in filelist('pathtoFiles\*.xlsx')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let findfield = FieldNumber(Denial, '$(file)')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if $(findfield) &amp;gt; 0 then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;join load * from file (ooxml, embedded labels, table is Data) where Denial = 'Yes';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;next file;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;but this does not seem to work... &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can you help me to find the way out?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks in advance&lt;/EM&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 19:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/join-load-from-files-where-exists-a-certain-field/m-p/856562#M654979</guid>
      <dc:creator />
      <dc:date>2015-06-30T19:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: join load from files where exists a certain field</title>
      <link>https://community.qlik.com/t5/QlikView/join-load-from-files-where-exists-a-certain-field/m-p/856563#M654980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide sample excel files also?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 19:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/join-load-from-files-where-exists-a-certain-field/m-p/856563#M654980</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-06-30T19:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: join load from files where exists a certain field</title>
      <link>https://community.qlik.com/t5/QlikView/join-load-from-files-where-exists-a-certain-field/m-p/856564#M654981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ira,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get rid of the "join" before "load" since you are doing an outer join, join clause is superfluous and it might be causing the undesired results. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 19:55:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/join-load-from-files-where-exists-a-certain-field/m-p/856564#M654981</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-06-30T19:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: join load from files where exists a certain field</title>
      <link>https://community.qlik.com/t5/QlikView/join-load-from-files-where-exists-a-certain-field/m-p/856565#M654982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, no I can not. But it looks like -&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OrderNr|Details|...........|Denial&lt;/P&gt;&lt;P&gt;787890| .......................|Yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen that I have forgotten to tell the name of the sheet 'Data', but it still does not work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 04:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/join-load-from-files-where-exists-a-certain-field/m-p/856565#M654982</guid>
      <dc:creator />
      <dc:date>2015-07-01T04:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: join load from files where exists a certain field</title>
      <link>https://community.qlik.com/t5/QlikView/join-load-from-files-where-exists-a-certain-field/m-p/856566#M654983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sinan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try it out today and will give you the answer later. Thank you for the answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 04:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/join-load-from-files-where-exists-a-certain-field/m-p/856566#M654983</guid>
      <dc:creator />
      <dc:date>2015-07-01T04:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: join load from files where exists a certain field</title>
      <link>https://community.qlik.com/t5/QlikView/join-load-from-files-where-exists-a-certain-field/m-p/856567#M654984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to join data from different files, load a dummy table before &lt;STRONG&gt;For Each&lt;/STRONG&gt; loop. Then join will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load 0 as Dummy&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Autogenerate 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;denial_article:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Each file in filelist('pathtoFiles\*.xlsx')&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let findfield = FieldNumber(Denial, '$(file)'); //Added semicolon&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if $(findfield) &amp;gt; 0 then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table_Temp:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;join (Table1)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load * from file where Denial = 'Yes';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif //Removed semicolon&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;next file //Removed semicolon&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Field Dummy From Table1; //Drop the dummy field&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;Try this and let us know the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KKR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 04:30:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/join-load-from-files-where-exists-a-certain-field/m-p/856567#M654984</guid>
      <dc:creator />
      <dc:date>2015-07-01T04:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: join load from files where exists a certain field</title>
      <link>https://community.qlik.com/t5/QlikView/join-load-from-files-where-exists-a-certain-field/m-p/856568#M654985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kranthikumar&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that does not seem to work. &lt;/P&gt;&lt;P&gt;I have solved it through:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table_temp:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;For Each file in filelist('pathtoFiles\*.xlsx')&lt;/STRONG&gt; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;join Load *&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; from file;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;next file&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;table_denial:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;load *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 as dummy&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;resident table_temp where Denial = 'Yes'&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;But still thank you for the answer &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 19:59:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/join-load-from-files-where-exists-a-certain-field/m-p/856568#M654985</guid>
      <dc:creator />
      <dc:date>2015-07-01T19:59:08Z</dc:date>
    </item>
  </channel>
</rss>

