<?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: tracking changes in a column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135555#M895044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;The pasted the code and the expression is just Sum(Countoff). Not sure what else you are looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2016 23:46:33 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-08-04T23:46:33Z</dc:date>
    <item>
      <title>tracking changes in a column</title>
      <link>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135549#M895038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem if someone can help me with. I have a table something like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;item&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/02/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ON_STATUS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/04/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ON_STATUS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/05/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;OFF_STATUS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/03/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ON_STATUS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/05/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;OFF_STATUS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/06/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ONSTATUS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/08/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;OFF_STATUS&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to track the changes to the status for each item when it goes from ON_STATUS to OFF_STATUS. So for item A, status changed from ON_STATUS to OFF_STATUS only once whereas for B it changed from ON to OFF twice. Is there a way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Manoj Agrawal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135549#M895038</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: tracking changes in a column</title>
      <link>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135550#M895039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not exactely sure how you want to track the changes, maybe you can use something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autonumber(If(Peek(Status)LIKE 'ON*' and Status LIKE 'OFF*',Date), item) as CountOff;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD item, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="228012" data-objecttype="1" href="https://community.qlik.com/thread/228012"&gt;https://community.qlik.com/thread/228012&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 21:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135550#M895039</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-08-04T21:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: tracking changes in a column</title>
      <link>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135551#M895040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan, thanks for replying but it doesn't work. The way I want to track status for each item is that I should get the results as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Item&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No. changes in status from ON to OFF&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this makes the requirements clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Manoj &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 22:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135551#M895040</guid>
      <dc:creator />
      <dc:date>2016-08-04T22:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: tracking changes in a column</title>
      <link>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135552#M895041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using Stefan's code you can do Count(CountOff)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133690_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 22:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135552#M895041</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-04T22:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: tracking changes in a column</title>
      <link>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135553#M895042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Slight change to Stefan's code (which you might need because the data may or may not be well sorted for you)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD item,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="228012" data-objecttype="1" href="https://community.qlik.com/thread/228012"&gt;https://community.qlik.com/thread/228012&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(item = Previous(item),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Peek(Status) LIKE 'ON*' and Status LIKE 'OFF*', 1, 0), 0) as CountOff&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By item, Date;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133703_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 22:58:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135553#M895042</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-04T22:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: tracking changes in a column</title>
      <link>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135554#M895043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, I have personal edition so can't view your file. I tried the code you have pasted but I am getting zeros as change status for all the items. Could you please paste the actual code you have used in the file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 23:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135554#M895043</guid>
      <dc:creator />
      <dc:date>2016-08-04T23:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: tracking changes in a column</title>
      <link>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135555#M895044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;The pasted the code and the expression is just Sum(Countoff). Not sure what else you are looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 23:46:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135555#M895044</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-04T23:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: tracking changes in a column</title>
      <link>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135556#M895045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay. Let me try again. Maybe I am not using the code correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 23:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135556#M895045</guid>
      <dc:creator />
      <dc:date>2016-08-04T23:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: tracking changes in a column</title>
      <link>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135557#M895046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't realize I have to create another table to add all the counters. Works great.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 00:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/tracking-changes-in-a-column/m-p/1135557#M895046</guid>
      <dc:creator />
      <dc:date>2016-08-05T00:12:15Z</dc:date>
    </item>
  </channel>
</rss>

