<?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 time calcs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/time-calcs/m-p/1198551#M626447</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 an sql view only of the data which I import.&lt;/P&gt;&lt;P&gt;the data comes as&lt;/P&gt;&lt;P&gt;Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 78px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" width="78"&gt;14/07/2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Time1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;4:12:00 PM&lt;/P&gt;&lt;P&gt;Time2&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="45" style="width: 93px; height: 46px;" width="92"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="64"&gt;10:46:00 AM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expected Duration &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 116px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="17" width="116"&gt;430 M&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to Time2 -Time1&lt;/P&gt;&lt;P&gt;then I want to compare Time2 - Time1 (in Minutes) from the Expected Duration - so [Expected Duration] - (Time2 - Time1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the following statements in load to delete the M in 430 M:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt; &lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Keepchar(ScheduledDuration,'1234567890') as SchedDurationMins,&amp;nbsp;&amp;nbsp;&amp;nbsp; this actually gives me the number 430&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the difference from Time2 - Time 1 I uses this when loaded&lt;/P&gt;&lt;P&gt;&amp;nbsp; (time(Time2) - time(Time)) as DurationDiff,&amp;nbsp;&amp;nbsp; (however DurationDiff comes as a 0.226389 which I can then multiply by 24 *60&amp;nbsp; = 326&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it worked!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so just asking for helped worked - thank you all &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Oct 2016 00:12:40 GMT</pubDate>
    <dc:creator>josephinetedesc</dc:creator>
    <dc:date>2016-10-28T00:12:40Z</dc:date>
    <item>
      <title>time calcs</title>
      <link>https://community.qlik.com/t5/QlikView/time-calcs/m-p/1198551#M626447</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 an sql view only of the data which I import.&lt;/P&gt;&lt;P&gt;the data comes as&lt;/P&gt;&lt;P&gt;Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 78px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="17" width="78"&gt;14/07/2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Time1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;4:12:00 PM&lt;/P&gt;&lt;P&gt;Time2&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="45" style="width: 93px; height: 46px;" width="92"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="64"&gt;10:46:00 AM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expected Duration &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 116px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="17" width="116"&gt;430 M&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to Time2 -Time1&lt;/P&gt;&lt;P&gt;then I want to compare Time2 - Time1 (in Minutes) from the Expected Duration - so [Expected Duration] - (Time2 - Time1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the following statements in load to delete the M in 430 M:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt; &lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Keepchar(ScheduledDuration,'1234567890') as SchedDurationMins,&amp;nbsp;&amp;nbsp;&amp;nbsp; this actually gives me the number 430&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the difference from Time2 - Time 1 I uses this when loaded&lt;/P&gt;&lt;P&gt;&amp;nbsp; (time(Time2) - time(Time)) as DurationDiff,&amp;nbsp;&amp;nbsp; (however DurationDiff comes as a 0.226389 which I can then multiply by 24 *60&amp;nbsp; = 326&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it worked!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so just asking for helped worked - thank you all &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 00:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/time-calcs/m-p/1198551#M626447</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2016-10-28T00:12:40Z</dc:date>
    </item>
  </channel>
</rss>

