<?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: howmany rows in a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351489#M130342</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;Did you figure out a way to do this? I am trying to achive this and none of the recomendations really helped. Appreciate if you can help me if you figured out a way to get the physical number of rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jun 2013 15:28:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-10T15:28:39Z</dc:date>
    <item>
      <title>howmany rows in a table</title>
      <link>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351481#M130334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it should not be that difficult, but somehow I can't find the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a straight table containing ofcourse data ;-), now we want to show the number of rows of that table in the header of the table.&lt;/P&gt;&lt;P&gt;How to do stuff in the header is not the problem, but how to get the number of rows displayed??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone knows how to get the number of rows in the table?? &lt;/P&gt;&lt;P&gt;In the development environment the number of rows is displayed in the bottom of the screen when selecting the table . . . but in de accesspoint environment ofcourse this is not available . . .&lt;/P&gt;&lt;P&gt;Is there a function to get this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoOfRows() gives just the number 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 06:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351481#M130334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-15T06:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: howmany rows in a table</title>
      <link>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351482#M130335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anita:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the attached App would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Narasimha K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 07:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351482#M130335</guid>
      <dc:creator />
      <dc:date>2012-05-15T07:49:46Z</dc:date>
    </item>
    <item>
      <title>howmany rows in a table</title>
      <link>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351483#M130336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anita,&lt;/P&gt;&lt;P&gt;did you try with &lt;STRONG&gt;=count(&amp;lt;field_from_table&amp;gt;) &lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 07:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351483#M130336</guid>
      <dc:creator />
      <dc:date>2012-05-15T07:50:00Z</dc:date>
    </item>
    <item>
      <title>howmany rows in a table</title>
      <link>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351484#M130337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The count function will not do the trick I guesse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The straight table contains data combined from more data-tables which could give more rows than the original table has.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I &lt;STRONG&gt;count(&amp;lt;field&amp;gt;) &lt;/STRONG&gt;this gives only the number of fields for the table the field belongs to, not the physical number of rows the straight table has.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 08:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351484#M130337</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-15T08:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: howmany rows in a table</title>
      <link>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351485#M130338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is the macro snippet to fetch the number of Physical rows from a Straight Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub NoofRows&lt;/P&gt;&lt;P&gt;&amp;nbsp; set table = ActiveDocument.GetSheetObject("CH01")&lt;BR /&gt;&amp;nbsp; rows =&amp;nbsp; table.GetRowCount - 1&lt;BR /&gt;&amp;nbsp; msgbox "Number of Rows in Straight table is " &amp;amp; rows&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 08:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351485#M130338</guid>
      <dc:creator />
      <dc:date>2012-05-15T08:46:00Z</dc:date>
    </item>
    <item>
      <title>howmany rows in a table</title>
      <link>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351486#M130339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case you should use set analysis with system attributes:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum({$&amp;lt;$Table={'&amp;lt;table_name&amp;gt;'}, $Field={'field_name'}&amp;gt;} $Rows)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 08:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351486#M130339</guid>
      <dc:creator />
      <dc:date>2012-05-15T08:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: howmany rows in a table</title>
      <link>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351487#M130340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the same problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simply use count(name of your first dimension) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case I give the label "Document" to the first dimension of my straight table and in the window title I added &lt;/P&gt;&lt;P&gt;=' Total rows : ' &amp;amp; Count(distinct(Document)) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 10:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351487#M130340</guid>
      <dc:creator />
      <dc:date>2012-09-20T10:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: howmany rows in a table</title>
      <link>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351488#M130341</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 had the same challengr in one of my projects. I managed to write quite nice function to calculate number of expected rows in straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My function is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(1, &amp;lt;dim1&amp;gt;,&amp;lt;dim2&amp;gt;, &amp;lt;dim3&amp;gt; etc))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used QV11 functionality to hide/show fields chosen from basic listbox. Let's call the field by name "dimension_fields" - I have written a inline load to script that writes about 10 possible dimension to be used as columns in straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I wrote a variable, for example v_chosen_dimensions and formula is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concat(dimension_fields, ',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This variable has a value dim1,dim2 - if user has selected these 2 columns to be visible in straght table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then I changed my function to&lt;/P&gt;&lt;P&gt;sum(aggr(1,$(v_chosen_dimensions)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this formula in "conditional show" to hide the straight table if amount of expected rows are greater than 300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully I wrote all formulas correct way &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; and hopefully this works in other cases also&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 15:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351488#M130341</guid>
      <dc:creator>Teppo_Ojala</dc:creator>
      <dc:date>2013-02-19T15:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: howmany rows in a table</title>
      <link>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351489#M130342</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;Did you figure out a way to do this? I am trying to achive this and none of the recomendations really helped. Appreciate if you can help me if you figured out a way to get the physical number of rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 15:28:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351489#M130342</guid>
      <dc:creator />
      <dc:date>2013-06-10T15:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: howmany rows in a table</title>
      <link>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351490#M130343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on Narasimha function, I&amp;nbsp; use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub NoRowsInChart&lt;BR /&gt; set table = ActiveDocument.GetSheetObject("CH107")&lt;BR /&gt; rows = table.GetRowCount - 1&lt;BR /&gt; set v = ActiveDocument.Variables("vNrRows")&lt;BR /&gt; v.SetContent rows, true&lt;BR /&gt; End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where vNrRows is the name of my variable.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This Macro will be submitted by activating the sheet/chart through a trigger. In my chart header text I use the variable vNrRows&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards Frank&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 07:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/howmany-rows-in-a-table/m-p/351490#M130343</guid>
      <dc:creator>frankhuning</dc:creator>
      <dc:date>2015-02-05T07:55:49Z</dc:date>
    </item>
  </channel>
</rss>

