<?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: IF Expression is not working well in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000211#M467984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take my new File. The script is important! When you look at the if clause you will see that for ID 1 the min time value is 05:00:00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And now the if clause is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( 05:00:00 &amp;gt;= 05:00:00 AND 05:00:00 &amp;lt; 05:30:00, Inside, Outside )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result must be Inside but QlikView says Outside. I don't know why...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Oct 2015 17:27:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-05T17:27:48Z</dc:date>
    <item>
      <title>IF Expression is not working well</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000207#M467980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; can anyone explain me why in my example the if clause is not working? I think the problem is maybe in the time format. But I working on it over 3 hours and I can#t find the answer...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I#am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result must be INSIDE for both and not OUTSIDE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope anyone can help me ... THanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000207#M467980</guid>
      <dc:creator />
      <dc:date>2015-10-05T16:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: IF Expression is not working well</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000208#M467981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your application is full of invalid expressions, is it correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 17:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000208#M467981</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-10-05T17:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: IF Expression is not working well</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000209#M467982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh ya, I think this is better...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 17:10:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000209#M467982</guid>
      <dc:creator />
      <dc:date>2015-10-05T17:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: IF Expression is not working well</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000210#M467983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you kindly guide me where should I check your "IF" that isn´t working?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/101007_Capturar.PNG" style="height: 124px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/101008_Capturar2.PNG" style="height: 218px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 17:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000210#M467983</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-10-05T17:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: IF Expression is not working well</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000211#M467984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take my new File. The script is important! When you look at the if clause you will see that for ID 1 the min time value is 05:00:00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And now the if clause is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( 05:00:00 &amp;gt;= 05:00:00 AND 05:00:00 &amp;lt; 05:30:00, Inside, Outside )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result must be Inside but QlikView says Outside. I don't know why...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 17:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000211#M467984</guid>
      <dc:creator />
      <dc:date>2015-10-05T17:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: IF Expression is not working well</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000212#M467985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you describe your Business rule?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 17:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000212#M467985</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-10-05T17:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: IF Expression is not working well</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000213#M467986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this should solve your needs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(frac(MinF) &amp;gt;= MakeTime(Hour(MinF)) AND frac(MinF) &amp;lt; MakeTime(Hour(MinF),30) , 'Inside', 'Outside' ) as StartGK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be carefull when using timestamp, your Minf was formated as hh:mm:ss but actually still has the date inside it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 17:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000213#M467986</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-10-05T17:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: IF Expression is not working well</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000214#M467987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh yess, thank you. But why is the Minf not formated as time? I use time()... And frac is cutting the date?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 17:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000214#M467987</guid>
      <dc:creator />
      <dc:date>2015-10-05T17:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: IF Expression is not working well</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000215#M467988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;frac() get rid of date part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this at script and change the format verifying the differences&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(now()) as date1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(floor(now())) as date2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; time(now()) as time1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; time(frac(now())) as time2&lt;/P&gt;&lt;P&gt;autogenerate 1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 17:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Expression-is-not-working-well/m-p/1000215#M467988</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-10-05T17:57:48Z</dc:date>
    </item>
  </channel>
</rss>

