<?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: Create Morning, evening, and night in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-Morning-evening-and-night/m-p/883164#M1015430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Huge thanks! i've just realized what i was doing wrong!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2015 09:09:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-09T09:09:11Z</dc:date>
    <item>
      <title>Create Morning, evening, and night</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Morning-evening-and-night/m-p/883157#M1015423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all! thanks for taking time to read this newbie question! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do a select box like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Morning&lt;/P&gt;&lt;P&gt;Evening&lt;/P&gt;&lt;P&gt;Night&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Morning needs to be requestHOUR from 8:00 to 14:00&lt;/P&gt;&lt;P&gt;Evening &lt;SPAN style="font-size: 13.3333330154419px;"&gt;needs to be requestHOUR from 14:00 to 18:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Night &lt;SPAN style="font-size: 13.3333330154419px;"&gt;needs to be requestHOUR from 18:00 to 00:00&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should select only those items between those hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 07:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Morning-evening-and-night/m-p/883157#M1015423</guid>
      <dc:creator />
      <dc:date>2015-04-09T07:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create Morning, evening, and night</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Morning-evening-and-night/m-p/883158#M1015424</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;You can add this field in script:&lt;/P&gt;&lt;P&gt;load,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;requestHOUR&amp;gt;=8/24 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;requestHOUR&amp;lt;14/24, '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Morning&lt;/SPAN&gt;',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;If(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;requestHOUR&amp;gt;=14/24 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;requestHOUR&amp;lt;18/24, '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Evening&lt;/SPAN&gt;',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;If(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;requestHOUR&amp;gt;=18/24 &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;, '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;Night&lt;/SPAN&gt;','N/A')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as Shift&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;from ...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 08:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Morning-evening-and-night/m-p/883158#M1015424</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-04-09T08:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create Morning, evening, and night</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Morning-evening-and-night/m-p/883159#M1015425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you have a time field in your table if yes, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can do it in two way. &lt;/P&gt;&lt;P&gt;1) load a inline mapping table with Time and DayNight column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time , Daynight&lt;/P&gt;&lt;P&gt;8:00,Morning&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use applymap to add &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Daynight&lt;/SPAN&gt; column in main table . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use if condition &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Time &amp;gt;=8 and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Time &amp;lt;=14 , 'Morning') ....... etc as &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Daynight&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both will solve your problem you may need to convert your hrs in num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;BKC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 08:09:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Morning-evening-and-night/m-p/883159#M1015425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-09T08:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create Morning, evening, and night</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Morning-evening-and-night/m-p/883160#M1015426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this,by using simple if statement..&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;requestHOUR&amp;gt;=8 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;requestHOUR&amp;lt;=14,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Morning &lt;/SPAN&gt;',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;requestHOUR&amp;gt;=14 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;requestHOUR&amp;lt;=18,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Evening &lt;/SPAN&gt;',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;requestHOUR&amp;gt;=18 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;requestHOUR&amp;lt;8&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;Night &lt;/SPAN&gt;',null())))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want use in load script just name as the above expression with alias name else u can use that script dirctly in ur expression wherever u want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 08:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Morning-evening-and-night/m-p/883160#M1015426</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-04-09T08:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create Morning, evening, and night</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Morning-evening-and-night/m-p/883161#M1015427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry but still i dont get it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; trying to do it but can't, do you have any complete example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 08:42:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Morning-evening-and-night/m-p/883161#M1015427</guid>
      <dc:creator />
      <dc:date>2015-04-09T08:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create Morning, evening, and night</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Morning-evening-and-night/m-p/883162#M1015428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is't possible to share ur .qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 08:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Morning-evening-and-night/m-p/883162#M1015428</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-04-09T08:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create Morning, evening, and night</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Morning-evening-and-night/m-p/883163#M1015429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 08:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Morning-evening-and-night/m-p/883163#M1015429</guid>
      <dc:creator />
      <dc:date>2015-04-09T08:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create Morning, evening, and night</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Morning-evening-and-night/m-p/883164#M1015430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Huge thanks! i've just realized what i was doing wrong!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 09:09:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Morning-evening-and-night/m-p/883164#M1015430</guid>
      <dc:creator />
      <dc:date>2015-04-09T09:09:11Z</dc:date>
    </item>
  </channel>
</rss>

