<?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: Count rows per group in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438561#M163484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed it for another test, when added to iddim3 I could not count rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="33565" class="jive-image-thumbnail jive-image" onclick="" alt="test.JPG" src="https://community.qlik.com/legacyfs/online/33565_test.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Feb 2013 13:36:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-15T13:36:24Z</dc:date>
    <item>
      <title>Count rows per group</title>
      <link>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438555#M163478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to count the rows per group as shown below. How can I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="230" style="width: 343px; height: 227px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;Id&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;IdDim2&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;IdDim3&lt;/TD&gt;&lt;TD width="64"&gt;&lt;SPAN style="color: #ff0000;"&gt;Row&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #333333;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2012&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2012&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2011&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;13&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;15&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;22&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2011&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;E&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2012&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;E&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;41&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 10:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438555#M163478</guid>
      <dc:creator />
      <dc:date>2013-02-15T10:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows per group</title>
      <link>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438556#M163479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;load Id, IdDim2, IdDim3&lt;/P&gt;&lt;P&gt;from &lt;EM&gt;...mysource...&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;load Id, IdDim2, IdDim3,&lt;/P&gt;&lt;P&gt;if(Id=previous(Id),rangesum(1,peek(Row))) as Row&lt;/P&gt;&lt;P&gt;resident Temp&lt;/P&gt;&lt;P&gt;order by Id, IdDim2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 12:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438556#M163479</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-15T12:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows per group</title>
      <link>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438557#M163480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, but I need it on a straigh table, because the classification may change dynamically, may be by id, iddim2, iddim3 or id, iddim3, iddim2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 12:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438557#M163480</guid>
      <dc:creator />
      <dc:date>2013-02-15T12:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows per group</title>
      <link>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438558#M163481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aggr(RowNo(),Id,IdDim2) for your example. Change the dimensions rowno() should be aggregated over if you use other dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 12:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438558#M163481</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-15T12:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows per group</title>
      <link>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438559#M163482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why the column IdDim3 doesn´t show all results?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="33563" __jive_id="33563" class="jive-image-thumbnail jive-image" alt="test.JPG" src="https://community.qlik.com/legacyfs/online/33563_test.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 13:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438559#M163482</guid>
      <dc:creator />
      <dc:date>2013-02-15T13:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows per group</title>
      <link>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438560#M163483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because in your data, unlike in the sample data in your first post, there is only one unique combination of Id and IdDim2 for B: B, 10. In your first post you have B,10 and B,11. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 13:23:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438560#M163483</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-15T13:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows per group</title>
      <link>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438561#M163484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed it for another test, when added to iddim3 I could not count rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="33565" class="jive-image-thumbnail jive-image" onclick="" alt="test.JPG" src="https://community.qlik.com/legacyfs/online/33565_test.JPG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 13:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438561#M163484</guid>
      <dc:creator />
      <dc:date>2013-02-15T13:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows per group</title>
      <link>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438562#M163485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example. There's a hidden calculated dimension that makes this work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 16:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438562#M163485</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-15T16:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows per group</title>
      <link>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438563#M163486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 16:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-rows-per-group/m-p/438563#M163486</guid>
      <dc:creator />
      <dc:date>2013-02-15T16:38:43Z</dc:date>
    </item>
  </channel>
</rss>

