<?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 AGGR() or FIRSTSORTEDVALUE() - Help? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AGGR-or-FIRSTSORTEDVALUE-Help/m-p/759387#M270215</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;I need some help storing a flag for a oldest date with a minimum value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my data. I need a flag that will give me the OLDEST Date where Hours&amp;lt;MinHours for any Staff member.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flag value in the bottom data should then be 01/11/2014.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/70428_Untitled.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Nov 2014 08:44:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-04T08:44:41Z</dc:date>
    <item>
      <title>AGGR() or FIRSTSORTEDVALUE() - Help?</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-or-FIRSTSORTEDVALUE-Help/m-p/759387#M270215</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;I need some help storing a flag for a oldest date with a minimum value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my data. I need a flag that will give me the OLDEST Date where Hours&amp;lt;MinHours for any Staff member.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flag value in the bottom data should then be 01/11/2014.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/70428_Untitled.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 08:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-or-FIRSTSORTEDVALUE-Help/m-p/759387#M270215</guid>
      <dc:creator />
      <dc:date>2014-11-04T08:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR() or FIRSTSORTEDVALUE() - Help?</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-or-FIRSTSORTEDVALUE-Help/m-p/759388#M270216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you need the flag for each Staff member, or just one value overall?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need one value you could use: Date(Min(If(Hours&amp;lt;MinHours,Date,)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 08:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-or-FIRSTSORTEDVALUE-Help/m-p/759388#M270216</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2014-11-04T08:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR() or FIRSTSORTEDVALUE() - Help?</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-or-FIRSTSORTEDVALUE-Help/m-p/759389#M270217</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;Try like this in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date(Min(Date)) AS &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;OLDEST_Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM DataSource&lt;/P&gt;&lt;P&gt;WHERE Hours &amp;lt; MinHours;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or in front end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Min(Aggr(If(Hours &amp;lt;&amp;nbsp; MinHours, Date), Staff, Date, Hours, MinHours)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:16:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-or-FIRSTSORTEDVALUE-Help/m-p/759389#M270217</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-11-04T09:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR() or FIRSTSORTEDVALUE() - Help?</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-or-FIRSTSORTEDVALUE-Help/m-p/759390#M270218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx that worked, i just changed the min/date at the front&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-or-FIRSTSORTEDVALUE-Help/m-p/759390#M270218</guid>
      <dc:creator />
      <dc:date>2014-11-04T09:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR() or FIRSTSORTEDVALUE() - Help?</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-or-FIRSTSORTEDVALUE-Help/m-p/759391#M270219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx alot, that script just saved me, so simple but so effective&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 09:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-or-FIRSTSORTEDVALUE-Help/m-p/759391#M270219</guid>
      <dc:creator />
      <dc:date>2014-11-04T09:28:08Z</dc:date>
    </item>
  </channel>
</rss>

