<?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 previous record existing in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/previous-record-existing/m-p/533137#M684596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;Could you please with one calculation in a script. In attached qvw example I have two column %userid and register_data. In result, I would like to get column is_repeated which represent 0 or 1 . If current record have previous records where current register_date &amp;gt; previous register_date records for defined userid then 1 else 0. Desired result in picture. &lt;/P&gt;&lt;P&gt;Thank you very much for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jan 2014 15:57:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-19T15:57:18Z</dc:date>
    <item>
      <title>previous record existing</title>
      <link>https://community.qlik.com/t5/QlikView/previous-record-existing/m-p/533137#M684596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;Could you please with one calculation in a script. In attached qvw example I have two column %userid and register_data. In result, I would like to get column is_repeated which represent 0 or 1 . If current record have previous records where current register_date &amp;gt; previous register_date records for defined userid then 1 else 0. Desired result in picture. &lt;/P&gt;&lt;P&gt;Thank you very much for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 15:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-record-existing/m-p/533137#M684596</guid>
      <dc:creator />
      <dc:date>2014-01-19T15:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: previous record existing</title>
      <link>https://community.qlik.com/t5/QlikView/previous-record-existing/m-p/533138#M684597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your source data already is ordered by register_date you can simply use the exists function:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Load %userid, register_data,&lt;STRONG&gt; if(exists(%userid),1,0)&lt;/STRONG&gt; as is_repeated&lt;/P&gt;&lt;P&gt;from ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your source data is not ordered by register_date you need to do that first and at the same time you can create the is_repeated field with the &lt;EM&gt;previous&lt;/EM&gt; function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 16:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-record-existing/m-p/533138#M684597</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-01-19T16:08:32Z</dc:date>
    </item>
  </channel>
</rss>

