<?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 Between Two Timestamps in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Between-Two-Timestamps/m-p/1179206#M898740</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;Please see below example of code that does not seem to be working correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Time([TIMESTAMP])&amp;gt;=('02:30:01') and Time([TIMESTAMP])&amp;lt;=('09:45:00'),'Night','Day') as SHIFT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assist in correcting this, for some reason all values show Day even if it conforms to the condition for Night.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Between Two Timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/Between-Two-Timestamps/m-p/1179206#M898740</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;Please see below example of code that does not seem to be working correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Time([TIMESTAMP])&amp;gt;=('02:30:01') and Time([TIMESTAMP])&amp;lt;=('09:45:00'),'Night','Day') as SHIFT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assist in correcting this, for some reason all values show Day even if it conforms to the condition for Night.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&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/Between-Two-Timestamps/m-p/1179206#M898740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Between Two Timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/Between-Two-Timestamps/m-p/1179207#M898741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The timestamp is in the following format YYYY/MM/DD hh:mm:ss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 04:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Between-Two-Timestamps/m-p/1179207#M898741</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-19T04:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Between Two Timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/Between-Two-Timestamps/m-p/1179208#M898742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;If(&lt;SPAN style="color: #ff0000;"&gt;frac(&lt;/SPAN&gt;[TIMESTAMP]&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt; &amp;gt;= &lt;SPAN style="color: #ff0000;"&gt;MakeTime(2, 30, 1)&lt;/SPAN&gt; and &lt;SPAN style="color: #ff0000;"&gt;frac(&lt;/SPAN&gt;[TIMESTAMP]&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt; &amp;lt;= &lt;SPAN style="color: #ff0000;"&gt;MakeTime(9, 45, 0)&lt;/SPAN&gt;, 'Night', 'Day') as SHIFT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 10:19:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Between-Two-Timestamps/m-p/1179208#M898742</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-19T10:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Between Two Timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/Between-Two-Timestamps/m-p/1179209#M898743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this, if TIMESTAMP is not read as timestamp:&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(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;frac(TimeStamp#(&lt;/SPAN&gt;[TIMESTAMP]&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;, 'YYYY/MM/DD hh:mm:ss'))&lt;/SPAN&gt; &amp;gt;= &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;MakeTime(2, 30, 1)&lt;/SPAN&gt; and &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;frac(&lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;TimeStamp#(&lt;/STRONG&gt;&lt;/SPAN&gt;[TIMESTAMP]&lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;, 'YYYY/MM/DD hh:mm:ss'))&lt;/STRONG&gt;&amp;lt;= &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;MakeTime(9, 45, 0)&lt;/SPAN&gt;, 'Night', 'Day') as SHIFT&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 10:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Between-Two-Timestamps/m-p/1179209#M898743</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-19T10:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Between Two Timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/Between-Two-Timestamps/m-p/1179210#M898744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;BR /&gt;try specifying the Time Format in your condition:&lt;BR /&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;IF(Time([TIMESTAMP],&lt;STRONG&gt; 'hh:mm:ss'&lt;/STRONG&gt; )&amp;gt;=('02:30:01') and Time([TIMESTAMP], &lt;STRONG&gt;'hh:mm:ss'&lt;/STRONG&gt;)&amp;lt;=('09:45:00'),'Night','Day') as SHIFT&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 11:03:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Between-Two-Timestamps/m-p/1179210#M898744</guid>
      <dc:creator>vcanale</dc:creator>
      <dc:date>2016-07-19T11:03:40Z</dc:date>
    </item>
  </channel>
</rss>

