<?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 Intervalmatch between two time functions or Timestamps in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Intervalmatch-between-two-time-functions-or-Timestamps/m-p/1229532#M848400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below dates and need to define shifts .&amp;nbsp; We have a dayshift and a nightshift.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timestamp format for shifts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dd.mm.yyyyhh:mm:ss &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to do is create a field that is called &lt;STRONG&gt;Shiftdate.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Shiftdate&lt;/STRONG&gt; will be calculated by checking whether the hour of the timestamp &amp;gt; 00:00:00 (12 at night) and &amp;lt; 06:00:00 (6 in the morning)&lt;/P&gt;&lt;P&gt;and would then need to -1 from the timestamp (Day -1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meaning that all early morning work still forms part of the previous day's shift.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I need to do this, is that past 12 at night the date changes to the next day, however we still see it as the same shiftdate as before 12 at night.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I could use Interval match to resolve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&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>Intervalmatch between two time functions or Timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/Intervalmatch-between-two-time-functions-or-Timestamps/m-p/1229532#M848400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below dates and need to define shifts .&amp;nbsp; We have a dayshift and a nightshift.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timestamp format for shifts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dd.mm.yyyyhh:mm:ss &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to do is create a field that is called &lt;STRONG&gt;Shiftdate.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Shiftdate&lt;/STRONG&gt; will be calculated by checking whether the hour of the timestamp &amp;gt; 00:00:00 (12 at night) and &amp;lt; 06:00:00 (6 in the morning)&lt;/P&gt;&lt;P&gt;and would then need to -1 from the timestamp (Day -1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meaning that all early morning work still forms part of the previous day's shift.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I need to do this, is that past 12 at night the date changes to the next day, however we still see it as the same shiftdate as before 12 at night.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I could use Interval match to resolve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&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/Intervalmatch-between-two-time-functions-or-Timestamps/m-p/1229532#M848400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch between two time functions or Timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/Intervalmatch-between-two-time-functions-or-Timestamps/m-p/1229533#M848401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try With something like this.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;frac&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;timestamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CreationDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'hh:mm:ss')))&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('06:00:00'),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;timestamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CreationDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;timestamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;timestamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CreationDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-1)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%DateKey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 09:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervalmatch-between-two-time-functions-or-Timestamps/m-p/1229533#M848401</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-03-17T09:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch between two time functions or Timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/Intervalmatch-between-two-time-functions-or-Timestamps/m-p/1229534#M848402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Staffan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My solution is the below.&amp;nbsp; however , i was just curious to see if interval match could be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF(HOUR(CONFIRMED_AT)&amp;lt;'06' AND HOUR(CONFIRMED_AT)&amp;gt;'00',TRIM(DATE(INTERVAL(DATE(CONFIRMED_AT) - 1,'DD'),'M/D/YYYY')),TRIM(DATE(CONFIRMED_AT))) AS SHIFTDATE,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 09:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervalmatch-between-two-time-functions-or-Timestamps/m-p/1229534#M848402</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-17T09:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch between two time functions or Timestamps</title>
      <link>https://community.qlik.com/t5/QlikView/Intervalmatch-between-two-time-functions-or-Timestamps/m-p/1229535#M848403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok Ruan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never used intervallmatch in a case like this. Feels like a "overkill" solution to fix the problem.&lt;/P&gt;&lt;P&gt;I use my solution to step back one day when the skift is working to less then 06:00:00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 09:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervalmatch-between-two-time-functions-or-Timestamps/m-p/1229535#M848403</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-03-17T09:53:54Z</dc:date>
    </item>
  </channel>
</rss>

