<?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 in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-statement-in-expression/m-p/299463#M1183714</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 adding more brackets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;SUM&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(((&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;RealHeight &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;+ &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;Tolerances&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &amp;gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;Height&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;), 0, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(((&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;RealHeight &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;-&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;Tolerances&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)&amp;lt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;Height&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;), 0, 1))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2011 12:04:39 GMT</pubDate>
    <dc:creator>jjfabian</dc:creator>
    <dc:date>2011-12-14T12:04:39Z</dc:date>
    <item>
      <title>IF statement in expression</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-in-expression/m-p/299462#M1183713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question using a IF statement in an expression. I'm not sure this is a possible way or even the best way, but after 2 days trying and failing, the time has come to search for expert help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The case is; In my QlickView I have one row of measurements given from our customers. The name of this row is "Height".&lt;/P&gt;&lt;P&gt;In row 2 I have information of what the height really was after a controll measurement done by my colleagues. The name of this row is “RealHeight”.On top of that, I have a row with tolerances, based on the type of packaging.&amp;nbsp; The names of those two rows are “Tolerances” and “Packaging”.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make a check if the given “Height” from our customers is inside or outside the measurement done by our colleagues +/- the tolerance by setting 1 when the height is outside the tolerances and 0 when it is inside the tolerances. &lt;/P&gt;&lt;P&gt;I’ve tried this IF-statement, but it doesn’t give me the expected result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;RealHeight &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;+ &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Tolerances&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;) &amp;gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Height&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;, 0, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;RealHeight &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Tolerances&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;)&amp;lt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Height&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;, 0, 1))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 11:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-in-expression/m-p/299462#M1183713</guid>
      <dc:creator />
      <dc:date>2011-12-14T11:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement in expression</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-in-expression/m-p/299463#M1183714</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 adding more brackets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;SUM&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(((&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;RealHeight &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;+ &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;Tolerances&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &amp;gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;Height&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;), 0, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(((&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;RealHeight &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;-&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;Tolerances&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)&amp;lt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: maroon; font-family: 'Courier New';"&gt;Height&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;), 0, 1))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 12:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-in-expression/m-p/299463#M1183714</guid>
      <dc:creator>jjfabian</dc:creator>
      <dc:date>2011-12-14T12:04:39Z</dc:date>
    </item>
    <item>
      <title>IF statement in expression</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-in-expression/m-p/299464#M1183715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, the result is the same. &lt;/P&gt;&lt;P&gt;Thanks anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 12:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-in-expression/m-p/299464#M1183715</guid>
      <dc:creator />
      <dc:date>2011-12-14T12:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement in expression</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-in-expression/m-p/299465#M1183716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(Sum(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;RealHeight &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;+ &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Tolerances&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;) &amp;gt; Sum(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Height)&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;, 0, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(Sum(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;RealHeight &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Tolerances&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;)&amp;lt; Sum(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Height)&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;, 0, 1))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 12:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-in-expression/m-p/299465#M1183716</guid>
      <dc:creator />
      <dc:date>2011-12-14T12:16:19Z</dc:date>
    </item>
    <item>
      <title>IF statement in expression</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-in-expression/m-p/299466#M1183717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The result appears to be the same. &lt;/P&gt;&lt;P&gt;If I run this statement alone, I've got an correct count for all products outside the maximum tolerances:&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(Sum(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;RealHeight &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;+ &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Tolerances&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;) &amp;gt; Sum(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Height)&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;, 0, 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;but the combination between maximum tolerances and minimum tolerances would not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 12:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-in-expression/m-p/299466#M1183717</guid>
      <dc:creator />
      <dc:date>2011-12-14T12:28:25Z</dc:date>
    </item>
  </channel>
</rss>

