<?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: How to calculate difference between 2 time fields. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-2-time-fields/m-p/1405096#M804494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(call_start_time_24 - web_end_time &amp;lt;= MakeTime(0, 15) ,'Online prior to call - web session started and ended before the call - 15 mins')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2017 23:36:22 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-11-02T23:36:22Z</dc:date>
    <item>
      <title>How to calculate difference between 2 time fields.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-2-time-fields/m-p/1405095#M804493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 time columns in 'hh,mm,Ss' format . which I loaded like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Time#(TIME_24_HOUR_HHMMSS_FORMAT) as call_start_time_24&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Time#(WEB_END_TIME) as web_end_time; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to know How to calculate difference between and I want to know if that difference is less than 15 min. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am tryting something like this :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(interval(time(call_start_time_24,'hh:mm:ss')-time(web_end_time,'hh:mm:ss'),'mm')&amp;lt;=15 ,'Online prior to call - web session started and ended before the call - 15 mins').&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dosent seem to working. Am I doing anything wrong here. &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-2-time-fields/m-p/1405095#M804493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between 2 time fields.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-2-time-fields/m-p/1405096#M804494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(call_start_time_24 - web_end_time &amp;lt;= MakeTime(0, 15) ,'Online prior to call - web session started and ended before the call - 15 mins')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 23:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-2-time-fields/m-p/1405096#M804494</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-02T23:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between 2 time fields.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-2-time-fields/m-p/1405097#M804495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried I am still getting null results. I thought there might be something wrong with my column format. So I tried loading like this in load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; time(Time#(TIME_24_HOUR_HHMMSS_FORMAT),'hh:mm:ss') as call_start_time_24&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;time(Time#(WEB_END_TIME),'hh:mm:ss') as web_end_time;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;. Still getting null results. Tried changing minute number still getting null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I see what exact data is being loaded into that column. If I want to check?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 00:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-2-time-fields/m-p/1405097#M804495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-03T00:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between 2 time fields.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-2-time-fields/m-p/1405098#M804496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just checked I am not getting any values in that column Why would that be. An I doing anything wrong while loading .&lt;/P&gt;&lt;P&gt;The columns contains data in varchar format in my source like this. I am importing these columns with time#() function and not getting any values in those columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="181934" alt="qlik time format.PNG" class="jive-image image-1" src="/legacyfs/online/181934_qlik time format.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same with other column :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="181935" alt="q22.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/181935_q22.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to import these column in time format and compare.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 00:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-2-time-fields/m-p/1405098#M804496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-03T00:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between 2 time fields.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-2-time-fields/m-p/1405099#M804497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Time#(call_start_time_24, 'hh:mm:ss') - Time#(web_end_time, 'hh:mm:ss') &amp;lt;= MakeTime(0, 15) ,'Online prior to call - web session started and ended before the call - 15 mins')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 08:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-2-time-fields/m-p/1405099#M804497</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-03T08:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between 2 time fields.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-2-time-fields/m-p/1405100#M804498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;BR /&gt;=if(Interval(Time(call_start_time_24, 'HH:mm:ss') - Time(web_end_time, 'HH:mm:ss'))&amp;lt;='00:15:00', 'Online prior to call - web session started and ended before the call - 15 mins')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 12:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-2-time-fields/m-p/1405100#M804498</guid>
      <dc:creator>vcanale</dc:creator>
      <dc:date>2017-11-03T12:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate difference between 2 time fields.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-2-time-fields/m-p/1405101#M804499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks that worked. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 18:06:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-difference-between-2-time-fields/m-p/1405101#M804499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-03T18:06:47Z</dc:date>
    </item>
  </channel>
</rss>

