<?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: I have problem using Previous Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/I-have-problem-using-Previous-Function/m-p/1810216#M1212530</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121051"&gt;@QFabian&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;because my expected result is&amp;nbsp; to load only 14 days of data from the activated_dt (26/1/2021) .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jim_chan_0-1621905986119.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55592iCC6E73E658EAC1C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jim_chan_0-1621905986119.png" alt="jim_chan_0-1621905986119.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;rgds&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jim&lt;/P&gt;</description>
    <pubDate>Tue, 25 May 2021 01:27:42 GMT</pubDate>
    <dc:creator>jim_chan</dc:creator>
    <dc:date>2021-05-25T01:27:42Z</dc:date>
    <item>
      <title>I have problem using Previous Function</title>
      <link>https://community.qlik.com/t5/QlikView/I-have-problem-using-Previous-Function/m-p/1810068#M1212501</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure how to use the Previous function in my requirement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok. i have a list of data, same ID but activated date and main key is different.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jim_chan_0-1621865900132.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55542i0BDD79A486A40BAB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jim_chan_0-1621865900132.png" alt="jim_chan_0-1621865900132.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I expected result is:&lt;/P&gt;&lt;P&gt;1) Only load out the ID with latest activated_dt - mean in my data should only keep 26/1 records, and get rid of the old one -&amp;nbsp; actviated dt on 22 jan.&lt;/P&gt;&lt;P&gt;2) the actual data is daily transaction, can have millions of records. user just want each ID to have 14 days of records only.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jim_chan_1-1621866111655.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55544i70D4244E69F51F6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jim_chan_1-1621866111655.png" alt="jim_chan_1-1621866111655.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, i have tried to use Previous Function, but ended up only able to get this. So, i would really need your guys help again.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jim_chan_2-1621866170518.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55545iFC9AF9FE80C9947F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jim_chan_2-1621866170518.png" alt="jim_chan_2-1621866170518.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have my sample qvw and data as per attached.&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>Mon, 24 May 2021 14:24:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-have-problem-using-Previous-Function/m-p/1810068#M1212501</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2021-05-24T14:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: I have problem using Previous Function</title>
      <link>https://community.qlik.com/t5/QlikView/I-have-problem-using-Previous-Function/m-p/1810169#M1212516</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48612"&gt;@jim_chan&lt;/a&gt;&amp;nbsp;, please check this :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DATA:&lt;BR /&gt;LOAD&lt;BR /&gt;MAIN_KEY &amp;amp; ' | ' &amp;amp; ID as %_Key,&lt;BR /&gt;MAIN_KEY,&lt;BR /&gt;ID,&lt;BR /&gt;DATED_DT,&lt;BR /&gt;ACTIVATED_DT,&lt;BR /&gt;TOTAL_GB&lt;BR /&gt;FROM test_2subs_key.csv (txt, utf8, embedded labels, delimiter is ',', msq)&lt;BR /&gt;Where&lt;BR /&gt;DATED_DT &amp;gt;= (today()-14);&lt;/P&gt;&lt;P&gt;LATEST_RECORD:&lt;BR /&gt;Load&lt;BR /&gt;%_Key,&lt;BR /&gt;max(ACTIVATED_DT) as Max_ACTIVATED_DT&lt;BR /&gt;Resident DATA&lt;BR /&gt;Group By&lt;BR /&gt;%_Key;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;exit script;&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 22:39:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-have-problem-using-Previous-Function/m-p/1810169#M1212516</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2021-05-24T22:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: I have problem using Previous Function</title>
      <link>https://community.qlik.com/t5/QlikView/I-have-problem-using-Previous-Function/m-p/1810192#M1212521</link>
      <description>Dear fabian,&lt;BR /&gt;&lt;BR /&gt;Thanks for the script.&lt;BR /&gt;&lt;BR /&gt;Can you tell me why use where clause -DATED_DT &amp;gt;= (today()-14);&lt;BR /&gt;&lt;BR /&gt;In actual data, there are line of records from dated date 1 Jan 2021. By&lt;BR /&gt;applying this clause, does it means those with 1 Jan 2021 data will not be&lt;BR /&gt;loaded?&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;&lt;BR /&gt;Jim chan&lt;BR /&gt;</description>
      <pubDate>Mon, 24 May 2021 23:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-have-problem-using-Previous-Function/m-p/1810192#M1212521</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2021-05-24T23:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: I have problem using Previous Function</title>
      <link>https://community.qlik.com/t5/QlikView/I-have-problem-using-Previous-Function/m-p/1810209#M1212527</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48612"&gt;@jim_chan&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;SPAN&gt;-DATED_DT &amp;gt;= (today()-14); it ia going to load records with that date from the last 14 days. Maybe you need another date field to use it, just change it&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 01:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-have-problem-using-Previous-Function/m-p/1810209#M1212527</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2021-05-25T01:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: I have problem using Previous Function</title>
      <link>https://community.qlik.com/t5/QlikView/I-have-problem-using-Previous-Function/m-p/1810214#M1212529</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121051"&gt;@QFabian&lt;/a&gt;&amp;nbsp;, thanks for your reply!&lt;/P&gt;&lt;P&gt;I have tried to change the where clause to -&amp;nbsp;DATED_DT - ACTIVATED_DT &amp;lt;= 14;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the old record come out again.&amp;nbsp; ID with main key - 1111111_0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jim_chan_0-1621905528570.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55591iE28FFB62B6D07DB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jim_chan_0-1621905528570.png" alt="jim_chan_0-1621905528570.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where should i change it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 01:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-have-problem-using-Previous-Function/m-p/1810214#M1212529</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2021-05-25T01:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: I have problem using Previous Function</title>
      <link>https://community.qlik.com/t5/QlikView/I-have-problem-using-Previous-Function/m-p/1810216#M1212530</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121051"&gt;@QFabian&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;because my expected result is&amp;nbsp; to load only 14 days of data from the activated_dt (26/1/2021) .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jim_chan_0-1621905986119.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55592iCC6E73E658EAC1C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jim_chan_0-1621905986119.png" alt="jim_chan_0-1621905986119.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;rgds&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jim&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 01:27:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-have-problem-using-Previous-Function/m-p/1810216#M1212530</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2021-05-25T01:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: I have problem using Previous Function</title>
      <link>https://community.qlik.com/t5/QlikView/I-have-problem-using-Previous-Function/m-p/1810220#M1212531</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121051"&gt;@QFabian&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;sorry, not able to provide me the expected result.&amp;nbsp; Hopefully, there are more replies on this issue.&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 02:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-have-problem-using-Previous-Function/m-p/1810220#M1212531</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2021-05-25T02:26:51Z</dc:date>
    </item>
  </channel>
</rss>

