<?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 Replacing row over partition by function excluding nulls in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replacing-row-over-partition-by-function-excluding-nulls/m-p/1602915#M596835</link>
    <description>&lt;P&gt;I am struggling with replacing a sql server row_number over partition by function in qlikview.&amp;nbsp; I have fortunately replaced the function from help on the forum from another person's post with combination of the previous and peek function however because I am doing this in a load statement from resident table I can't seem to exclude the nulls.&amp;nbsp; I tried with where clause of load statement however it still counts those row as number 1 just not showing them so seems as if order starts at 2 or 3 depending on number of nulls.&amp;nbsp; Below is piece of script I am using.&amp;nbsp; What I need is it to not even look at nulls in the time_arrivedatscene field.&amp;nbsp; Unfortunately I cannot exclude the nulls in the original SQL as the business units need to know for other reporting requirements when that field is null on an incident.&lt;/P&gt;&lt;P&gt;LEFT JOIN (TestTable)&lt;BR /&gt;LOAD&lt;BR /&gt;Recno,&lt;BR /&gt;if(master_incident_number=previous(master_incident_number),peek("SceneArrivalOrder")+1,1) as "SceneArrivalOrder"&lt;BR /&gt;Resident TestTable&lt;BR /&gt;Order By master_incident_number, time_arrivedatscene;&lt;BR /&gt;DROP Field Recno;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2019 21:12:38 GMT</pubDate>
    <dc:creator>cpetti04</dc:creator>
    <dc:date>2019-07-16T21:12:38Z</dc:date>
    <item>
      <title>Replacing row over partition by function excluding nulls</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-row-over-partition-by-function-excluding-nulls/m-p/1602915#M596835</link>
      <description>&lt;P&gt;I am struggling with replacing a sql server row_number over partition by function in qlikview.&amp;nbsp; I have fortunately replaced the function from help on the forum from another person's post with combination of the previous and peek function however because I am doing this in a load statement from resident table I can't seem to exclude the nulls.&amp;nbsp; I tried with where clause of load statement however it still counts those row as number 1 just not showing them so seems as if order starts at 2 or 3 depending on number of nulls.&amp;nbsp; Below is piece of script I am using.&amp;nbsp; What I need is it to not even look at nulls in the time_arrivedatscene field.&amp;nbsp; Unfortunately I cannot exclude the nulls in the original SQL as the business units need to know for other reporting requirements when that field is null on an incident.&lt;/P&gt;&lt;P&gt;LEFT JOIN (TestTable)&lt;BR /&gt;LOAD&lt;BR /&gt;Recno,&lt;BR /&gt;if(master_incident_number=previous(master_incident_number),peek("SceneArrivalOrder")+1,1) as "SceneArrivalOrder"&lt;BR /&gt;Resident TestTable&lt;BR /&gt;Order By master_incident_number, time_arrivedatscene;&lt;BR /&gt;DROP Field Recno;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 21:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-row-over-partition-by-function-excluding-nulls/m-p/1602915#M596835</guid>
      <dc:creator>cpetti04</dc:creator>
      <dc:date>2019-07-16T21:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing row over partition by function excluding nulls</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-row-over-partition-by-function-excluding-nulls/m-p/1610940#M596836</link>
      <description>&lt;P&gt;If you can attach your app, or a sample app, I think you are more likely to get some help, this one is a bit tough to get your head wrapped around without it I think.&amp;nbsp; That way folks can see the data model and the chart expressions and setup...&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 21:37:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-row-over-partition-by-function-excluding-nulls/m-p/1610940#M596836</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-08-08T21:37:02Z</dc:date>
    </item>
  </channel>
</rss>

