<?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: Finding activity from latest date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Finding-activity-from-latest-date/m-p/471610#M176113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As for the AGGR - you don't need it if Company is one of the dimensions in your table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jun 2013 16:08:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-06-13T16:08:12Z</dc:date>
    <item>
      <title>Finding activity from latest date</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-activity-from-latest-date/m-p/471607#M176110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a large table of company, action date, activity code and result code. There can be multiple activities for a company, on different days, and also on the same day. My action date is MM/DD/YY hh:mm, so it's usually unique. I want to find the result code from the last action taken for each company.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought this would be easy: FIRSTSORTEDVALUE(ResultCode,-ActionDate), but that returns uniformly NULLs on my QV table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ah-ha, I thought, this is a case for AGGR! So I tried AGGR(FIRSTSORTEDVALUE(ResultCode,-ActionDate), Company) but that also returned NULLs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on how I could accomplish this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 15:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-activity-from-latest-date/m-p/471607#M176110</guid>
      <dc:creator />
      <dc:date>2013-06-13T15:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Finding activity from latest date</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-activity-from-latest-date/m-p/471608#M176111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a little bit difficult to propose something this way but have you tried the function MaxString() and Set Analysis? That should get it done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 15:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-activity-from-latest-date/m-p/471608#M176111</guid>
      <dc:creator />
      <dc:date>2013-06-13T15:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Finding activity from latest date</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-activity-from-latest-date/m-p/471609#M176112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you're date field isn't a string, but a real date field, i.e. it has at least a numeric value. Use the date# function if you need to make a date from a string. It's recommended to do this in the script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that isn't the problem please &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-1290"&gt;prepare and post a sample document&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 15:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-activity-from-latest-date/m-p/471609#M176112</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-06-13T15:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Finding activity from latest date</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-activity-from-latest-date/m-p/471610#M176113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As for the AGGR - you don't need it if Company is one of the dimensions in your table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 16:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-activity-from-latest-date/m-p/471610#M176113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-13T16:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Finding activity from latest date</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-activity-from-latest-date/m-p/471611#M176114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a real date - in fact, in the script I create a field called "FullTime" with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date#&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #004080; font-size: 10pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ff0080; font-size: 10pt;"&gt;OnDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #ff0080; font-size: 10pt;"&gt;OnTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, 'MM/DD/YY hh:mm')&amp;nbsp; &amp;amp; ':' &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #004080; font-size: 10pt;"&gt;Secs&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ff0080; font-size: 10pt;"&gt;Records&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;),'MM/DD/YY hh:mm:ss') &lt;/SPAN&gt;&lt;SPAN style="color: #ff8040; font-size: 10pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0080; font-size: 10pt;"&gt;FullTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;where SECS is a function I created in VB. This gives me a unique value to use with FirstSortedValue, but it's still not working in this case (note: I use FSV(field,-FullTime) in a host of other tables and QV files, so I know it works most of the time; just can't figure out why it's not working here.&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 16:48:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-activity-from-latest-date/m-p/471611#M176114</guid>
      <dc:creator />
      <dc:date>2013-06-13T16:48:24Z</dc:date>
    </item>
  </channel>
</rss>

