<?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: Help with FirstsortedValue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936525#M323265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The count should be 5. Not sure where the issue is.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Sep 2015 14:53:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-25T14:53:10Z</dc:date>
    <item>
      <title>Help with FirstsortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936519#M323259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 316px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Group&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;ID&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="60"&gt;Code&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="60"&gt;date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;80092905&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;92307669&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;80092905&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;92307698&lt;/TD&gt;&lt;TD class="xl70"&gt;C&lt;/TD&gt;&lt;TD align="right"&gt;2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;80092905&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;99176178&lt;/TD&gt;&lt;TD class="xl65"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl67"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;83087927&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;94345436&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;88573862&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;92307687&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none;"&gt;2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;88573862&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;99176179&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;89045464&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;99801874&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="17" style="border-top: none;"&gt;90407272&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;101747436&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I am trying to count the IDs for every Group which hit a code D first based on the date filed. I should get the count 5. Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 16:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936519#M323259</guid>
      <dc:creator />
      <dc:date>2015-09-24T16:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with FirstsortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936520#M323260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the below,&lt;/P&gt;&lt;P&gt;Find the first date field in every group for code D and join it with the whole data set to get the result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Group,ID,Code,date&lt;/P&gt;&lt;P&gt;80092905,92307669,D,2012&lt;/P&gt;&lt;P&gt;80092905,92307698,C,2013&lt;/P&gt;&lt;P&gt;80092905,99176178,D,2014&lt;/P&gt;&lt;P&gt;83087927,94345436,D,2013&lt;/P&gt;&lt;P&gt;88573862,92307687,D,2013&lt;/P&gt;&lt;P&gt;88573862,99176179,D,2014&lt;/P&gt;&lt;P&gt;89045464,99801874,D,2014&lt;/P&gt;&lt;P&gt;90407272,101747436,D,2014&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner Join&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Group,&lt;/P&gt;&lt;P&gt;Min(date) AS date&lt;/P&gt;&lt;P&gt;Resident Test&lt;/P&gt;&lt;P&gt;where Code='D'&lt;/P&gt;&lt;P&gt;group by Group;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 16:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936520#M323260</guid>
      <dc:creator>malini_qlikview</dc:creator>
      <dc:date>2015-09-24T16:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with FirstsortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936521#M323261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response. But,I can not do it while loading as I have other tables in the appln. I am looking for something at the expression level. &lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 16:43:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936521#M323261</guid>
      <dc:creator />
      <dc:date>2015-09-24T16:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with FirstsortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936522#M323262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I am not sure if I understand correctly but anyhow...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang=""&gt;- Straight table with Group as Dimension&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN lang=""&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expressions:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CODE:&amp;nbsp;&amp;nbsp; FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Arial;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; font-family: Arial;"&gt;Code&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Arial;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; font-family: Arial;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Arial;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE:&amp;nbsp; FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Arial;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; font-family: Arial;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Arial;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; font-family: Arial;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Arial;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;IMG alt="Image-0443.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/99983_Image-0443.png" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 17:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936522#M323262</guid>
      <dc:creator>mgavidia</dc:creator>
      <dc:date>2015-09-24T17:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help with FirstsortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936523#M323263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to count only the Ds. Lets say in the example I gave, There is a code A in 2011. I am looking for something like&lt;/P&gt;&lt;P&gt;Count(aggr(firstsortedvalue( {$&amp;lt;Code={'D'}&amp;gt;}&amp;nbsp;&amp;nbsp; ID,-Date),Group))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="17" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="98"&gt;Group&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="98"&gt;ID&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="60"&gt;Code&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="60"&gt;date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; text-align: -webkit-right;"&gt; 80092905&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD colspan="1"&gt;&amp;nbsp;&amp;nbsp; 96532532&lt;/TD&gt;&lt;TD colspan="1"&gt;A&lt;/TD&gt;&lt;TD colspan="1"&gt;&amp;nbsp;&amp;nbsp; 2011&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl68" height="17" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;80092905&lt;/TD&gt;&lt;TD align="right" class="xl69" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;92307669&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl66" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl68" height="17" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;80092905&lt;/TD&gt;&lt;TD align="right" class="xl69" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;92307698&lt;/TD&gt;&lt;TD class="xl70" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;C&lt;/TD&gt;&lt;TD align="right" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl68" height="17" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;80092905&lt;/TD&gt;&lt;TD align="right" class="xl69" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;99176178&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl68" height="17" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;83087927&lt;/TD&gt;&lt;TD align="right" class="xl69" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;94345436&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl66" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl68" height="17" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;88573862&lt;/TD&gt;&lt;TD align="right" class="xl69" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;92307687&lt;/TD&gt;&lt;TD class="xl66" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl66" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl68" height="17" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;88573862&lt;/TD&gt;&lt;TD align="right" class="xl69" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;99176179&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl68" height="17" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;89045464&lt;/TD&gt;&lt;TD align="right" class="xl69" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;99801874&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD align="right" class="xl68" height="17" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;90407272&lt;/TD&gt;&lt;TD align="right" class="xl69" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;101747436&lt;/TD&gt;&lt;TD class="xl65" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;D&lt;/TD&gt;&lt;TD align="right" class="xl67" style="padding-right: 4px; padding-left: 4px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 17:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936523#M323263</guid>
      <dc:creator />
      <dc:date>2015-09-24T17:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help with FirstsortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936524#M323264</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;one solution might be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14431329300175051" jivemacro_uid="_14431329300175051"&gt;
&lt;P&gt;=Count(Aggr(If(FirstSortedValue(Code,date)='D',Group),Group))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_182271_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100000_QlikCommunity_Thread_182271_Pic1.JPG" style="height: auto;" /&gt;&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;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 22:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936524#M323264</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-09-24T22:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with FirstsortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936525#M323265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The count should be 5. Not sure where the issue is.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 14:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936525#M323265</guid>
      <dc:creator />
      <dc:date>2015-09-25T14:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with FirstsortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936526#M323266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marco's example uses different data to show you that it works in all cases. He first sorts the records per group by date and only then checks whether the Code = D. For the first group, this results in Code = A (date = 2011), unlike in your data where there is no year 2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just FYI. Best, Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 15:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936526#M323266</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-09-25T15:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with FirstsortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936527#M323267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for something like this.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 161px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="18" width="64"&gt;Group&lt;/TD&gt;&lt;TD align="right" class="xl69" width="35"&gt;2012&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-left: none;" width="31"&gt;2013&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-left: none;" width="31"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;80092905&lt;/TD&gt;&lt;TD align="right" class="xl70"&gt;1&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;83087927&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;88573862&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;1&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 align="right" height="17"&gt;89045464&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none;"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;90407272&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD&gt; 1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Sorry for the confusion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 15:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936527#M323267</guid>
      <dc:creator />
      <dc:date>2015-09-25T15:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with FirstsortedValue</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936528#M323268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you are &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Patric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2015 16:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-FirstsortedValue/m-p/936528#M323268</guid>
      <dc:creator>pamaxeed</dc:creator>
      <dc:date>2015-09-25T16:59:11Z</dc:date>
    </item>
  </channel>
</rss>

