<?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 How can I make this hour comparison? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-make-this-hour-comparison/m-p/499842#M186776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a variable created as this:&lt;/P&gt;&lt;P&gt;vFinalHour = MakeTime(18);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I have to comparisse if the calls are later than this final hour (18:00:00)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CallHour field (that is timestamp) is defined as this in the script load:&lt;/P&gt;&lt;P&gt;time(Date_Call,'hh:mm:ss') as CallHour&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try to make this comparisson:&lt;/P&gt;&lt;P&gt;If(CallHour &amp;gt; vFinalHour,0,vFinalHour - CallHour)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I receive 0, as all my CallHour was bigger than 18:00:00 hs and this is not true, as If I make the calculation only:&lt;/P&gt;&lt;P&gt;vFinalHour - CallHour I have good results, excepting when CallHour &amp;gt; vFinalHour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can help me doing the correct comparison please:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Sep 2013 19:04:38 GMT</pubDate>
    <dc:creator>rcandeo</dc:creator>
    <dc:date>2013-09-09T19:04:38Z</dc:date>
    <item>
      <title>How can I make this hour comparison?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-make-this-hour-comparison/m-p/499842#M186776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a variable created as this:&lt;/P&gt;&lt;P&gt;vFinalHour = MakeTime(18);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I have to comparisse if the calls are later than this final hour (18:00:00)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CallHour field (that is timestamp) is defined as this in the script load:&lt;/P&gt;&lt;P&gt;time(Date_Call,'hh:mm:ss') as CallHour&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try to make this comparisson:&lt;/P&gt;&lt;P&gt;If(CallHour &amp;gt; vFinalHour,0,vFinalHour - CallHour)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I receive 0, as all my CallHour was bigger than 18:00:00 hs and this is not true, as If I make the calculation only:&lt;/P&gt;&lt;P&gt;vFinalHour - CallHour I have good results, excepting when CallHour &amp;gt; vFinalHour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can help me doing the correct comparison please:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 19:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-make-this-hour-comparison/m-p/499842#M186776</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2013-09-09T19:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make this hour comparison?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-make-this-hour-comparison/m-p/499843#M186777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try to use num function like num(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CallHour &lt;/SPAN&gt;) &amp;gt; num(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vFinalHour&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 19:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-make-this-hour-comparison/m-p/499843#M186777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-09T19:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make this hour comparison?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-make-this-hour-comparison/m-p/499844#M186778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;worked using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;num# function:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;num#(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CallHour &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;) &amp;gt; num#(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vFinalHour&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 19:15:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-make-this-hour-comparison/m-p/499844#M186778</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2013-09-09T19:15:37Z</dc:date>
    </item>
  </channel>
</rss>

