<?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: Peek on first line (Even if Null) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339463#M412751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But excel sheet has a value 102 for 29/01/2017. There are no nulls. Even though i don't use your peek script line. So can you update your excel sheet and re post it if possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 May 2017 15:55:47 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2017-05-25T15:55:47Z</dc:date>
    <item>
      <title>Peek on first line (Even if Null)</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339460#M412748</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;&lt;/P&gt;&lt;P&gt;Thanks for looking and helping with this challenge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying to get a Peek expression to place the first result on the first line with no success, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially, with the attached data set I've added in the load script the following line -&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peek(Value) * If(ISNULL(Peek(list)), 100, (Peek(list))) as list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which creates exactly what I want (Essentially a workaround for the lack of Excel function Product) however the part I can't figure out is how to get the first Peek result on the first line, so for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CommImage.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164757_CommImage.png" style="height: 231px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the 102.1751 below the null to be on the line above it next to 102% and the same for all the rest?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 15:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339460#M412748</guid>
      <dc:creator />
      <dc:date>2017-05-25T15:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first line (Even if Null)</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339461#M412749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i ran your Excel sheet inside qlikview i cant find any nulls, can you send me a screen shot of where you displaying this information in Qlikview which has Null? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD Adimension, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Peek(Value) * If(ISNULL(Peek(list)),100, (Peek(list))) as list&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\..\DataforComm2.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what i got when used Straight table chart. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164754_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 15:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339461#M412749</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-05-25T15:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first line (Even if Null)</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339462#M412750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, The issue is that as per your image you're starting on the 26th Feb 1999 when the data actually starts in Jan 1999, so I need the 102.18 to be next to the Jan 1999 Record that it takes the initial Peek at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense, as per my image above (which I'll admit I used Sense to quick test this in) shows the line 20/01/1999 with a null/missing value in the List field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that all makes sense&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAny thanks&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 15:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339462#M412750</guid>
      <dc:creator />
      <dc:date>2017-05-25T15:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first line (Even if Null)</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339463#M412751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But excel sheet has a value 102 for 29/01/2017. There are no nulls. Even though i don't use your peek script line. So can you update your excel sheet and re post it if possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 15:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339463#M412751</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-05-25T15:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first line (Even if Null)</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339464#M412752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Null may be the wrong word, apologies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Field List doesnt exist until you use that expression which then creates it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the image I posted above you can see that on the line representing Jan 1999 List shows a - / blank / null and the 102.175 is represented on the line below it, feb 1999. That 102.175 needs to be on the same line has Jan 1999.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 15:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339464#M412752</guid>
      <dc:creator />
      <dc:date>2017-05-25T15:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first line (Even if Null)</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339465#M412753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can i know the whole purpose of creating field "list" in this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 16:27:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339465#M412753</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-05-25T16:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first line (Even if Null)</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339466#M412754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim: Adimension, Date, Value&lt;/P&gt;&lt;P&gt;Expr: = IF(Sum(list) = 0.00, Below(TOTAL sum(list)), sum(list))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/164763_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 16:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339466#M412754</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-05-25T16:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first line (Even if Null)</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339467#M412755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers for the update, unfortunatly whilst that does get 102.18 onto the firstline, the rest of the lines are still incorrect, they all need to come up one line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAny thanks&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 11:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339467#M412755</guid>
      <dc:creator />
      <dc:date>2017-05-26T11:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first line (Even if Null)</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339468#M412756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Are you looking to do this in the script?&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;Peek(Value) * If(ISNULL(Peek(list)), 100, (Peek(list))) as list&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 12:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339468#M412756</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-26T12:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first line (Even if Null)</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339469#M412757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Front end or back end I don't mind, I've ordered the data set its loading off of to be in the right order when it comes in (Product and then Date) to make it as easy as possible. To be fair, the above does work its just the Peek inputs the result into the row below the one it Peeked at which is frustrating.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 12:11:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339469#M412757</guid>
      <dc:creator />
      <dc:date>2017-05-26T12:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first line (Even if Null)</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339470#M412758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't really have the data to try this out... but may be you need this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Below(TOTAL &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum(list))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Below(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum(list))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 12:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339470#M412758</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-26T12:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first line (Even if Null)</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339471#M412759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I attached some data to the original post if that helps, but I'll give that a go now, cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 12:16:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339471#M412759</guid>
      <dc:creator />
      <dc:date>2017-05-26T12:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first line (Even if Null)</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339472#M412760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works with just one unfortunate flaw, because the Peek is one row down, it means the latest date is therefore missing when you use Below to shuffle them one row back up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 12:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339472#M412760</guid>
      <dc:creator />
      <dc:date>2017-05-26T12:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first line (Even if Null)</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339473#M412761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What would you want to see for the latest date? I am confused regarding the required output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 12:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339473#M412761</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-26T12:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first line (Even if Null)</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339474#M412762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate the need for clarification, so please see attached, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will show you how its worked out in Excel, unfortunatly I don't have Product function in Qlik (As much as that would solve near enough all my questions) so I've had to work around that in a variety of ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the price column you'll see that March should be 224.67, and next to it on the right (and below) the sums I'm working towards building once these calculations are complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 12:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339474#M412762</guid>
      <dc:creator />
      <dc:date>2017-05-26T12:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first line (Even if Null)</title>
      <link>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339475#M412763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this script may be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD F2 as Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Monthly return"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM [lib://Lib/Copy of Book2.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 1 + [Monthly return] as [1+MR],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alt(Peek('Price') * (1 + [Monthly return]), 100) as Price&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By Date;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 12:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Peek-on-first-line-Even-if-Null/m-p/1339475#M412763</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-26T12:54:57Z</dc:date>
    </item>
  </channel>
</rss>

