<?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: Need rownr in 2nd expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-rownr-in-2nd-expression/m-p/391668#M489966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Rank(...)&lt;/STRONG&gt; is not exactly what I look for since this needs some field to rank on . . .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did rank on value for test . . . but now I get empty rows ( &lt;EM&gt;&lt;STRONG&gt;null()&lt;/STRONG&gt;&lt;/EM&gt; ) which I can't really seem to get rid of ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24480" class="jive-image-thumbnail jive-image" onclick="" alt="table4.png" src="https://community.qlik.com/legacyfs/online/24480_table4.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression for the &lt;STRONG&gt;count&lt;/STRONG&gt; column:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;count(distinct &lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;&amp;nbsp; (Serviceorders.EventType = 1 and Serviceorders.Orderdatumtijd &amp;gt;= timestamp(vLastLoadDateTimeNUM))&lt;/P&gt;&lt;P&gt;&amp;nbsp; or&lt;/P&gt;&lt;P&gt;&amp;nbsp; (Serviceorders.EventType = 3 and Serviceorders.Einddatumtijd &amp;gt;= timestamp(vLastLoadDateTimeNUM))&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Serviceorders.Serviceordernr&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;gt; 0,&lt;/P&gt;&lt;P&gt;rank(total value)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Nov 2012 10:43:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-11-01T10:43:16Z</dc:date>
    <item>
      <title>Need rownr in 2nd expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-rownr-in-2nd-expression/m-p/391664#M489962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The table below is what I show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24477" class="jive-image-thumbnail jive-image" height="88" onclick="" alt="table.png" src="https://community.qlik.com/legacyfs/online/24477_table.png" style="height: 88px; width: 880px;" width="880" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The grey values are expressions, the white ones are the dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the field &lt;STRONG&gt;count&lt;/STRONG&gt; I need a number which counts up from 1, 2, 3, 4, 5, .. .etc (just from first to last row)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the function &lt;STRONG&gt;RowNo():&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG __jive_id="24478" class="jive-image-thumbnail jive-image" height="129" onclick="" alt="table2.png" src="https://community.qlik.com/legacyfs/online/24478_table2.png" style="height: 129px; width: 734.8101265822785px;" width="735" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the function &lt;STRONG&gt;RowNo(TOTAL)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24479" class="jive-image-thumbnail jive-image" height="114" onclick="" alt="table3.png" src="https://community.qlik.com/legacyfs/online/24479_table3.png" style="height: 114px; width: 649.367088607595px;" width="649" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;RowNo(TOTAL)&lt;/STRONG&gt; looks somehow what I need, but I only need the rows with a value.&lt;/P&gt;&lt;P&gt;When saying that to the &lt;EM&gt;&lt;STRONG&gt;count&lt;/STRONG&gt;&lt;/EM&gt; column it shows the numbers 3, 5, 6 . . . instead of 1, 2, 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone knows how to handle this?? I just need some numbering for an export.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 10:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-rownr-in-2nd-expression/m-p/391664#M489962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-01T10:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need rownr in 2nd expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-rownr-in-2nd-expression/m-p/391665#M489963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try.. &lt;STRONG&gt;Rank()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or..&amp;nbsp; &lt;STRONG&gt;If(value&amp;gt;'0',Rank())&lt;/STRONG&gt; or &lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;If(value&amp;gt;'0',&lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;RowNo(TOTAL)&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 10:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-rownr-in-2nd-expression/m-p/391665#M489963</guid>
      <dc:creator />
      <dc:date>2012-11-01T10:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need rownr in 2nd expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-rownr-in-2nd-expression/m-p/391666#M489964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried enabling the Supress Missing Values option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 10:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-rownr-in-2nd-expression/m-p/391666#M489964</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-01T10:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need rownr in 2nd expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-rownr-in-2nd-expression/m-p/391667#M489965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Supress missing values only works for dimensions??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case I have an expression which removes the values . . .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 10:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-rownr-in-2nd-expression/m-p/391667#M489965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-01T10:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need rownr in 2nd expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-rownr-in-2nd-expression/m-p/391668#M489966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Rank(...)&lt;/STRONG&gt; is not exactly what I look for since this needs some field to rank on . . .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did rank on value for test . . . but now I get empty rows ( &lt;EM&gt;&lt;STRONG&gt;null()&lt;/STRONG&gt;&lt;/EM&gt; ) which I can't really seem to get rid of ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24480" class="jive-image-thumbnail jive-image" onclick="" alt="table4.png" src="https://community.qlik.com/legacyfs/online/24480_table4.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression for the &lt;STRONG&gt;count&lt;/STRONG&gt; column:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;count(distinct &lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;&amp;nbsp; (Serviceorders.EventType = 1 and Serviceorders.Orderdatumtijd &amp;gt;= timestamp(vLastLoadDateTimeNUM))&lt;/P&gt;&lt;P&gt;&amp;nbsp; or&lt;/P&gt;&lt;P&gt;&amp;nbsp; (Serviceorders.EventType = 3 and Serviceorders.Einddatumtijd &amp;gt;= timestamp(vLastLoadDateTimeNUM))&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Serviceorders.Serviceordernr&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;gt; 0,&lt;/P&gt;&lt;P&gt;rank(total value)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 10:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-rownr-in-2nd-expression/m-p/391668#M489966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-01T10:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need rownr in 2nd expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-rownr-in-2nd-expression/m-p/391669#M489967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If ranking a value ... the problem which occurs is that if a value is shown more than once the rank shows e.g. 5-6 (see sample below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24492" class="jive-image-thumbnail jive-image" onclick="" alt="table5.png" src="https://community.qlik.com/legacyfs/online/24492_table5.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there another way to show just a 'front' number which just adds one up&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2012 13:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-rownr-in-2nd-expression/m-p/391669#M489967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-01T13:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need rownr in 2nd expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-rownr-in-2nd-expression/m-p/391670#M489968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;if(IsNull(Value),'', RangeCount(above(total Value,0,RowNo(total))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Nov 2012 19:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-rownr-in-2nd-expression/m-p/391670#M489968</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-11T19:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need rownr in 2nd expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-rownr-in-2nd-expression/m-p/391671#M489969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did try, but this didn't work the way I thought it would&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 08:33:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-rownr-in-2nd-expression/m-p/391671#M489969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-12T08:33:40Z</dc:date>
    </item>
  </channel>
</rss>

