<?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: Counting Rows in a Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-Rows-in-a-Table/m-p/1680334#M450024</link>
    <description>&lt;P&gt;Thanks Sunny.&amp;nbsp; Worked perfect.&amp;nbsp; The problem was we had the same employee with multiple service violation dates and we only wanted the first one.&amp;nbsp; So the rowno worked perfect resetting it for each employee.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 11:51:06 GMT</pubDate>
    <dc:creator>tmumaw</dc:creator>
    <dc:date>2020-02-28T11:51:06Z</dc:date>
    <item>
      <title>Counting Rows in a Table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Rows-in-a-Table/m-p/1680082#M449997</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a quick question.&amp;nbsp; I need to count each row for an employee and reset the counter on the next employee.&amp;nbsp; How can I do this in my script.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;employee ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&lt;/P&gt;&lt;P&gt;000000001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3/2/2020&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;000000001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4/9/2020&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;000000002&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/10/2019&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;000000003&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/21/2020&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:10:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Rows-in-a-Table/m-p/1680082#M449997</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2024-11-16T01:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Rows in a Table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Rows-in-a-Table/m-p/1680085#M449998</link>
      <description>&lt;P&gt;You can use something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table:
LOAD employeeID,
     Date
FROM ...;

FinalTable:
LOAD *,
     If(employeeID = Previous(employeeID), RangeSum(Peek('RowNum'), 1), 1) as RowNum
Resident Table;

DROP Table Table;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 Feb 2020 20:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Rows-in-a-Table/m-p/1680085#M449998</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-27T20:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Rows in a Table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Rows-in-a-Table/m-p/1680090#M449999</link>
      <description>&lt;P&gt;I guess I don't fully understand the goal here. If your goal is to have the count for an employeeID on each record for that corresponding employeeID. You can do&lt;BR /&gt;LEFT JOIN(Table)&lt;BR /&gt;LOAD&lt;BR /&gt;COUNT(employeeID) As [EmployeeID Count]&lt;BR /&gt;Resident [Table]&lt;BR /&gt;GROUP BY EmployeeID;&lt;BR /&gt;Then Join this table to your original table on EmployeeID.&lt;BR /&gt;If labeling in the order of records is the goal I would utilize a peek function.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 21:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Rows-in-a-Table/m-p/1680090#M449999</guid>
      <dc:creator>AndrewHughes</dc:creator>
      <dc:date>2020-02-27T21:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Rows in a Table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Rows-in-a-Table/m-p/1680334#M450024</link>
      <description>&lt;P&gt;Thanks Sunny.&amp;nbsp; Worked perfect.&amp;nbsp; The problem was we had the same employee with multiple service violation dates and we only wanted the first one.&amp;nbsp; So the rowno worked perfect resetting it for each employee.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 11:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Rows-in-a-Table/m-p/1680334#M450024</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2020-02-28T11:51:06Z</dc:date>
    </item>
  </channel>
</rss>

