<?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 Checking for New/Deleted Records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Checking-for-New-Deleted-Records/m-p/344796#M127393</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;I've been looking into Alternate States and I was really impressed by it. Unfortunately, my company won't be upgrading to QV 11 for some time. Is there any way to replicate the process in QV 10?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2012 15:30:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-11T15:30:53Z</dc:date>
    <item>
      <title>Checking for New/Deleted Records</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-for-New-Deleted-Records/m-p/344792#M127389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;Hello Everyone!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;I am new to qlikview and am currently working on a difficult problem and I am in need of some suggestions.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;What I am tasked to do is read in files where each file contains data from one day. I bring them in using a "for each next" loop and eventually, I am left with one qlikview table containing all the records from each day. My goal is to be able to select two dates and then compare the records from each. In particular, I am looking for which records are deleted and which records are new. To be clear, deleted records will not be found on a future file and new records will not be found on a past file. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;My initial solution was to create a second qlikview table with all the field names renamed to &lt;EM style="font-family: 'Arial','sans-serif';"&gt;Fieldname_2&lt;/EM&gt; and associatively join them through a common field name. That way, when I make my date selections, table 1 will house the first date's records and table 2 will house the second date's records. I would then check for where the length of an arbitrary field on table 2 was equal to zero and then return the corresponding value from the other table. This failed seemingly because qlikview was not recognizing where deleted records fell off or where new records would began. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;I then tried forcing those new/deleted records to show themselves using recno() in the hopes that recno() would populate the unpopulated rows that correspond to the new/deleted records. This failed. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;I then tried using the lookup() function which, as I read on here, is similar to the vlookup function in excel. This failed. (Quick note here, I was obviously able to find the deleted/new records in excel using the vlookup). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;From there, I stumbled on the mapping load/applymap functions but that was also a bust. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;I also used set analysis in order ignore one of the date selections made by the end user so that I'd compare one file date in one qv table against all the file dates in the other qv table. This has yet to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;As a last ditched attempt, I tried joining the tables together in order to make it easier to sort and match but I can’t finish the reload presumably because the join is too large? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #333333; font-size: 10pt;"&gt;Once again, I am new to QV so some of the things I tried may have failed due to my inexperience so if anyone has any new ideas or ways to rework what I’ve already tried, I am all ears. If you have any questions I’ll try to answer them to the best of my ability. Thanks in advance for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 14:38:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-for-New-Deleted-Records/m-p/344792#M127389</guid>
      <dc:creator />
      <dc:date>2012-06-08T14:38:57Z</dc:date>
    </item>
    <item>
      <title>Checking for New/Deleted Records</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-for-New-Deleted-Records/m-p/344793#M127390</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;Try using Incremental loading option.&amp;nbsp; You can find help regarding this in Qlikview help file in&lt;/P&gt;&lt;H1&gt;&lt;A name="kanchor942"&gt;&lt;/A&gt;Using QVD Files for Incremental Load. &lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 19:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-for-New-Deleted-Records/m-p/344793#M127390</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-06-08T19:03:42Z</dc:date>
    </item>
    <item>
      <title>Checking for New/Deleted Records</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-for-New-Deleted-Records/m-p/344794#M127391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I would suggest you look into the "Where Not Exists" statement.&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 20:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-for-New-Deleted-Records/m-p/344794#M127391</guid>
      <dc:creator />
      <dc:date>2012-06-08T20:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for New/Deleted Records</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-for-New-Deleted-Records/m-p/344795#M127392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a very interesting problem. I think it's a Set Analysis question -- what's the difference between two sets. Alternate States in V11 provide a simple approach to defining two sets and making the comparisons. See if the attached is close to what you want. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 21:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-for-New-Deleted-Records/m-p/344795#M127392</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-06-08T21:13:21Z</dc:date>
    </item>
    <item>
      <title>Checking for New/Deleted Records</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-for-New-Deleted-Records/m-p/344796#M127393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;I've been looking into Alternate States and I was really impressed by it. Unfortunately, my company won't be upgrading to QV 11 for some time. Is there any way to replicate the process in QV 10?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 15:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-for-New-Deleted-Records/m-p/344796#M127393</guid>
      <dc:creator />
      <dc:date>2012-06-11T15:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for New/Deleted Records</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-for-New-Deleted-Records/m-p/344797#M127394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can replicate in V10. With V10, you have to load Date again into a island field (Date2) that will be used to make the Date2 selection. See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2012 05:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-for-New-Deleted-Records/m-p/344797#M127394</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-06-12T05:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Checking for New/Deleted Records</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-for-New-Deleted-Records/m-p/1984641#M1221152</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Great solution Rob as always, still relevant a decade later. I rebuilt the Alternate States version in Qlik Sense, so thought I would post it here for ease of reference.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 10:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-for-New-Deleted-Records/m-p/1984641#M1221152</guid>
      <dc:creator>Bruno_Calver</dc:creator>
      <dc:date>2022-09-23T10:21:00Z</dc:date>
    </item>
  </channel>
</rss>

