<?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 statement with 2 conditions . in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597989#M1094888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you tel some example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2018 10:03:02 GMT</pubDate>
    <dc:creator>puneetagarwal</dc:creator>
    <dc:date>2018-04-26T10:03:02Z</dc:date>
    <item>
      <title>If statement with 2 conditions .</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597982#M1094881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody , I need to write an if statement with multiple conditions for example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(enter_time+exit_time) &amp;gt;= 2, count(vhcls) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there an if formula to do this or should I use another function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanx. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 17:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597982#M1094881</guid>
      <dc:creator />
      <dc:date>2014-05-05T17:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with 2 conditions .</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597983#M1094882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use as many condition as you want, but typically the if statement is inside aggregation:&lt;/P&gt;&lt;P&gt;count(if((condition1 or condition2) and (condition3 or condition4) and condition5, vhcls))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 17:53:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597983#M1094882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-05T17:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with 2 conditions .</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597984#M1094883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the syntax is&lt;/P&gt;&lt;P&gt;IF(Cond,TrueExpression,FalseExpression)&lt;/P&gt;&lt;P&gt;where Cond can be&lt;/P&gt;&lt;P&gt;ExpressionA AND|OR ExpressionB AND|OR ExpressionC and so on&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 17:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597984#M1094883</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-05-05T17:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with 2 conditions .</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597985#M1094884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I mean could I use variables inside an if statement ? If so what's the syntax ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanx. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 18:47:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597985#M1094884</guid>
      <dc:creator />
      <dc:date>2014-05-05T18:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with 2 conditions .</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597986#M1094885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use variables.&lt;BR /&gt;Syntax - it depends what's the content of the variables, and how you're going to use them.&amp;nbsp; It could be a value, for example your '2' in the opening post can be replaced with a variable.&amp;nbsp; Or it could be the whole condition, or its part.&amp;nbsp; If you want a more specific answer, upload your application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 19:23:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597986#M1094885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-05T19:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with 2 conditions .</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597987#M1094886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe you meant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;if(enter_time&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;gt;= 2&lt;/SPAN&gt; AND exit_time&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &amp;gt;= 2&lt;/SPAN&gt;, count(vhcls))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 22:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597987#M1094886</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-05-05T22:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with 2 conditions .</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597988#M1094887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there are 2 expressions in the fasle expression how to write it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 09:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597988#M1094887</guid>
      <dc:creator>anushahegde</dc:creator>
      <dc:date>2018-04-26T09:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with 2 conditions .</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597989#M1094888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you tel some example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 10:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597989#M1094888</guid>
      <dc:creator>puneetagarwal</dc:creator>
      <dc:date>2018-04-26T10:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with 2 conditions .</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597990#M1094889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if((enter_time+exit_time) &amp;gt;= 2,vhcls)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMyVariable=(enter_time+exit_time)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count(if($(vMyVariable)&amp;gt;2,vhcls)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 13:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597990#M1094889</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-04-26T13:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with 2 conditions .</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597991#M1094890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please open a thread for your questions instead of adding them to existing ones.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 18:53:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597991#M1094890</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2018-04-26T18:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with 2 conditions .</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597992#M1094891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would create field in the script for this: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;New_field:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;enter_time+exit_time as duration &lt;/P&gt;&lt;P&gt;FROM... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and use this measure:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Count(if((duration) &amp;gt;= 2,vhcls)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 15:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-with-2-conditions/m-p/597992#M1094891</guid>
      <dc:creator>cmorri1988</dc:creator>
      <dc:date>2018-04-27T15:13:46Z</dc:date>
    </item>
  </channel>
</rss>

