<?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 subtraction problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-subtraction-problem/m-p/247336#M1189898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked great!! I am only trying to subtract time and not the date since this is something which occurs everyday and i just need to see when it finishes!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Aug 2011 18:31:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-03T18:31:35Z</dc:date>
    <item>
      <title>Time subtraction problem</title>
      <link>https://community.qlik.com/t5/QlikView/Time-subtraction-problem/m-p/247334#M1189896</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 am calculating a time difference column which is the difference of (SLA_time) - (END_time). However, in conditions where the END_time is more than the SLA_time, Qlikview calculates this by subtracting with 12 o clock. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to represent it with&amp;nbsp; a -ve sign in the front. simply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10:00:00 AM - 10:12:10 AM = -00:12:10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And incase of SLA_time &amp;gt; END_time,&amp;nbsp; 10:12:10 AM - 10:00:00 AM = 00:12:10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do this? I tried using &amp;lt; and &amp;gt; signs, and QV doesnt give me correct results. I think it is a problem with the less than and greater than signs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 18:10:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-subtraction-problem/m-p/247334#M1189896</guid>
      <dc:creator />
      <dc:date>2011-08-03T18:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Time subtraction problem</title>
      <link>https://community.qlik.com/t5/QlikView/Time-subtraction-problem/m-p/247335#M1189897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to just subtract SLA_Time from END_Time, but I see that your SLA_Time uses a different date than the END_Time timestamps. I'm guessing you want to assume that SLA and END are on the same date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example you are using the time() function to extract the time portion for the calculation. That won't work. Time() is a formatting function. It only affects display values, not the internal value used in the calculation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can extract the time portion for arithmetic using frac(). So try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;frac(SLA_TIME) - frac(END_TIME)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and format as an interval in the Number pane.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 18:27:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-subtraction-problem/m-p/247335#M1189897</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-08-03T18:27:24Z</dc:date>
    </item>
    <item>
      <title>Time subtraction problem</title>
      <link>https://community.qlik.com/t5/QlikView/Time-subtraction-problem/m-p/247336#M1189898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked great!! I am only trying to subtract time and not the date since this is something which occurs everyday and i just need to see when it finishes!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once again! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 18:31:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-subtraction-problem/m-p/247336#M1189898</guid>
      <dc:creator />
      <dc:date>2011-08-03T18:31:35Z</dc:date>
    </item>
  </channel>
</rss>

