<?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: Load files and compare automatically in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-files-and-compare-automatically/m-p/1688108#M592933</link>
    <description>&lt;P&gt;Have a look at the attached sample&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2020 13:14:29 GMT</pubDate>
    <dc:creator>Frank_Hartmann</dc:creator>
    <dc:date>2020-03-26T13:14:29Z</dc:date>
    <item>
      <title>Load files and compare automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Load-files-and-compare-automatically/m-p/1687952#M592928</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can some one help me on below query?&lt;/P&gt;&lt;P&gt;I have some 100 files, i want to load one file and compare it to other and save the output.&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp; first i want to load day 1 file compare it to day 2 file save the missing data in ouput.csv&lt;/P&gt;&lt;P&gt;&amp;nbsp;next load day 2 file compare it to day3 file&amp;nbsp;save the missing data in ouput.csv&lt;/P&gt;&lt;P&gt;like this it should keep on run in single load ...&lt;/P&gt;&lt;P&gt;Files are distinguished with date stamp.&lt;/P&gt;&lt;P&gt;below is the example which im trying out.&lt;/P&gt;&lt;P&gt;table:&lt;/P&gt;&lt;P&gt;load user_id,&lt;/P&gt;&lt;P class="lia-align-justify"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;status&lt;/P&gt;&lt;P class="lia-align-justify"&gt;from day1.csv&lt;/P&gt;&lt;P class="lia-align-justify"&gt;left join (table)&lt;/P&gt;&lt;P class="lia-align-justify"&gt;load user_id,&lt;/P&gt;&lt;P class="lia-align-justify"&gt;status,&lt;/P&gt;&lt;P class="lia-align-justify"&gt;'y' as flag&lt;/P&gt;&lt;P class="lia-align-justify"&gt;from day2.csv&lt;/P&gt;&lt;P class="lia-align-justify"&gt;output:&lt;/P&gt;&lt;P class="lia-align-justify"&gt;Load user_id&lt;/P&gt;&lt;P class="lia-align-justify"&gt;if(flag='y',status,'excluded') as status&lt;/P&gt;&lt;P class="lia-align-justify"&gt;resident table;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;like above it should run automtically for all the days, for loop we have to use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 09:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-files-and-compare-automatically/m-p/1687952#M592928</guid>
      <dc:creator>ManiSK</dc:creator>
      <dc:date>2020-03-26T09:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Load files and compare automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Load-files-and-compare-automatically/m-p/1687961#M592929</link>
      <description>I believe what you are looking for is an incremental load&lt;BR /&gt;&lt;BR /&gt;Follow these steps&lt;BR /&gt;&lt;BR /&gt;1. Load 1st file initial file ;&lt;BR /&gt;2. Create a variable and store max value form Table;&lt;BR /&gt;3. Concatenate the second table and use the where clause (Where Date &amp;gt; Var)&lt;BR /&gt;4. Use the star * in the concatenated version path file to automatically pick up all the files.&lt;BR /&gt;&lt;BR /&gt;A detailed example:&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Incremental-Load-not-working/m-p/1636553" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Development/Incremental-Load-not-working/m-p/1636553&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Mar 2020 07:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-files-and-compare-automatically/m-p/1687961#M592929</guid>
      <dc:creator>Arslan_Ahmed</dc:creator>
      <dc:date>2020-03-26T07:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Load files and compare automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Load-files-and-compare-automatically/m-p/1687963#M592930</link>
      <description>&lt;P&gt;Hi Arlsan,&lt;/P&gt;&lt;P&gt;i want to compare the files and save the difference of those two files&lt;/P&gt;&lt;P&gt;like day 1 and day2 then day2 and day3 then day3 and day4 in a single run.&lt;/P&gt;&lt;P&gt;May i&amp;nbsp; know how incremental load helps here?&lt;/P&gt;&lt;P&gt;can you pls provide some examples? for my understanding&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 07:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-files-and-compare-automatically/m-p/1687963#M592930</guid>
      <dc:creator>ManiSK</dc:creator>
      <dc:date>2020-03-26T07:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Load files and compare automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Load-files-and-compare-automatically/m-p/1687983#M592931</link>
      <description>&lt;P&gt;If you could possibly share a sample of your data or code you've written , will be easier to understand .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 08:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-files-and-compare-automatically/m-p/1687983#M592931</guid>
      <dc:creator>Arslan_Ahmed</dc:creator>
      <dc:date>2020-03-26T08:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Load files and compare automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Load-files-and-compare-automatically/m-p/1687995#M592932</link>
      <description>&lt;P&gt;updated the post please chekc&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 09:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-files-and-compare-automatically/m-p/1687995#M592932</guid>
      <dc:creator>ManiSK</dc:creator>
      <dc:date>2020-03-26T09:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Load files and compare automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Load-files-and-compare-automatically/m-p/1688108#M592933</link>
      <description>&lt;P&gt;Have a look at the attached sample&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 13:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-files-and-compare-automatically/m-p/1688108#M592933</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2020-03-26T13:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Load files and compare automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Load-files-and-compare-automatically/m-p/1688364#M592934</link>
      <description>&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;Thank you so this works fine. file name is not day1 day2 i gave that for example&lt;/P&gt;&lt;P&gt;Actually the real file name is&amp;nbsp;all_transfer_event_users-2020-03-18-19-26-41.csv&amp;nbsp; like this with date stamp, so in this case how below loop will work? can you please help me on this?&lt;/P&gt;&lt;P&gt;j=$(j)+1;&lt;BR /&gt;i=$(i)+1;&lt;/P&gt;&lt;P&gt;next x;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 04:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-files-and-compare-automatically/m-p/1688364#M592934</guid>
      <dc:creator>ManiSK</dc:creator>
      <dc:date>2020-03-27T04:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Load files and compare automatically</title>
      <link>https://community.qlik.com/t5/QlikView/Load-files-and-compare-automatically/m-p/1688390#M592935</link>
      <description>&lt;P&gt;Please adapt according your needs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let i = '2020-03-18';
let j = '2020-03-19';

For x=1 to 2 //with 3 Files you have 2 loops

i= date(i,'YYYY-MM-DD')
j = date(j,'YYYY-MM-DD')

Map:
Mapping LOAD B,A
FROM
[all_transfer_event_users-$(i)*.xlsx]
(ooxml, embedded labels, table is Tabelle1);

tmp:
LOAD Distinct A, B
FROM
[all_transfer_event_users-$(j)*.xlsx]
(ooxml, embedded labels, table is Tabelle1) where ApplyMap('Map',B,0)=0;

store tmp into Differences_Table_$(j)_$(i).csv(txt);drop table tmp;

i = i+1;
j = j+1;

next x;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 08:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-files-and-compare-automatically/m-p/1688390#M592935</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2020-03-27T08:50:42Z</dc:date>
    </item>
  </channel>
</rss>

