<?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 Qlikview IF Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-IF-Statement/m-p/1192650#M385172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikview Gurus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to display the number of printed orders based on the condition below, but I am struggling to get it right. Can someone please assist?&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;MATCH&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(ORDER&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;_TYPE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &amp;gt;= 2150 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(ORDER&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;_TYPE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &amp;gt;= 2100 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Isnull&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FIRST_PRINT_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)))),1,0) AS PRINTED,&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script return the following error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error in expression:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If takes 2-3 parameters&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2016 10:24:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-12T10:24:50Z</dc:date>
    <item>
      <title>Qlikview IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-IF-Statement/m-p/1192650#M385172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikview Gurus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to display the number of printed orders based on the condition below, but I am struggling to get it right. Can someone please assist?&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;MATCH&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(ORDER&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;_TYPE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &amp;gt;= 2150 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(ORDER&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;_TYPE_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &amp;gt;= 2100 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Isnull&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FIRST_PRINT_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)))),1,0) AS PRINTED,&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script return the following error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error in expression:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If takes 2-3 parameters&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 10:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-IF-Statement/m-p/1192650#M385172</guid>
      <dc:creator />
      <dc:date>2016-10-12T10:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-IF-Statement/m-p/1192651#M385173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are using or and if together... try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(&lt;SPAN style="color: #ff0000;"&gt;ORDER_TYPE_ID &amp;gt;= 2150 OR&lt;/SPAN&gt; ORDER_TYPE_ID &amp;gt;= 2100 AND Isnull(FIRST_PRINT_DATE), 1, 0) AS PRINTED&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement in red looks redundant. If ORDER_TYPE_ID &amp;gt;= 2100, it will be &amp;gt;= 2150, right? So may be you need just this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;IF(ORDER_TYPE_ID &amp;gt;= 2100 AND Isnull(FIRST_PRINT_DATE), 1, 0) AS PRINTED&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 16:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-IF-Statement/m-p/1192651#M385173</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-12T16:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-IF-Statement/m-p/1192652#M385174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the statement is not redundant. In Oracle script is like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Count(1) PRINTED&lt;/P&gt;&lt;P&gt;FROM ORDER&lt;/P&gt;&lt;P&gt;WHERE order&lt;SPAN class="EMoHub tL8wMe" dir="ltr" style="text-align: left;"&gt;_type_id &amp;gt;= 2150 or (order_type_id &amp;gt;= 2100 and first_print_date is not null)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="EMoHub tL8wMe" dir="ltr" style="text-align: left;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="EMoHub tL8wMe" dir="ltr" style="text-align: left;"&gt;I would like to convert this script into Qlikview function&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 16:20:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-IF-Statement/m-p/1192652#M385174</guid>
      <dc:creator />
      <dc:date>2016-10-12T16:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-IF-Statement/m-p/1192653#M385175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(ORDER_TYPE_ID &amp;gt;= 2150 OR &lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;(&lt;/SPAN&gt;ORDER_TYPE_ID &amp;gt;= 2100 AND Isnull(FIRST_PRINT_DATE)&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;)&lt;/SPAN&gt;, 1, 0) AS PRINTED&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 16:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-IF-Statement/m-p/1192653#M385175</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-12T16:29:47Z</dc:date>
    </item>
  </channel>
</rss>

