<?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: RowNo() vs RowNo revisited in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RowNo-vs-RowNo-revisited/m-p/1194917#M627723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;how do I do this for rows per table please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vSize = NoOfRows('myTable');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; and then display vSize in a text box&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Sep 2016 05:56:53 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2016-09-30T05:56:53Z</dc:date>
    <item>
      <title>RowNo() vs RowNo revisited</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-vs-RowNo-revisited/m-p/1194913#M627715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;Part A&lt;/P&gt;&lt;P&gt;I looked at Help but I cannot find information on the difference between RowNo() and RowNo on load but it seems that RowNo will only load if you have a column called RowNo - however, RowNo comes up automatically when loading the script????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part B&lt;/P&gt;&lt;P&gt;I have one large flat file which I need to break into smaller files - (in one part there are 3 columns which will need to be made into a crosstable)&amp;nbsp;&amp;nbsp; A static record number&amp;nbsp; could work as a key field. Is it best to add a record number in the spreadsheet or in Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part C - I don't want any surprises &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;I have used the &lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;RowNo(), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this has worked and enables me to check that all rows/records in the spreadsheet have been loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I used the RowNo() and the crosstable - I needed to be careful when using (count([RowNo()]) - in order that it counted the same row twice if the data occurred twice in the same row.&amp;nbsp; (ie not to use count(distinct({RowNo()])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example below for example - counting how many type1s there were - I wanted the answer 2 - not 1:&lt;/P&gt;&lt;P&gt;RowNumber&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col3&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It took a while to check this ... so are there any other surprises I should look out for?&lt;/P&gt;&lt;P&gt;(I will also need eventually to categorise type1, type2 etc - but an automatic synthetic join worked - although I might try to do a lookup table using Qlikview -&amp;nbsp; I think I saw a thread about that ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PartD&lt;/P&gt;&lt;P&gt;Should I in fact use RecNo() for my purposes - using and converting a large flat file with the RecNo&amp;nbsp; being the primary key.&amp;nbsp; Substituting one for the other has so far not shown any differences.&amp;nbsp; It probably makes more logical sense as it is the input file that I wish to have a primary key ID for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part E&lt;/P&gt;&lt;P&gt;RowNo(Total) - I have seen reference to this - but it does not work ... is it a function or something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 04:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-vs-RowNo-revisited/m-p/1194913#M627715</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2016-09-30T04:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo() vs RowNo revisited</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-vs-RowNo-revisited/m-p/1194914#M627717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A - I&amp;nbsp; dont understand your question here. RowNo is a field and RowNo() is a function. The field must have come from your data source or was created by the load process - it is not a built in field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B - test each one to see which you prefer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C - I think RowNo() and RecNo() are both populated before the cross table is expanded. So they refer to the pre-cross tabled data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D - RecNo() refers to the input rows, RowNo() refers to the output rows. There will be a difference if you are filtering the data (eg with a Where / Distinct / Join / Keep). They also differ when you using a preceding load - RecNo() is only populated at the lowest level and RowNo() is only populated at the highest level of the preceding load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E - RowNo(TOTAL) is a table function meaningful in the front-end (counts the row number across all dimensions). You cannot use it in the load script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 05:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-vs-RowNo-revisited/m-p/1194914#M627717</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-09-30T05:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo() vs RowNo revisited</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-vs-RowNo-revisited/m-p/1194915#M627719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RowNo just "appears" when I start to write RowNo() ...&amp;nbsp; and gives me an error - not sure where itcame from.&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in terms of maintenance - I would need to add the row number in Excel each time records were added - rather than let Qlik do it - so best to let let Qlik do it (when comfortable that is is working as expected)&lt;/P&gt;&lt;P&gt;C.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I got a "oh no" moment when loading the data - ordinary count worked but then when re-loaded I needed to add distinct to one set of calcs and needed to &lt;STRONG&gt;not&lt;/STRONG&gt; use distinct in another set of calcs - those with the crosstable.&amp;nbsp;&amp;nbsp; From this i have learnt best to CONTROL by using Distinct or not using Distinct ....&lt;/P&gt;&lt;P&gt;D.&amp;nbsp; so if I want a primary key and this to be static - best to use RecNo()&lt;/P&gt;&lt;P&gt;E. Do you mean at load when Qlikview gives you the number of rows loaded per table?That would be really handy.&amp;nbsp; I have been going to settings and exporting the summary of table and fields.&amp;nbsp; So I know and use = 'Last Reloaded: ' &amp;amp; &lt;SPAN class="Bold"&gt;ReloadTime( ) which i put on a text object - how do I do this for rows per table please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Jonathan&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 05:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-vs-RowNo-revisited/m-p/1194915#M627719</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2016-09-30T05:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo() vs RowNo revisited</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-vs-RowNo-revisited/m-p/1194916#M627721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RowNo just "appears" when I start to write RowNo() ...&amp;nbsp; and gives me an error - not sure where itcame from&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;That's the editor auto-complete. Yow will get an error without the parenthesis because it is an error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;so if I want a primary key and this to be static - best to use RecNo()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;That depends on your data and your requirements. Either one can do the job.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Do you mean at load when Qlikview gives you the number of rows loaded per table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;No -that is still the load script. in the script, use NoOfRows('myTable') to get the loaded rows in the table named 'myTable'.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 05:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-vs-RowNo-revisited/m-p/1194916#M627721</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-09-30T05:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo() vs RowNo revisited</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-vs-RowNo-revisited/m-p/1194917#M627723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;how do I do this for rows per table please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vSize = NoOfRows('myTable');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; and then display vSize in a text box&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 05:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-vs-RowNo-revisited/m-p/1194917#M627723</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-09-30T05:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo() vs RowNo revisited</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-vs-RowNo-revisited/m-p/1194918#M627726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 13:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-vs-RowNo-revisited/m-p/1194918#M627726</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2016-09-30T13:21:23Z</dc:date>
    </item>
  </channel>
</rss>

