<?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: Timeslot questions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Timeslot-questions/m-p/406653#M151274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually i want to do it in QV not using SQL, substring is not a function in QV &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Mar 2013 09:12:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-05T09:12:58Z</dc:date>
    <item>
      <title>Timeslot questions</title>
      <link>https://community.qlik.com/t5/QlikView/Timeslot-questions/m-p/406652#M151273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a timeslot field that contain half time slot and on the clock timeslot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to know make a swith to seperate the half timeslot and on-the-clock timeslot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;forexample:&amp;nbsp;&amp;nbsp;&amp;nbsp; the script i use:&amp;nbsp; if (timeslot='HH:30',1,2) AS timeslotswitch,&amp;nbsp;&amp;nbsp; but it is not working for it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i used a very bad method as follows,&amp;nbsp; do you have a better method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(text(TimeSlot)='00:30' or text(TimeSlot)='01:30' or text(TimeSlot)='02:30' or text(TimeSlot)='03:30' or text(TimeSlot)='04:30' or text(TimeSlot)='05:30' or text(TimeSlot)='06:30'or text(TimeSlot)='07:30' or text(TimeSlot)='08:30'or text(TimeSlot)='09:30'or text(TimeSlot)='10:30'or text(TimeSlot)='11:30'or text(TimeSlot)='12:30'or text(TimeSlot)='13:30' or text(TimeSlot)='14:30' or text(TimeSlot)='15:30'or text(TimeSlot)='16:30'or text(TimeSlot)='17:30' or text(TimeSlot)='18:30' or text(TimeSlot)='19:30' or text(TimeSlot)='20:30' or text(TimeSlot)='21:30' or text(TimeSlot)='22:30' or text(TimeSlot)='23:30',1,2) as TimeslotSwitch, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timeslot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="148"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl22" height="17" width="148"&gt;00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;01:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;01:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;02:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;02:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;03:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;03:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;04:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;04:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;05:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;06:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;07:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;07:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;08:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;08:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;09:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;09:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;10:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;11:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;12:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;13:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;14:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;15:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;16:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;17:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;18:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;18:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;19:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;19:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;20:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;20:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;21:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;21:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;22:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;22:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl22" height="17"&gt;23:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17"&gt;00:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17"&gt;05:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17"&gt;06:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17"&gt;10:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17"&gt;11:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17"&gt;12:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17"&gt;13:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17"&gt;14:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17"&gt;15:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17"&gt;16:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17"&gt;17:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl23" height="17"&gt;23:30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 08:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timeslot-questions/m-p/406652#M151273</guid>
      <dc:creator />
      <dc:date>2013-03-05T08:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Timeslot questions</title>
      <link>https://community.qlik.com/t5/QlikView/Timeslot-questions/m-p/406653#M151274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually i want to do it in QV not using SQL, substring is not a function in QV &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 09:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timeslot-questions/m-p/406653#M151274</guid>
      <dc:creator />
      <dc:date>2013-03-05T09:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Timeslot questions</title>
      <link>https://community.qlik.com/t5/QlikView/Timeslot-questions/m-p/406654#M151275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually i want to do it in QV not using SQL, substring is not a function in QV &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 09:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timeslot-questions/m-p/406654#M151275</guid>
      <dc:creator />
      <dc:date>2013-03-05T09:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Timeslot questions</title>
      <link>https://community.qlik.com/t5/QlikView/Timeslot-questions/m-p/406655#M151276</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 This,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if(Right(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Timeslot&lt;/SPAN&gt;,2) = '30', &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Timeslot&lt;/SPAN&gt;,null()) as TimeSlot,&lt;/P&gt;&lt;P&gt; if(Right(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Timeslot&lt;/SPAN&gt;,2) = '00', &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Timeslot&lt;/SPAN&gt;,null()) as Hours&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 09:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timeslot-questions/m-p/406655#M151276</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2013-03-05T09:14:23Z</dc:date>
    </item>
  </channel>
</rss>

