<?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 Peek on first row in subset in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Peek-on-first-row-in-subset/m-p/1948376#M78167</link>
    <description>&lt;P&gt;Hi, I want to use first row in a subset of data as comparison.&lt;/P&gt;
&lt;P&gt;This is how I have script right now:&lt;/P&gt;
&lt;P&gt;if(peek(Key)= Key, DateComparison - peek(StartDateComparison,0),0) as Days&lt;/P&gt;
&lt;P&gt;But&amp;nbsp;peek(StartDateComparison,0) will always find First row in table, not first row in subset (Bold Row).&lt;/P&gt;
&lt;P&gt;So what I want is that all dates should for all Key should be Compared with StartDateComparison&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stabben23_0-1656319346024.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82695i9B60CC4E77EF3813/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stabben23_0-1656319346024.png" alt="stabben23_0-1656319346024.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2022 08:51:33 GMT</pubDate>
    <dc:creator>stabben23</dc:creator>
    <dc:date>2022-06-27T08:51:33Z</dc:date>
    <item>
      <title>Peek on first row in subset</title>
      <link>https://community.qlik.com/t5/App-Development/Peek-on-first-row-in-subset/m-p/1948376#M78167</link>
      <description>&lt;P&gt;Hi, I want to use first row in a subset of data as comparison.&lt;/P&gt;
&lt;P&gt;This is how I have script right now:&lt;/P&gt;
&lt;P&gt;if(peek(Key)= Key, DateComparison - peek(StartDateComparison,0),0) as Days&lt;/P&gt;
&lt;P&gt;But&amp;nbsp;peek(StartDateComparison,0) will always find First row in table, not first row in subset (Bold Row).&lt;/P&gt;
&lt;P&gt;So what I want is that all dates should for all Key should be Compared with StartDateComparison&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stabben23_0-1656319346024.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/82695i9B60CC4E77EF3813/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stabben23_0-1656319346024.png" alt="stabben23_0-1656319346024.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 08:51:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Peek-on-first-row-in-subset/m-p/1948376#M78167</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2022-06-27T08:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first row in subset</title>
      <link>https://community.qlik.com/t5/App-Development/Peek-on-first-row-in-subset/m-p/1948386#M78170</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Try like below&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(peek(Key)= Key, peek(StartDateComparison),StartDateComparison) as StartDateComparison&lt;BR /&gt;&lt;BR /&gt;By using above script, we can able to see&amp;nbsp; "StartDateComparison" values in all rows. Then, u can simply sub those 2 fields to get the "days".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 09:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Peek-on-first-row-in-subset/m-p/1948386#M78170</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2022-06-27T09:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first row in subset</title>
      <link>https://community.qlik.com/t5/App-Development/Peek-on-first-row-in-subset/m-p/1948394#M78172</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That´s a great input, I will test this in my script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 09:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Peek-on-first-row-in-subset/m-p/1948394#M78172</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2022-06-27T09:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Peek on first row in subset</title>
      <link>https://community.qlik.com/t5/App-Development/Peek-on-first-row-in-subset/m-p/1948411#M78173</link>
      <description>&lt;P&gt;Brilliant&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;this was exactly what I needed.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 09:42:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Peek-on-first-row-in-subset/m-p/1948411#M78173</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2022-06-27T09:42:08Z</dc:date>
    </item>
  </channel>
</rss>

