<?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: Check if Previous Previous field is null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-if-Previous-Previous-field-is-null/m-p/549855#M483330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;CODE class="jive-code jive-sql"&gt;if([Stock]=' ',Previous([Stock]), [Stock]) &lt;SPAN class="jive-sql-keyword"&gt;as&lt;/SPAN&gt; [Stock],&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jul 2013 10:30:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-08T10:30:35Z</dc:date>
    <item>
      <title>Check if Previous Previous field is null</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-Previous-Previous-field-is-null/m-p/549853#M483328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to fill previous empty fields with the value of the previous row.&lt;/P&gt;&lt;P&gt;I will explain this with an example. I am using the following table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="269" style="width: 267px; height: 173px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="text-align: left;" width="74"&gt;&lt;STRONG&gt;KeyPart&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none; text-align: left;" width="63"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none; text-align: left;" width="57"&gt;&lt;STRONG&gt;Voorraad&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-01-2013&lt;/TD&gt;&lt;TD class="xl69" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-02-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-03-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-04-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;77&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-05-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-06-2013&lt;/TD&gt;&lt;TD class="xl70" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-07-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-01-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-02-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;27&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-03-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-04-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-05-2013&lt;/TD&gt;&lt;TD class="xl70" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-06-2013&lt;/TD&gt;&lt;TD class="xl70" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-07-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following code in my script:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13732779628822041" jivemacro_uid="_13732779628822041"&gt;if(IsNull([Stock]),Previous([Stock]), [Stock]) as [Stock],&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works (partially), and I get the following result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="269" style="width: 267px; height: 173px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="text-align: left;" width="74"&gt;&lt;STRONG&gt;KeyPart&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none; text-align: left;" width="63"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-style: none; text-align: left;" width="57"&gt;&lt;STRONG&gt;Voorraad&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl68" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-01-2013&lt;/TD&gt;&lt;TD class="xl69" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-02-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-03-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-04-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;77&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-05-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-06-2013&lt;/TD&gt;&lt;TD class="xl70" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-07-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-01-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-02-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;27&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-03-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-04-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-05-2013&lt;/TD&gt;&lt;TD class="xl70" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-06-2013&lt;/TD&gt;&lt;TD class="xl70" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top-style: none; text-align: left;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;01-07-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-style: none; border-left-style: none; text-align: left;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only problem is the 01-04-2013 date for ExamplePart2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have alot of cases where 2 or more months are empty. How can I change the IF statement so it fills, lets say, even 6 months back?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_137327820782626" jivemacro_uid="_137327820782626"&gt;&lt;P&gt;if(IsNull([Stock]),Previous([Stock]), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(isNull(Previous([Stock])), Previous(Previous([Stock])), [Stock])) as [Stock],&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this doesnt seem to work. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 10:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-Previous-Previous-field-is-null/m-p/549853#M483328</guid>
      <dc:creator />
      <dc:date>2013-07-08T10:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Check if Previous Previous field is null</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-Previous-Previous-field-is-null/m-p/549854#M483329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try This:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code jive-sql"&gt;if(IsNull([Stock]),Peek(New_Stock), [Stock]) &lt;SPAN class="jive-sql-keyword"&gt;as&lt;/SPAN&gt; New_Stock&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 10:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-Previous-Previous-field-is-null/m-p/549854#M483329</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-07-08T10:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Check if Previous Previous field is null</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-Previous-Previous-field-is-null/m-p/549855#M483330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;CODE class="jive-code jive-sql"&gt;if([Stock]=' ',Previous([Stock]), [Stock]) &lt;SPAN class="jive-sql-keyword"&gt;as&lt;/SPAN&gt; [Stock],&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 10:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-Previous-Previous-field-is-null/m-p/549855#M483330</guid>
      <dc:creator />
      <dc:date>2013-07-08T10:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Check if Previous Previous field is null</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-Previous-Previous-field-is-null/m-p/549856#M483331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KeyPart, Month, Voorraad&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExamplePart1, 01-01-2013, 21&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExamplePart1, 01-02-2013, 14&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExamplePart1, 01-03-2013, 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExamplePart1, 01-04-2013, 77&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExamplePart1, 01-05-2013, -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExamplePart1, 01-06-2013, 70&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExamplePart1, 01-07-2013, 70&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExamplePart2, 01-01-2013, 33&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExamplePart2, 01-02-2013, 27&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExamplePart2, 01-03-2013, 25&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExamplePart2, 01-04-2013, -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExamplePart2, 01-05-2013, -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExamplePart2, 01-06-2013, 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ExamplePart2, 01-07-2013, 20&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Voorraad='-',Previous(Voorraad),Voorraad) as Voorraad_new&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resident temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;then output like this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="231"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="82"&gt;KeyPart&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="62"&gt;Month&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="87"&gt;Voorraad_new&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-01-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-02-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-03-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-04-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;77&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-05-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;77&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-06-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-07-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-01-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-02-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;27&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-03-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-04-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-05-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-06-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;01-07-2013&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;see attachement&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 10:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-Previous-Previous-field-is-null/m-p/549856#M483331</guid>
      <dc:creator />
      <dc:date>2013-07-08T10:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Check if Previous Previous field is null</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-Previous-Previous-field-is-null/m-p/549857#M483332</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(Voorraad='',Peek(Voorraad_new),Voorraad) as Voorraad_new&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 10:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-Previous-Previous-field-is-null/m-p/549857#M483332</guid>
      <dc:creator>florentina_doga</dc:creator>
      <dc:date>2013-07-08T10:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Check if Previous Previous field is null</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-Previous-Previous-field-is-null/m-p/549858#M483333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your data is like this at source, then you may be able to use the Transformation step to fill in missing values, otherwise you may also be able to export the table to a qvd and read it back in with transformation step ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Store A into A.qvd (qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Table A;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD @1 as KeyPart, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as Month, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @3 as Stock&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[A.qvd]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(qvd, filters(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Replace(3, top, StrCnd(equal, '-'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 11:08:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-Previous-Previous-field-is-null/m-p/549858#M483333</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2013-07-08T11:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Check if Previous Previous field is null</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-Previous-Previous-field-is-null/m-p/549859#M483334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in expression side--&lt;/P&gt;&lt;P&gt;try this-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in straight--&lt;/P&gt;&lt;P&gt;dimension1-&amp;nbsp;&amp;nbsp;&amp;nbsp; KeyPart&lt;/P&gt;&lt;P&gt;dimension2-&amp;nbsp;&amp;nbsp;&amp;nbsp; Month&lt;/P&gt;&lt;P&gt;expression-&amp;nbsp;&amp;nbsp; if(Voorraad='-',Below(Voorraad),Voorraad)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then outpul like this&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="522"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;KeyPart&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Month&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="326"&gt;if(Voorraad='-',Below(Voorraad),Voorraad)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;01-01-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;01-02-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;01-03-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;01-04-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;77&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;01-05-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;01-06-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ExamplePart1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;01-07-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;01-01-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;01-02-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;27&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;01-03-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;01-04-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;01-05-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;01-06-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;ExamplePart2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;01-07-2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 11:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-Previous-Previous-field-is-null/m-p/549859#M483334</guid>
      <dc:creator />
      <dc:date>2013-07-08T11:10:15Z</dc:date>
    </item>
  </channel>
</rss>

