<?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 Count Second appearance of Record in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-Second-appearance-of-Record/m-p/1984062#M81187</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; received the monthly file like in&amp;nbsp; Jan -21 data ,I have Jan-20&amp;nbsp; and Jan-21 data .However in Jan -22 data ,I have only Jan-21 and Jan-22 data. Which leads to two entry for Jan -21&amp;nbsp; . I want to pick the Jan -21 data only from the latest file and remove the old data for Jan-21&lt;/P&gt;
&lt;P&gt;Input&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="priyanka08_0-1663832426191.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/89645iFD65978EF7FEE769/image-size/medium?v=v2&amp;amp;px=400" role="button" title="priyanka08_0-1663832426191.png" alt="priyanka08_0-1663832426191.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Need to create a flag =0 and then remove the row where flag =0 is mentioned&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="priyanka08_1-1663832472364.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/89646i410DBBA903DF9F61/image-size/medium?v=v2&amp;amp;px=400" role="button" title="priyanka08_1-1663832472364.png" alt="priyanka08_1-1663832472364.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 07:43:23 GMT</pubDate>
    <dc:creator>priyanka08</dc:creator>
    <dc:date>2022-09-22T07:43:23Z</dc:date>
    <item>
      <title>Count Second appearance of Record</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Second-appearance-of-Record/m-p/1984062#M81187</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; received the monthly file like in&amp;nbsp; Jan -21 data ,I have Jan-20&amp;nbsp; and Jan-21 data .However in Jan -22 data ,I have only Jan-21 and Jan-22 data. Which leads to two entry for Jan -21&amp;nbsp; . I want to pick the Jan -21 data only from the latest file and remove the old data for Jan-21&lt;/P&gt;
&lt;P&gt;Input&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="priyanka08_0-1663832426191.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/89645iFD65978EF7FEE769/image-size/medium?v=v2&amp;amp;px=400" role="button" title="priyanka08_0-1663832426191.png" alt="priyanka08_0-1663832426191.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Need to create a flag =0 and then remove the row where flag =0 is mentioned&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="priyanka08_1-1663832472364.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/89646i410DBBA903DF9F61/image-size/medium?v=v2&amp;amp;px=400" role="button" title="priyanka08_1-1663832472364.png" alt="priyanka08_1-1663832472364.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 07:43:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Second-appearance-of-Record/m-p/1984062#M81187</guid>
      <dc:creator>priyanka08</dc:creator>
      <dc:date>2022-09-22T07:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Count Second appearance of Record</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Second-appearance-of-Record/m-p/1984114#M81195</link>
      <description>&lt;P&gt;Hi, you can load fiels from the newest to the oldest in a for..next bucle, and use exists() to check if the data is already loaded.&lt;/P&gt;
&lt;P&gt;1- Load all filenames and extract the date part as a date&lt;/P&gt;
&lt;P&gt;2- Do a sorted load of the previous table to sort filenames from the newest to the oldest&lt;/P&gt;
&lt;P&gt;3. Do a for i=0 to NoOfRows(FileNamesTable)&lt;/P&gt;
&lt;P&gt;3.1 Using Peek store the filename in a variable&lt;/P&gt;
&lt;P&gt;3.2 Load the file using the variable&lt;/P&gt;
&lt;P&gt;3.3 In the load create a key thet identifies the data loaded, ie: Region &amp;amp;'_'&amp;amp; Date as KeyLoaded&lt;/P&gt;
&lt;P&gt;3.4 In the where use Exists to check if the key was already loaded Where not Exists('KeyLoaded',Region &amp;amp;'_'&amp;amp; Date)&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 09:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Second-appearance-of-Record/m-p/1984114#M81195</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-09-22T09:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count Second appearance of Record</title>
      <link>https://community.qlik.com/t5/App-Development/Count-Second-appearance-of-Record/m-p/1984691#M81261</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;thanks it worked&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 11:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-Second-appearance-of-Record/m-p/1984691#M81261</guid>
      <dc:creator>priyanka08</dc:creator>
      <dc:date>2022-09-23T11:36:45Z</dc:date>
    </item>
  </channel>
</rss>

