<?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: Re: Still reworking a code in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688068#M674279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, if you have time "14:00". Here it checks if it smaller than 14:00&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;'14:00','14:00',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;It isn't, 13:59 is the last value that makes this statement true. So it tests with next if-sentence, is it smaller than 16:00? (Yes) But in your case you want to have&amp;nbsp; value 14:00 in "14:00" category. So we add condition that it needs to smaller OR excatly the same value, by adding "=". "&amp;lt;=" could be also written as&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;'14:00' OR &lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min='14:00'&lt;/SPAN&gt;,'14:00',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jul 2014 08:09:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-31T08:09:58Z</dc:date>
    <item>
      <title>Still reworking a code</title>
      <link>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688065#M674276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in an old code, I have introduced, with some help from the Community, a new code to generate minute_intervals between 5:20 am and 10:30 pm. Here is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;SET &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;vShiftStart&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;=Time#('5:20:00');&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;Set&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;vShiftEnd&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;=Time#('22:30:00'); &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;&lt;BR /&gt;Plan_Kolli_Temp:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;$(vShiftStart)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Time#&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;('00:01:00')*(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;IterNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;()-1), 'hh:mm') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AutoGenerate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; (1)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;While&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Time&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;$(vShiftStart)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Time#&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;('00:01:00')*(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;IterNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;()-1), 'hh:mm') &amp;lt;= &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;$(vShiftEnd)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;BR /&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Later, in a consecutive piece of code, I have the following IF-construct:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;'07:30','07:30',&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;'10:00','10:00',&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;'12:00','12:00',&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;'14:00','14:00',&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;'16:00','16:00',&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;'18:30','18:30',&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;'20:30','20:30',&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;'22:30','22:30','22:30')))))))) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_2H,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;&amp;nbsp; Interval_Min&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;RESIDENT Plan_Kolli_Temp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Quite easy it seems, though maybe not the most elegant way of doing this. For some reason, however, the 2h-intervals &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;- 07:30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;- 10:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;- 12:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;INCLUDE that exact time (the minute-interval 07:30 is included in the 2h-interval 07:30 and the like for the others)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;&amp;lt;=&amp;gt; The later intervals&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;- 14:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;- 16:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;- 18:30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;- 20:30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;- 22:30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;do NOT include that exact time (the 2h-interval 14:00 includes the minute-intervals up to 13:59 and the like)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;=&amp;gt; Can anybody tell me why this is so?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DataNibbler&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 07:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688065#M674276</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-07-31T07:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Still reworking a code</title>
      <link>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688066#M674277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to have it like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;'=07:30','07:30',&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;'=10:00','10:00', etc&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 07:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688066#M674277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-31T07:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Still reworking a code</title>
      <link>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688067#M674278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joonas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try. But why? What does that '=' change about the operator?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 07:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688067#M674278</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-07-31T07:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Still reworking a code</title>
      <link>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688068#M674279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, if you have time "14:00". Here it checks if it smaller than 14:00&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;'14:00','14:00',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;It isn't, 13:59 is the last value that makes this statement true. So it tests with next if-sentence, is it smaller than 16:00? (Yes) But in your case you want to have&amp;nbsp; value 14:00 in "14:00" category. So we add condition that it needs to smaller OR excatly the same value, by adding "=". "&amp;lt;=" could be also written as&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;lt;'14:00' OR &lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min='14:00'&lt;/SPAN&gt;,'14:00',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 08:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688068#M674279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-31T08:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Still reworking a code</title>
      <link>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688069#M674280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Ah, I understand.&lt;/P&gt;&lt;P&gt;I was just confused because you had enclosed that = into the quotes in your post. Of course, the operator &amp;lt;= is known to me &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 08:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688069#M674280</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-07-31T08:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Still reworking a code</title>
      <link>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688070#M674281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh sorry, typoed &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 08:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688070#M674281</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-31T08:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Still reworking a code</title>
      <link>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688071#M674282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;No,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for some reason it still doesn't work as expected: I have replaced all the '&amp;lt;' operators with '&amp;lt;=', but now the 2H-intervals '10:00' and '12:00' are wrong:&lt;/P&gt;&lt;P&gt;I calculate the hr simply with &amp;gt;&amp;gt; &lt;STRONG&gt;Hour(Interval_Min)&lt;/STRONG&gt; &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;Strangely, some of the intervals are correct, others are not though I am now consistently using the '&amp;lt;=' operator throughout that IF-construct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The 2hr-interval '07:30' includes that exact time, the hr_intervals are correct: 5, 6, 7&lt;/P&gt;&lt;P&gt;- The 2hr-interval '10:00' includes that exact time, the hr_intervals are incorrect: 7, 8, 9, 10 - I don't want 10 in there&lt;/P&gt;&lt;P&gt;- '12:00' includes that exact time, hr_intervals are incorrect: 10, 11, 12 - I don't want 12 in there&lt;/P&gt;&lt;P&gt;- '14:00' does NOT include that exact time, hr-intervals are correct - 12, 13&lt;/P&gt;&lt;P&gt;- '16:00' does NOT include that exact time, hr-intervals are correct - 14, 15&lt;/P&gt;&lt;P&gt;- '18:30', '20:30' do include that exact time, that is correct as we have a half-hour here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 08:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688071#M674282</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-07-31T08:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Still reworking a code</title>
      <link>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688072#M674283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And you are sure the exact time 16:00 exists? And that it is not 16:00:00.00001?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try changing Hour(Interval_Min) to Floor(Hour(Interval_Min)) and see if it makes any difference?&lt;BR /&gt;&amp;lt;= will give you the exact time 16 while &amp;lt; will not. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 09:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688072#M674283</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2014-07-31T09:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Still reworking a code</title>
      <link>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688073#M674284</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;thanks for the new ideas!&lt;/P&gt;&lt;P&gt;I have some other things to attend to right now - after all, it works, I was just trying to make it more elegant by introducing this code with the minute-intervals - and if I do that, I have to smoothen it out so that it works again. Until I have that, I leave the "live" code as it is.&lt;/P&gt;&lt;P&gt;I will get back to this tomorrow - I really want the "fundaments" of our QlikView_architecture as smooth and trim as they can be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 09:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688073#M674284</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-07-31T09:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Still reworking a code</title>
      <link>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688074#M674285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;two other methods could be helpful especially if the condition-check is much larger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you could use class() to create cluster - with none homegenous cluster-size is it more complicated and you will need a few if-loops inside and/or outside.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second you could use mapping to a master-timetable or to a mapping-table. Difficult at this is to round your value (&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Interval_Min&lt;/SPAN&gt;) to exactly those values which you have in mapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 11:11:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Still-reworking-a-code/m-p/688074#M674285</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-07-31T11:11:27Z</dc:date>
    </item>
  </channel>
</rss>

