<?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: Fetch max date for two unique IDs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90007#M14647</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;Anything would be fine. My goal is to get the time difference between index 1002 and 1001. Considering max date of each index&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jul 2018 11:22:27 GMT</pubDate>
    <dc:creator>rpavan17</dc:creator>
    <dc:date>2018-07-16T11:22:27Z</dc:date>
    <item>
      <title>Fetch max date for two unique IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90004#M14644</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;Can you help me with below issue. Table as below. Need to get latest timestamp for each ID and Index&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Index&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;TimeStamp&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 4&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;AAA&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05-01-2012&amp;nbsp; 12:26:17 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;AAA&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;07-01-2012&amp;nbsp; 3:59:07 PM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;AAA&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1002&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;06-01-2012&amp;nbsp; 4:59:07 PM&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;BBB&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01-02-2012&amp;nbsp; 4:26:22 PM&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;BBB&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1002&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;02-02-2012&amp;nbsp; 5:26:22 PM&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;BBB&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1002&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;03-02-2012 &lt;SPAN style="font-size: 13.3333px;"&gt;5:26:22 PM&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&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;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;Result should be&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Index&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;TimeStamp&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 4&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;AAA&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;07-01-2012&amp;nbsp; 3:59:07 PM&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AAA&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1002&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;06-01-2012&amp;nbsp; 4:59:07 PM&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;BBB&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;01-02-2012&amp;nbsp; 4:26:22 PM&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;BBB&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1002&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;03-02-2012 &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;5:26:22 PM&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&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;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;Please help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that I have to find difference between timestamps of 1002 and 1001.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 10:58:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90004#M14644</guid>
      <dc:creator>rpavan17</dc:creator>
      <dc:date>2018-07-16T10:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch max date for two unique IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90005#M14645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;Index,&lt;/P&gt;&lt;P&gt;Max(TimeStamp) as TimeStamp&lt;/P&gt;&lt;P&gt;from...&lt;/P&gt;&lt;P&gt;Group by &lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;Index;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 11:11:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90005#M14645</guid>
      <dc:creator>francescoreggia</dc:creator>
      <dc:date>2018-07-16T11:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch max date for two unique IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90006#M14646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this needed to be done in the script or front end?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 11:13:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90006#M14646</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-16T11:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch max date for two unique IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90007#M14647</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;Anything would be fine. My goal is to get the time difference between index 1002 and 1001. Considering max date of each index&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 11:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90007#M14647</guid>
      <dc:creator>rpavan17</dc:creator>
      <dc:date>2018-07-16T11:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch max date for two unique IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90008#M14648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this.... Index is not one of the dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max({&amp;lt;Index = {'1001'}&amp;gt;}TimeStamp) - Max({&amp;lt;Index = {'1002'}&amp;gt;}TimeStamp)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need Index as one of the the dimensions... then may be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Index&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(TimeStamp) - Above(Max(TimeStamp))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 11:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90008#M14648</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-16T11:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch max date for two unique IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90009#M14649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need ID only the dimension and need to get time difference between both index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;If i give, Max({&amp;lt;Index = {'1001'}&amp;gt;}TimeStamp) - Max({&amp;lt;Index = {'1002'}&amp;gt;}TimeStamp)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;It is giving 1.32 as the value. How can i convert to hours if it comes more than 24 hours.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Example in excel: &lt;H&gt;:mm:ss format&lt;/H&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;It is working if i select Duration. Can i use the same in script&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 11:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90009#M14649</guid>
      <dc:creator>rpavan17</dc:creator>
      <dc:date>2018-07-16T11:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch max date for two unique IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90010#M14650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Interval(&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Max({&amp;lt;Index = {'1001'}&amp;gt;}TimeStamp) - Max({&amp;lt;Index = {'1002'}&amp;gt;}TimeStamp), 'h:mm:ss')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 11:40:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90010#M14650</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-16T11:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch max date for two unique IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90011#M14651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Not working in Load Script.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/208008_Capture.JPG" style="height: 73px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 05:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90011#M14651</guid>
      <dc:creator>rpavan17</dc:creator>
      <dc:date>2018-07-17T05:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch max date for two unique IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90012#M14652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Sunny has suggested works only in Front end, use that as Expression in a chart. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 06:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90012#M14652</guid>
      <dc:creator>HarishG</dc:creator>
      <dc:date>2018-07-17T06:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch max date for two unique IDs</title>
      <link>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90013#M14653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a front end function, won't be usable in the script... previously you mentioned that script or front end, either of them should be fine... but now you want this in script? Are you sure you want to pre-aggregate everything in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 11:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fetch-max-date-for-two-unique-IDs/m-p/90013#M14653</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-17T11:12:29Z</dc:date>
    </item>
  </channel>
</rss>

