<?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 Calculate the Total Number of Rows. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-the-Total-Number-of-Rows/m-p/145587#M24277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK Raj&lt;/P&gt;&lt;P&gt;No we know what you would like, do this:&lt;/P&gt;&lt;P&gt;Count ( Total IS(IT='x' , 1 ) )&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jun 2009 23:33:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-01T23:33:01Z</dc:date>
    <item>
      <title>Calculate the Total Number of Rows.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-Total-Number-of-Rows/m-p/145582#M24272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am new to Qlikview.&lt;/P&gt;&lt;P&gt;I am facing one Problem.&lt;/P&gt;&lt;P&gt;in counting the Total Number of Rows. ..&lt;/P&gt;&lt;P&gt;What do you think calculated the Total Numnber of Rows. in the Table that i have Uploaded from excel.&lt;/P&gt;&lt;P&gt;Count($Rows) or NoOfRows() . Can you please guide me on this.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 22:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-Total-Number-of-Rows/m-p/145582#M24272</guid>
      <dc:creator />
      <dc:date>2009-06-01T22:59:26Z</dc:date>
    </item>
    <item>
      <title>Calculate the Total Number of Rows.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-Total-Number-of-Rows/m-p/145583#M24273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below line as part of the data load script will give you the total no of rows loaded in a table.&lt;/P&gt;&lt;P&gt;LET DATA_COUNT = NoOfRows('TABLE_NAME');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 23:11:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-Total-Number-of-Rows/m-p/145583#M24273</guid>
      <dc:creator />
      <dc:date>2009-06-01T23:11:55Z</dc:date>
    </item>
    <item>
      <title>Calculate the Total Number of Rows.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-Total-Number-of-Rows/m-p/145584#M24274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raj&lt;/P&gt;&lt;P&gt;First, when you use the RowNo() function inside a table, it will change according to the number of rows you have in that table (not the stored table, the one display on the screen) so in your case you have two chart each of which has two bars, so the NoOfRows() will always be 2 in this case. I'm afraid I haven't used Count($Rows) so I cannot tell you how this one works.&lt;/P&gt;&lt;P&gt;What you can do though is to add RowNo() as LineNum to your LOAD Script statement so it would appear like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;H3 style="font-weight: bold"&gt;&lt;/H3&gt;&lt;P style="font-weight: bold; padding-left: 30px"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold; padding-left: 30px"&gt;&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;&lt;/P&gt;&lt;P&gt;Then, in your QVW Document you could use the expression =Max(LineNum) to give you the total count.&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;Date,IT,I,V,RowNo() &lt;B&gt;AS&lt;/B&gt; LineNum &lt;B&gt;FROM&lt;/B&gt; Bookw.xls (biff, embedded labels, table is Sheet1$); &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 23:21:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-Total-Number-of-Rows/m-p/145584#M24274</guid>
      <dc:creator />
      <dc:date>2009-06-01T23:21:10Z</dc:date>
    </item>
    <item>
      <title>Calculate the Total Number of Rows.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-Total-Number-of-Rows/m-p/145585#M24275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what's going on with this Forum at the moment, text keeps splitting up, in the above text, the Line starting with Date,IT,I,V....... should be after LOAD.&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 23:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-Total-Number-of-Rows/m-p/145585#M24275</guid>
      <dc:creator />
      <dc:date>2009-06-01T23:22:20Z</dc:date>
    </item>
    <item>
      <title>Calculate the Total Number of Rows.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-Total-Number-of-Rows/m-p/145586#M24276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanks ,&lt;/P&gt;&lt;P&gt;I got some idea . But My problem is I wanted the No. of Rows for IT=x . (Say for Example)&lt;/P&gt;&lt;P&gt;The Data_count give only fixed value of the Total No.of Rows.&lt;/P&gt;&lt;P&gt;It should be fexible enough to calculate the No.of Rows based on the selection of IT (say IT='x' or IT='Y')&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 23:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-Total-Number-of-Rows/m-p/145586#M24276</guid>
      <dc:creator />
      <dc:date>2009-06-01T23:30:03Z</dc:date>
    </item>
    <item>
      <title>Calculate the Total Number of Rows.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-Total-Number-of-Rows/m-p/145587#M24277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK Raj&lt;/P&gt;&lt;P&gt;No we know what you would like, do this:&lt;/P&gt;&lt;P&gt;Count ( Total IS(IT='x' , 1 ) )&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 23:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-Total-Number-of-Rows/m-p/145587#M24277</guid>
      <dc:creator />
      <dc:date>2009-06-01T23:33:01Z</dc:date>
    </item>
    <item>
      <title>Calculate the Total Number of Rows.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-Total-Number-of-Rows/m-p/145588#M24278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nigel ,&lt;/P&gt;&lt;P&gt;Thanks for you help. A couple of Questions.&lt;/P&gt;&lt;P&gt;1. "Is" was giving me error so i replaced it with "IF" and it worked Fine. Just for my Curiosity , Can "Count" here will behave in the Same way as "SUM" as in the IF condition we are retuning "1" on condition success.&lt;/P&gt;&lt;P&gt;I am asking another question in a diffrent context. I am working with 100-200 MM record , I am worried if adding an extra column like RowNo() as lineNmber will hit the performance severly. Regards&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;P&gt;" I learn a lot for the discussion in Qlikview Forum "&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 23:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-Total-Number-of-Rows/m-p/145588#M24278</guid>
      <dc:creator />
      <dc:date>2009-06-01T23:55:12Z</dc:date>
    </item>
    <item>
      <title>Calculate the Total Number of Rows.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-Total-Number-of-Rows/m-p/145589#M24279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raj&lt;/P&gt;&lt;P&gt;First, the IS was my mistake, it certainly should have been IF so well done for spotting that one!!&lt;/P&gt;&lt;P&gt;Second, SUM would work in exactly the same way as count, again well done for spotting that one.&lt;/P&gt;&lt;P&gt;Next, I would always try to put as much logic as possible into the LOAD Script rather than expressions, the RowNo() should not impact performance much at all, moreover, I would also put in the logic for IF(IT='X',1) into the load script, this way the expressions only need to be a simple sum of a value. Calculated expressions have a far greater impact on performance than additional logic in the LOAD Script.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2009 14:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-Total-Number-of-Rows/m-p/145589#M24279</guid>
      <dc:creator />
      <dc:date>2009-06-02T14:25:55Z</dc:date>
    </item>
  </channel>
</rss>

