<?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: Filtering records in an expression by the max date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filtering-records-in-an-expression-by-the-max-date/m-p/429810#M160216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a calculated dimension like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=aggr(FirstSortedValue(EventStatus, -EventDate), RecordID)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and as expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count(RecordID)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2012 20:12:07 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-11-13T20:12:07Z</dc:date>
    <item>
      <title>Filtering records in an expression by the max date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-records-in-an-expression-by-the-max-date/m-p/429809#M160215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all. So I have a table of historical events (tickets) that have a many-to-one relationship with my main table of records. I want to do a simple pie-chart distribution of the status of the events, but I only want to include the most recent event for each record. So my table looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[RecordID, EventID, EventStatus, EventDate&lt;/P&gt;&lt;P&gt;1, A, Open, 1/1/2012&lt;/P&gt;&lt;P&gt;1, B, Closed, 1/1/2011&lt;/P&gt;&lt;P&gt;1, C, Cancelled, 1/1/2010&lt;/P&gt;&lt;P&gt;2, D, Closed, 1/1/2012&lt;/P&gt;&lt;P&gt;2, E, Cancelled, 1/1/2011&lt;/P&gt;&lt;P&gt;2, F, Closed, 1/1/2010&lt;/P&gt;&lt;P&gt;3, G, Closed, 1/1/2012&lt;/P&gt;&lt;P&gt;3, H, Closed, 1/1/2011&lt;/P&gt;&lt;P&gt;3, I, Closed, 1/1/2010];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want my pie chart to only take the most recent event for each RecordID. So I would expect the pie chart to display an Open slice with a count of 1, and a Closed slice with a count of 2.&lt;/P&gt;&lt;P&gt;Can anyone help me with the expression for this chart? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 19:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-records-in-an-expression-by-the-max-date/m-p/429809#M160215</guid>
      <dc:creator />
      <dc:date>2012-11-13T19:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering records in an expression by the max date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-records-in-an-expression-by-the-max-date/m-p/429810#M160216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a calculated dimension like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=aggr(FirstSortedValue(EventStatus, -EventDate), RecordID)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and as expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count(RecordID)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 20:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-records-in-an-expression-by-the-max-date/m-p/429810#M160216</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-13T20:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering records in an expression by the max date</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-records-in-an-expression-by-the-max-date/m-p/429811#M160217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 20:18:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-records-in-an-expression-by-the-max-date/m-p/429811#M160217</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-13T20:18:27Z</dc:date>
    </item>
  </channel>
</rss>

