<?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 No. of lines in a certain table (no. of rows) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160636#M34845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a straight table in one of the sheet. The straight table consist of 2 dimensions and 2 expressions. Each expressions has pretty long formula.&lt;/P&gt;&lt;P&gt;I created a summary sheet; intending to show the number of record found in the table mention earlier.&lt;/P&gt;&lt;P&gt;Originally, I use function "count" and try to combine the formula of the 2 expressions. It works but not all time. If I load the qlikview with different data set, the count does not always return the same number of lines in the straight table.&lt;/P&gt;&lt;P&gt;I wonder if there is any function that I can use to get the number of lines of a certain object in a qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pound.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Oct 2010 06:42:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-27T06:42:14Z</dc:date>
    <item>
      <title>No. of lines in a certain table (no. of rows)</title>
      <link>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160636#M34845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a straight table in one of the sheet. The straight table consist of 2 dimensions and 2 expressions. Each expressions has pretty long formula.&lt;/P&gt;&lt;P&gt;I created a summary sheet; intending to show the number of record found in the table mention earlier.&lt;/P&gt;&lt;P&gt;Originally, I use function "count" and try to combine the formula of the 2 expressions. It works but not all time. If I load the qlikview with different data set, the count does not always return the same number of lines in the straight table.&lt;/P&gt;&lt;P&gt;I wonder if there is any function that I can use to get the number of lines of a certain object in a qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pound.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 06:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160636#M34845</guid>
      <dc:creator />
      <dc:date>2010-10-27T06:42:14Z</dc:date>
    </item>
    <item>
      <title>No. of lines in a certain table (no. of rows)</title>
      <link>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160637#M34846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For number of rows in a table you can use the function NoOfRows.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 06:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160637#M34846</guid>
      <dc:creator />
      <dc:date>2010-10-27T06:56:50Z</dc:date>
    </item>
    <item>
      <title>No. of lines in a certain table (no. of rows)</title>
      <link>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160638#M34847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use Noofrow or count(unique Filed in that table)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 07:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160638#M34847</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2010-10-27T07:04:34Z</dc:date>
    </item>
    <item>
      <title>No. of lines in a certain table (no. of rows)</title>
      <link>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160639#M34848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;The function NoOfRows is useful when I want to use this function in the same table itself.&lt;/P&gt;&lt;P&gt;The aim here is when you have 10 tables in 10 different sheets - I want to create a single summary sheet (like a dashboard you can say), that summarize number of records found on each of those 10 tables.&lt;/P&gt;&lt;P&gt;If selection is made; then the number of rows of the affected tables will be changed as well.&lt;/P&gt;&lt;P&gt;Thanks for replying though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 11:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160639#M34848</guid>
      <dc:creator />
      <dc:date>2010-10-27T11:30:23Z</dc:date>
    </item>
    <item>
      <title>No. of lines in a certain table (no. of rows)</title>
      <link>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160640#M34849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd guess something like this, assuming your table is suppressing null and zero:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(aggr(if(Expression1 or Expression2,1),Dimension1,Dimension2))&lt;/P&gt;&lt;P&gt;Replace "Expression1" and "Expression2" with your actual expressions from the straight table. Replace "Dimension1" and "Dimension2" with your actual dimensions from the straight table. To avoid repeating the expressions, consider storing them in a variable, and then using the variable in both places.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 21:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160640#M34849</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-27T21:47:59Z</dc:date>
    </item>
    <item>
      <title>No. of lines in a certain table (no. of rows)</title>
      <link>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160641#M34850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My preferens is to use macro with GetNoOfRows.&lt;BR /&gt;Should be triggerred by any select in this case&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 00:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160641#M34850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-28T00:52:27Z</dc:date>
    </item>
    <item>
      <title>No. of lines in a certain table (no. of rows)</title>
      <link>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160642#M34851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;When there's no selection, the value of the formula given does not show the correct number of rows from the straight table.&lt;/P&gt;&lt;P&gt;However, if I made a selection (for example by choosing a certain period), the result of the formula match all the time. I have 10 years to select and any combination so far results in accurate way.&lt;/P&gt;&lt;P&gt;But when no selection - the result differ.&lt;/P&gt;&lt;P&gt;Any other idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 07:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160642#M34851</guid>
      <dc:creator />
      <dc:date>2010-10-28T07:12:40Z</dc:date>
    </item>
    <item>
      <title>No. of lines in a certain table (no. of rows)</title>
      <link>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160643#M34852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;Now even a more 'newbie' question for you.. &lt;IMG alt="Big Smile" src="http://community.qlik.com/emoticons/emotion-2.gif" /&gt;&lt;/P&gt;&lt;P&gt;I did created a macro before (the macro was found in this forum too); but I can't refer the variable created inside a macro and put that in my dashboard.&lt;/P&gt;&lt;P&gt;How do I pass the variable from macro to my sheet objects?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 07:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160643#M34852</guid>
      <dc:creator />
      <dc:date>2010-10-28T07:15:32Z</dc:date>
    </item>
    <item>
      <title>No. of lines in a certain table (no. of rows)</title>
      <link>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160644#M34853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just refer by the variable name. You can show, for example, a text box with text like this (in the name of your variable is Var):&lt;BR /&gt;=Var&lt;BR /&gt;or&lt;BR /&gt;='Number of rows in table 1 = ' &amp;amp; Var&lt;BR /&gt;In chart expressions you can refer to it as Var, or $(Var).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 13:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160644#M34853</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-28T13:49:17Z</dc:date>
    </item>
    <item>
      <title>No. of lines in a certain table (no. of rows)</title>
      <link>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160645#M34854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;poundesville wrote:&lt;BR /&gt;Hi John,&lt;BR /&gt;When there's no selection, the value of the formula given does not show the correct number of rows from the straight table.&lt;BR /&gt;However, if I made a selection (for example by choosing a certain period), the result of the formula match all the time. I have 10 years to select and any combination so far results in accurate way.&lt;BR /&gt;But when no selection - the result differ.&lt;BR /&gt;Any other idea?&amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hmmm, not sure why it's not working when there are no selections. But Michael's solution sounds more robust than what I was proposing anyway since it will refer to the actual object instead of trying to duplicate what the object is doing. So I'd just do that instead, I think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 17:54:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160645#M34854</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-28T17:54:11Z</dc:date>
    </item>
    <item>
      <title>No. of lines in a certain table (no. of rows)</title>
      <link>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160646#M34855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you John and Michael.&lt;/P&gt;&lt;P&gt;I marked both your replies as "answer"&lt;/P&gt;&lt;P&gt;For those searching the same thing.&lt;/P&gt;&lt;P&gt;1. Create a variable. From menu -&amp;gt; Settings -&amp;gt; Document settings -&amp;gt; Variable tab. Just add and give it any name. For my macro, the variable name is "myVar"&lt;/P&gt;&lt;P&gt;2. Select the macro type and click on Edit Module&lt;/P&gt;&lt;P&gt;3. Enter macro like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;poundesville wrote:&lt;BR /&gt;&lt;BR style="padding-left:60px;" /&gt;Sub NoOfRows&lt;BR style="padding-left:60px;" /&gt; set chart = ActiveDocument.GetSheetObject("CH77")&lt;BR style="padding-left:60px;" /&gt; ActiveDocument.Variables("myVar").SetContent chart.GetNoOfRows, true&lt;BR style="padding-left:60px;" /&gt;end Sub&lt;BR style="padding-left:60px;" /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;DIV&gt;4. On Macro page. on Document Event Trigger choose "OnAnySelect" and choose the macro "NoOrRows" that you just created in step 3&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;5. Now you can use "myVar" anywhere in your qlikview.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Oct 2010 02:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160646#M34855</guid>
      <dc:creator />
      <dc:date>2010-10-29T02:35:32Z</dc:date>
    </item>
    <item>
      <title>No. of lines in a certain table (no. of rows)</title>
      <link>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160647#M34856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried this macro and it doesnt work for me. I get a message the the object does not support the property. I looked in the api guide and i dont see and GetNoOfRows associated with charts. Hmm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 18:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160647#M34856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-20T18:15:36Z</dc:date>
    </item>
    <item>
      <title>No. of lines in a certain table (no. of rows)</title>
      <link>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160648#M34857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tim,&lt;BR /&gt;Waht type of chart is it? GetNoOfRows exists for straight table only.&lt;BR /&gt;(Unless it is different depending on QV version as well)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 16:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160648#M34857</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-01T16:33:47Z</dc:date>
    </item>
    <item>
      <title>No. of lines in a certain table (no. of rows)</title>
      <link>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160649#M34858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;rowno() gives you the number of the row you are.&lt;/P&gt;&lt;P&gt;If you have more than 1 dimension, it initializes every change of dimension. Use then rowno(&lt;STRONG&gt;Total&lt;/STRONG&gt;) and youll have the rowno without considering dimensions.&lt;/P&gt;&lt;P&gt;It works the same for columnno(), columnno(&lt;STRONG&gt;Total&lt;/STRONG&gt;). Very useful to inter record calculations like accumulating any column or row together with rangesum and range any function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 17:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/No-of-lines-in-a-certain-table-no-of-rows/m-p/160649#M34858</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2011-02-01T17:42:26Z</dc:date>
    </item>
  </channel>
</rss>

