<?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 If Statement and Null Value Problems in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Statement-and-Null-Value-Problems/m-p/314034#M499114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, I have a small issue with an If statement and null values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a range of values which are banded up based on another field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original field contains numbers between 0 and 15. The requirement is to include only numbers between 0 and 10 and exclude all numbers above 10. &lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IF([Value 1] &amp;gt; 0 and [Value 1] &amp;lt; 5, '&amp;lt; 5', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF([Value 1] &amp;gt;= 5 and [Value 1] &amp;lt;10, &amp;gt;5'))&amp;nbsp; as New_Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no else part in my If statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use my new field called New_Value in a table, I try to calculate percentages and I find out that my percentages don't sum up to 100% when I use only &amp;lt;5 and &amp;gt;5, because there are some null values which correspond to values above 10 that I have excluded in my load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can get rid of all the unwanted values above 10, so that when i work out percentages in my table, my totals will sum up to 100% for only values between 0 and 10? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2011 10:09:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-28T10:09:26Z</dc:date>
    <item>
      <title>If Statement and Null Value Problems</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-and-Null-Value-Problems/m-p/314034#M499114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, I have a small issue with an If statement and null values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a range of values which are banded up based on another field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original field contains numbers between 0 and 15. The requirement is to include only numbers between 0 and 10 and exclude all numbers above 10. &lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IF([Value 1] &amp;gt; 0 and [Value 1] &amp;lt; 5, '&amp;lt; 5', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF([Value 1] &amp;gt;= 5 and [Value 1] &amp;lt;10, &amp;gt;5'))&amp;nbsp; as New_Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no else part in my If statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use my new field called New_Value in a table, I try to calculate percentages and I find out that my percentages don't sum up to 100% when I use only &amp;lt;5 and &amp;gt;5, because there are some null values which correspond to values above 10 that I have excluded in my load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can get rid of all the unwanted values above 10, so that when i work out percentages in my table, my totals will sum up to 100% for only values between 0 and 10? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 10:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-and-Null-Value-Problems/m-p/314034#M499114</guid>
      <dc:creator />
      <dc:date>2011-07-28T10:09:26Z</dc:date>
    </item>
    <item>
      <title>If Statement and Null Value Problems</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-and-Null-Value-Problems/m-p/314035#M499115</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;You can get the total using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Value 1] = {"&amp;gt;=0 &amp;lt;=10"}&amp;gt;} [Value 1])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can calculate the percentages only for values 0 - 10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 10:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-and-Null-Value-Problems/m-p/314035#M499115</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-07-28T10:52:20Z</dc:date>
    </item>
    <item>
      <title>If Statement and Null Value Problems</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-and-Null-Value-Problems/m-p/314036#M499116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Your suggestion would be fine if I had only one dimension, but I am using a cycle group in the table with multiple dimensions, so putting set analysis specific to one dimension would make the evaluation of other dimensions to be incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any othr suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 11:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-and-Null-Value-Problems/m-p/314036#M499116</guid>
      <dc:creator />
      <dc:date>2011-07-28T11:03:50Z</dc:date>
    </item>
    <item>
      <title>If Statement and Null Value Problems</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-and-Null-Value-Problems/m-p/314037#M499117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;You can create a variable ( for example vDim) with the following expression (in setting-&amp;gt;Variable overview)&lt;/P&gt;&lt;P&gt;=GetCurrentField([New Group])&amp;nbsp;&amp;nbsp; -----&amp;gt; Where [New Group] is the name of the group you are using&lt;/P&gt;&lt;P&gt;(including the equal sign, ok?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, the set analysis will be: &lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[$(vDim)] = {"&amp;gt;=0 &amp;lt;=10"}&amp;gt;}[$(vDim)])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 04:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-and-Null-Value-Problems/m-p/314037#M499117</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-07-29T04:28:40Z</dc:date>
    </item>
  </channel>
</rss>

