<?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: Running count of the Filed in the Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439993#M700533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;flipside&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Thanks it worked perfectly after i sorted my data &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 May 2013 13:42:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-13T13:42:28Z</dc:date>
    <item>
      <title>Running count of the Filed in the Script</title>
      <link>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439986#M700526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to attach the running count of the filed in the script. Please find the below sample example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID Sales&lt;/P&gt;&lt;P&gt;A&amp;nbsp; 100,250&lt;/P&gt;&lt;P&gt;B&amp;nbsp; 390&lt;/P&gt;&lt;P&gt;C&amp;nbsp; 30,345,360&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want load the above table into below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID Sales Running_Cnt&lt;/P&gt;&lt;P&gt;A&amp;nbsp; 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;A&amp;nbsp; 250&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;B&amp;nbsp; 390&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;C&amp;nbsp; 30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;C&amp;nbsp; 345&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;C&amp;nbsp; 360&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the Sales by using subfield(Sales,','), but I am unable to attach the Running_Cnt to the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attched application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 13:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439986#M700526</guid>
      <dc:creator />
      <dc:date>2012-10-22T13:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Running count of the Filed in the Script</title>
      <link>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439987#M700527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you need ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ID, Sales&lt;/P&gt;&lt;P&gt;A,&amp;nbsp; 100|250&lt;/P&gt;&lt;P&gt;B,&amp;nbsp; 390&lt;/P&gt;&lt;P&gt;C,&amp;nbsp; 30|345|360];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RunningTotals:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(Sales,'|',iterNo()) as SalesEntry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; iterNo() as SalesEntryRow&lt;/P&gt;&lt;P&gt;resident Data&lt;/P&gt;&lt;P&gt;while iterNo() &amp;lt;= SubStringCount(Sales,'|')+1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(My example uses pipe-delimited entries due to Inline data load, but will work with comma-delimited field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 13:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439987#M700527</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-10-22T13:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Running count of the Filed in the Script</title>
      <link>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439988#M700528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siri P,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use peek and previous fuction to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached file, hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 14:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439988#M700528</guid>
      <dc:creator>jeffmartins</dc:creator>
      <dc:date>2012-10-22T14:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Running count of the Filed in the Script</title>
      <link>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439989#M700529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 14:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439989#M700529</guid>
      <dc:creator />
      <dc:date>2012-10-22T14:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Running count of the Filed in the Script</title>
      <link>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439990#M700530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 14:27:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439990#M700530</guid>
      <dc:creator />
      <dc:date>2012-10-22T14:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Running count of the Filed in the Script</title>
      <link>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439991#M700531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Flipside&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was reviewing the Running Count script you wrote for &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Srikanth&lt;/SPAN&gt;, hence i have the same question.&amp;nbsp; How would you script the running script if your dataset was like below and you had no pipes on your inline table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;ID Sales&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;A&amp;nbsp; 100&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;A&amp;nbsp; 250&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;B&amp;nbsp; 390&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;C&amp;nbsp; 30&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;C&amp;nbsp; 345&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;C&amp;nbsp; 360&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Thanks your for your consideration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Selby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 10:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439991#M700531</guid>
      <dc:creator />
      <dc:date>2013-05-13T10:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Running count of the Filed in the Script</title>
      <link>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439992#M700532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Selby,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably this approach is better for your scenario ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RawData:&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; ID, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(ID = Peek(ID), &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 + Peek(RunningCount_ID), &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1)&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;&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;&amp;nbsp;&amp;nbsp; as RunningCount_ID;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load * inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID, Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A,&amp;nbsp; 100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A,&amp;nbsp; 250&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B,&amp;nbsp; 390&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C,&amp;nbsp; 30&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C,&amp;nbsp; 345&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C,&amp;nbsp; 360];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Forgot to mention this assumes your data is already sorted as you require. For example, try the above with this inline data and check the count function is as you wish ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load * inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID, Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A,&amp;nbsp; 100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A,&amp;nbsp; 250&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B,&amp;nbsp; 390&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C,&amp;nbsp; 30&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C,&amp;nbsp; 345&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A,&amp;nbsp; 900&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C,&amp;nbsp; 360];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 10:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439992#M700532</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2013-05-13T10:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Running count of the Filed in the Script</title>
      <link>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439993#M700533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;flipside&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Thanks it worked perfectly after i sorted my data &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 13:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439993#M700533</guid>
      <dc:creator />
      <dc:date>2013-05-13T13:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Running count of the Filed in the Script</title>
      <link>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439994#M700534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An easier solution may be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;autonumber(recno(), ID) as Running_count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That does not require your data to be presorted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 14:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Running-count-of-the-Filed-in-the-Script/m-p/439994#M700534</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-05-13T14:00:05Z</dc:date>
    </item>
  </channel>
</rss>

