<?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: FirstSortedValue, find last value before (or equal to) 08:00 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951849#M327351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks good! However not sure how to implement in my rather nested production script, the app provided is only a simplified version. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2015 12:10:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-30T12:10:19Z</dc:date>
    <item>
      <title>FirstSortedValue, find last value before (or equal to) 08:00</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951843#M327345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need to find the last value before (or equal to) 08:00 but the below expression does not work properly, any ideas?&lt;/P&gt;&lt;P&gt;Pls find attached example files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SettlementTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;lt;$(=time(08:00:00:000000))'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RunningBalance&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SettlementTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Olle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 14:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951843#M327345</guid>
      <dc:creator />
      <dc:date>2015-09-28T14:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue, find last value before (or equal to) 08:00</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951844#M327346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression above only picks the very last value for each day, regardless of the time.&lt;/P&gt;&lt;P&gt;//O&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 14:16:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951844#M327346</guid>
      <dc:creator />
      <dc:date>2015-09-28T14:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue, find last value before (or equal to) 08:00</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951845#M327347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 07:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951845#M327347</guid>
      <dc:creator />
      <dc:date>2015-09-29T07:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue, find last value before (or equal to) 08:00</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951846#M327348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 08:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951846#M327348</guid>
      <dc:creator />
      <dc:date>2015-09-30T08:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue, find last value before (or equal to) 08:00</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951847#M327349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check if this helps -&lt;/P&gt;&lt;P&gt;&lt;IMG alt="settle.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100494_settle.PNG" style="height: 104px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 11:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951847#M327349</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-09-30T11:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue, find last value before (or equal to) 08:00</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951848#M327350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume that SettlementTime has no date component (put num(SettlementTime) in a list box - the values should be between 0 and 1). If so, you could try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue({&amp;lt;SettlementTime={"&amp;lt;=$(=time#('08:00:00'))"}&amp;gt;} RunningBalance, -SettlementTime)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 12:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951848#M327350</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-09-30T12:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue, find last value before (or equal to) 08:00</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951849#M327351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks good! However not sure how to implement in my rather nested production script, the app provided is only a simplified version. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 12:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951849#M327351</guid>
      <dc:creator />
      <dc:date>2015-09-30T12:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue, find last value before (or equal to) 08:00</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951850#M327352</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;=FirstSortedValue({&amp;lt;SettlementTime={"&amp;lt;$(=time#('08:00:00:000000','hh:mm:ss:fffff'))"}&amp;gt;} RunningBalance,-SettlementTime)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 12:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951850#M327352</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-09-30T12:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue, find last value before (or equal to) 08:00</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951851#M327353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I got using num(SettlementTime) in the list box. Weird.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100491_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 12:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951851#M327353</guid>
      <dc:creator />
      <dc:date>2015-09-30T12:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue, find last value before (or equal to) 08:00</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951852#M327354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;null values im afraid &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 12:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951852#M327354</guid>
      <dc:creator />
      <dc:date>2015-09-30T12:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue, find last value before (or equal to) 08:00</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951853#M327355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Settlement Time is in timestamp format, it might not work in set analysis when we compare it with value having time format(8:00..). that is the reason I added new field converted into time format in script. Also in source data there is 'dot' after seconds, so I think we need to use format 'hh:mm:ss.ffffff' with time# to interpret correctly though haven't checked yet if that makes much difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 13:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-find-last-value-before-or-equal-to-08-00/m-p/951853#M327355</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-09-30T13:19:37Z</dc:date>
    </item>
  </channel>
</rss>

