<?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: getting the latest record based on time stamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/getting-the-latest-record-based-on-time-stamp/m-p/1008598#M342444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can get the max(Timestamp) grouped on Customer_ID and join it to the original table in the script &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or in front end you can use a calculated dimension as below&lt;/P&gt;&lt;P&gt;=Timestamp(Aggr(Max(Timestamp#(TIME_STAMP,'MM/DD/YYYY hh:mm')),ID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Oct 2015 16:26:07 GMT</pubDate>
    <dc:creator>malini_qlikview</dc:creator>
    <dc:date>2015-10-06T16:26:07Z</dc:date>
    <item>
      <title>getting the latest record based on time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/getting-the-latest-record-based-on-time-stamp/m-p/1008596#M342442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt; I have a requirement of fetching the Customer_ID with the latest time stamp, what ever being the ITEM he had purchased.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; WIDTH: 100%; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;"&gt;&lt;STRONG&gt;Header 3&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ID&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ITEM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;TIME_STAMP&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;BOOKS&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8/18/2015 13:11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;PEN&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8/18/2015 13:58&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;PENCIL&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8/19/2015 15:55&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;999&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;PEN&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7/17/2013 16:44&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;777&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;BOOKS&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7/27/2015 19:25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;777&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;PENCIL&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7/29/2015 12:01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;777&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;BOOKS&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7/29/2015 12:01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I HAVE TO DISPLAY THE RECORD BASED ON LATEST TIMESTAMP IN A STRAIGHT TABLE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 16:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-the-latest-record-based-on-time-stamp/m-p/1008596#M342442</guid>
      <dc:creator />
      <dc:date>2015-10-06T16:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: getting the latest record based on time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/getting-the-latest-record-based-on-time-stamp/m-p/1008597#M342443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FirstSortedValue(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Customer_ID&lt;/SPAN&gt;,-yourTimeStamp)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 16:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-the-latest-record-based-on-time-stamp/m-p/1008597#M342443</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-10-06T16:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: getting the latest record based on time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/getting-the-latest-record-based-on-time-stamp/m-p/1008598#M342444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can get the max(Timestamp) grouped on Customer_ID and join it to the original table in the script &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or in front end you can use a calculated dimension as below&lt;/P&gt;&lt;P&gt;=Timestamp(Aggr(Max(Timestamp#(TIME_STAMP,'MM/DD/YYYY hh:mm')),ID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 16:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-the-latest-record-based-on-time-stamp/m-p/1008598#M342444</guid>
      <dc:creator>malini_qlikview</dc:creator>
      <dc:date>2015-10-06T16:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: getting the latest record based on time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/getting-the-latest-record-based-on-time-stamp/m-p/1008599#M342445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a straight table with the required fields, add and hide a dummy expression (e.g. something like =1, or =RowNo()), order by timestamp (Descending) and in Dimension Limits select "Show only" + "First" + value 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 16:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-the-latest-record-based-on-time-stamp/m-p/1008599#M342445</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-10-06T16:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: getting the latest record based on time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/getting-the-latest-record-based-on-time-stamp/m-p/1008600#M342446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dimension - ID,Item&lt;/P&gt;&lt;P&gt;Exp - as mentioned below - &lt;/P&gt;&lt;P&gt;&lt;IMG alt="cust.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/101137_cust.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Firstsortedvalue will miss the 777 as 2 values are same,not sure as of now how it can be handled in firstsortedvalue. For equal timestamp, do you want both values or anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 16:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-the-latest-record-based-on-time-stamp/m-p/1008600#M342446</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-10-06T16:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: getting the latest record based on time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/getting-the-latest-record-based-on-time-stamp/m-p/1008601#M342447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the FirstSortedvalue() Function as Suggested by Anjos , It is working perfectly for your requirement. Thanks Anjo for telling this function which I really don't know before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 20:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getting-the-latest-record-based-on-time-stamp/m-p/1008601#M342447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-06T20:47:19Z</dc:date>
    </item>
  </channel>
</rss>

