<?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: Copare time with different format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Copare-time-with-different-format/m-p/1534602#M439060</link>
    <description>&lt;P&gt;as this is not a proper date i suggest you covert both those fields into minutes sla 240 mins, response time 82.35 mins&lt;BR /&gt;which will make it easier to compare.&lt;BR /&gt;so use subfield function to create this&lt;BR /&gt;e.g.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Num#(Subfield(TIME_SLA,':',1)) * 24*60 // days
+ Num#(Subfield(TIME_SLA,':',2)) *60  //hrs
+ Num#(Subfield(TIME_SLA,':',3)) // mins
as TIME_SLA_IN_MINS  &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jan 2019 15:40:24 GMT</pubDate>
    <dc:creator>dplr-rn</dc:creator>
    <dc:date>2019-01-24T15:40:24Z</dc:date>
    <item>
      <title>Copare time with different format</title>
      <link>https://community.qlik.com/t5/QlikView/Copare-time-with-different-format/m-p/1534526#M439045</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a app where i want to calculate if '&lt;SPAN&gt;Response time&lt;/SPAN&gt;&lt;SPAN&gt;' is within 'Time_SLA' or not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem I have seems to be that the date format is different. Example below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Time_SLA =00:04:00&amp;nbsp; &amp;nbsp;(dd:hh:mm)&lt;/P&gt;&lt;P&gt;Response time&amp;nbsp;= 01:22:21&amp;nbsp; (hh:mm:ss)&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 14:26:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copare-time-with-different-format/m-p/1534526#M439045</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2019-01-24T14:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Copare time with different format</title>
      <link>https://community.qlik.com/t5/QlikView/Copare-time-with-different-format/m-p/1534600#M439059</link>
      <description>I would suggest convert all times to minutes and then compare. Below I created a code using subfield, should work correctly but maybe there is an easier way:&lt;PRE&gt;= if( 
// Time_SLA  (dd:hh:mm)
rangesum( Num(SubField(Time_SLA,':', 1) ) * 24 * 60, num( SubField(Time_SLA,':', 2)) * 60,  Num(SubField(Time_SLA,':', 3)) ) 
// Response time  (hh:mm:ss)
- rangesum( num( SubField(Response_time,':', 1)) * 60,  Num(SubField(Response_time,':', 2)) ) 

&amp;gt;= 0 , 'in time', 'longer'
)&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Jan 2019 15:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copare-time-with-different-format/m-p/1534600#M439059</guid>
      <dc:creator>Jacek</dc:creator>
      <dc:date>2019-01-24T15:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Copare time with different format</title>
      <link>https://community.qlik.com/t5/QlikView/Copare-time-with-different-format/m-p/1534602#M439060</link>
      <description>&lt;P&gt;as this is not a proper date i suggest you covert both those fields into minutes sla 240 mins, response time 82.35 mins&lt;BR /&gt;which will make it easier to compare.&lt;BR /&gt;so use subfield function to create this&lt;BR /&gt;e.g.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Num#(Subfield(TIME_SLA,':',1)) * 24*60 // days
+ Num#(Subfield(TIME_SLA,':',2)) *60  //hrs
+ Num#(Subfield(TIME_SLA,':',3)) // mins
as TIME_SLA_IN_MINS  &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 15:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copare-time-with-different-format/m-p/1534602#M439060</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-01-24T15:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Copare time with different format</title>
      <link>https://community.qlik.com/t5/QlikView/Copare-time-with-different-format/m-p/1534671#M439067</link>
      <description>&lt;P&gt;the Interval#() function will convert these time strings into a common number:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Interval([Response time], 'hh:mm:ss') &amp;lt;&amp;nbsp; Interval#(&lt;SPAN&gt;Time_SLA&lt;/SPAN&gt;), '&lt;SPAN&gt;dd:hh:mm&lt;/SPAN&gt;')&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Your Response Time field may already be in numeric format.&amp;nbsp; If you are unsure, put it in a listbox and set the number format to 4 decimals.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 16:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copare-time-with-different-format/m-p/1534671#M439067</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-01-24T16:48:49Z</dc:date>
    </item>
  </channel>
</rss>

