<?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 Create a Time Dimension based on Work Shifts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-Time-Dimension-based-on-Work-Shifts/m-p/1187154#M627332</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 have an issue where I am trying to create a new Dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I have work shifts that start at 7am to 7pm (&lt;SPAN style="font-size: 13.3333px;"&gt;DayShift)&lt;/SPAN&gt; and 7pm to 7am (&lt;SPAN style="font-size: 13.3333px;"&gt;NightShift)&lt;/SPAN&gt; continuously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a new dimension based on a Time Field that already exists in my Data Model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I create a dimension, based on the Time Field to show transactions that have occurred in a certain shift.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Sep 2016 20:11:29 GMT</pubDate>
    <dc:creator>rustyfishbones</dc:creator>
    <dc:date>2016-09-17T20:11:29Z</dc:date>
    <item>
      <title>Create a Time Dimension based on Work Shifts</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Time-Dimension-based-on-Work-Shifts/m-p/1187154#M627332</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 have an issue where I am trying to create a new Dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I have work shifts that start at 7am to 7pm (&lt;SPAN style="font-size: 13.3333px;"&gt;DayShift)&lt;/SPAN&gt; and 7pm to 7am (&lt;SPAN style="font-size: 13.3333px;"&gt;NightShift)&lt;/SPAN&gt; continuously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a new dimension based on a Time Field that already exists in my Data Model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I create a dimension, based on the Time Field to show transactions that have occurred in a certain shift.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2016 20:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Time-Dimension-based-on-Work-Shifts/m-p/1187154#M627332</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2016-09-17T20:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Time Dimension based on Work Shifts</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Time-Dimension-based-on-Work-Shifts/m-p/1187155#M627333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have a timestamp field ts&lt;/P&gt;&lt;P&gt;you can add a new field (the dimension) in bold &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; rowno() as id,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; timestamp(makedate(2015) + rowno()-1 + rand()) as ts&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AutoGenerate 365*2;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Left Join (D)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; id,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; if(frac(ts)&amp;gt;= 7/24 and frac(ts)&amp;lt;=19/24, 'DayShift', 'NightShift') as DNShift&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident D;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2016 20:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Time-Dimension-based-on-Work-Shifts/m-p/1187155#M627333</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-09-17T20:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Time Dimension based on Work Shifts</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Time-Dimension-based-on-Work-Shifts/m-p/1187156#M627334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try like these&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WORK SHIFTS,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DayShift(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;WORK SHIFTS&lt;/SPAN&gt;) as 7AM to 7PM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NightShift(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;WORK SHIFTS&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;) as 7PM to 7AM&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM YOURTABLE;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2016 20:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Time-Dimension-based-on-Work-Shifts/m-p/1187156#M627334</guid>
      <dc:creator />
      <dc:date>2016-09-17T20:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Time Dimension based on Work Shifts</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Time-Dimension-based-on-Work-Shifts/m-p/1187157#M627335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2016 20:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Time-Dimension-based-on-Work-Shifts/m-p/1187157#M627335</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2016-09-17T20:57:04Z</dc:date>
    </item>
  </channel>
</rss>

