<?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: Time difference between max date and minimum date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-difference-between-max-date-and-minimum-date/m-p/605428#M223633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey Chiranjeevi,&lt;/P&gt;&lt;P&gt;I believe its as a string and not as a dual date. It has only the string part and the number part is not associated with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To test it just select one and in a text box put num(QVWLoadTime). If you get a number then its dual else its only as a string.&lt;/P&gt;&lt;P&gt;You have to change the format using date#() function.&lt;/P&gt;&lt;P&gt;Date#(QVWLoadTime,'MM/DD/YYYY hh:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2014 18:32:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-05T18:32:18Z</dc:date>
    <item>
      <title>Time difference between max date and minimum date</title>
      <link>https://community.qlik.com/t5/QlikView/Time-difference-between-max-date-and-minimum-date/m-p/605426#M223631</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;&lt;/P&gt;&lt;P&gt;I have a log file and reading the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my aim is to get time taken for execution.I am able to read the data.But not able to calculate the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Chiru&lt;IMG alt="Load time.jpg" class="jive-image" src="/legacyfs/online/54356_Load time.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 18:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-difference-between-max-date-and-minimum-date/m-p/605426#M223631</guid>
      <dc:creator>chiru_thota</dc:creator>
      <dc:date>2014-03-05T18:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference between max date and minimum date</title>
      <link>https://community.qlik.com/t5/QlikView/Time-difference-between-max-date-and-minimum-date/m-p/605427#M223632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=(date(max(date#(QVWLoadTime, 'MM/DD/YYYY hh:mm:ss')),&amp;nbsp; 'MM/DD/YYYY hh:mm:ss')) - (date(min(date#(QVWLoadTime, 'MM/DD/YYYY hh:mm:ss')),&amp;nbsp; 'MM/DD/YYYY hh:mm:ss')) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That expression will give you the difference.&amp;nbsp; The way that you were doing it on your example just said max(QVWLoadTime), but qlikview wasn't told how to interpret the value of that string.&amp;nbsp; So the date# is an interpreter function that tells qlikview what each number in the field means and thus is able to determine the min and max via the functions.&amp;nbsp; Hopefully this is what you were looking for or at least points you in the right direction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 18:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-difference-between-max-date-and-minimum-date/m-p/605427#M223632</guid>
      <dc:creator />
      <dc:date>2014-03-05T18:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Time difference between max date and minimum date</title>
      <link>https://community.qlik.com/t5/QlikView/Time-difference-between-max-date-and-minimum-date/m-p/605428#M223633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey Chiranjeevi,&lt;/P&gt;&lt;P&gt;I believe its as a string and not as a dual date. It has only the string part and the number part is not associated with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To test it just select one and in a text box put num(QVWLoadTime). If you get a number then its dual else its only as a string.&lt;/P&gt;&lt;P&gt;You have to change the format using date#() function.&lt;/P&gt;&lt;P&gt;Date#(QVWLoadTime,'MM/DD/YYYY hh:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 18:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-difference-between-max-date-and-minimum-date/m-p/605428#M223633</guid>
      <dc:creator />
      <dc:date>2014-03-05T18:32:18Z</dc:date>
    </item>
  </channel>
</rss>

