<?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: ¿Count by range/shift (in hours) in date? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-by-range-shift-in-hours-in-date/m-p/1038054#M923136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd create a shift field during the load of your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; if(hour(Date)&amp;lt;6,1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,if(hour(Date)&amp;lt;14,2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,if(hour(Date)&amp;lt;22,3,1))) as Shift&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use Shift as the dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2016 23:10:19 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2016-04-14T23:10:19Z</dc:date>
    <item>
      <title>¿Count by range/shift (in hours) in date?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-by-range-shift-in-hours-in-date/m-p/1038053#M923135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to count the ID that are into the followings diferents shifts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shift 1&amp;nbsp; 6:00 to 14:00&lt;/P&gt;&lt;P&gt;Shift 2&amp;nbsp; 14:00 to 22:00&lt;/P&gt;&lt;P&gt;Shift 3&amp;nbsp;&amp;nbsp; 22:00 to 6:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My source is like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="232"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="168"&gt;Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;10/04/2016 06:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;10/04/2016 08:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;10/04/2016 12:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;10/04/2016 14:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;10/04/2016 18:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;11/04/2016 05:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;11/04/2016 10:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;11/04/2016 22:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;11/04/2016 23:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;11/04/2016 03:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;11&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;11/04/2016 01:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;12&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;11/04/2016 01:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;13&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;11/04/2016 04:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;14&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;12/04/2016 14:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;"&gt;15&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;12/04/2016 06:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need count shift by shift (diferent count)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best 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/Count-by-range-shift-in-hours-in-date/m-p/1038053#M923135</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: ¿Count by range/shift (in hours) in date?</title>
      <link>https://community.qlik.com/t5/QlikView/Count-by-range-shift-in-hours-in-date/m-p/1038054#M923136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd create a shift field during the load of your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; if(hour(Date)&amp;lt;6,1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,if(hour(Date)&amp;lt;14,2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,if(hour(Date)&amp;lt;22,3,1))) as Shift&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use Shift as the dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 23:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-by-range-shift-in-hours-in-date/m-p/1038054#M923136</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-04-14T23:10:19Z</dc:date>
    </item>
  </channel>
</rss>

