<?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: Cannot get a 0 just Null values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cannot-get-a-0-just-Null-values/m-p/424342#M1158728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gabriela&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found your suggestion very useful and this helps me now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2013 15:38:20 GMT</pubDate>
    <dc:creator>helen_pip</dc:creator>
    <dc:date>2013-01-15T15:38:20Z</dc:date>
    <item>
      <title>Cannot get a 0 just Null values</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-get-a-0-just-Null-values/m-p/424338#M1158724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone kindly look at the following expression I have written in a Pivot table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to show 0 values if the sum of inline_Monthly_Data_A is Null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 1;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If&lt;/P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IsNull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Inline_Monthly_Data_A&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),0,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Inline_Monthly_Data_A&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the above I am getting - values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 14:35:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-get-a-0-just-Null-values/m-p/424338#M1158724</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2013-01-15T14:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get a 0 just Null values</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-get-a-0-just-Null-values/m-p/424339#M1158725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rangesum(&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #800000;"&gt;Inline_Monthly_Data_A&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;),0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Gabriela.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 14:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-get-a-0-just-Null-values/m-p/424339#M1158725</guid>
      <dc:creator />
      <dc:date>2013-01-15T14:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get a 0 just Null values</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-get-a-0-just-Null-values/m-p/424340#M1158726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gabriela&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your suggestions, but alas, I am still getting Null values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 14:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-get-a-0-just-Null-values/m-p/424340#M1158726</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2013-01-15T14:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get a 0 just Null values</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-get-a-0-just-Null-values/m-p/424341#M1158727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the properties of your pivot table in presentation tab, does the option "populate missing cells" is checked?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is that they are missing values instead of null values, if you check that option you can treat missing values as null values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 15:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-get-a-0-just-Null-values/m-p/424341#M1158727</guid>
      <dc:creator />
      <dc:date>2013-01-15T15:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get a 0 just Null values</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-get-a-0-just-Null-values/m-p/424342#M1158728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gabriela&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found your suggestion very useful and this helps me now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 15:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-get-a-0-just-Null-values/m-p/424342#M1158728</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2013-01-15T15:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get a 0 just Null values</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-get-a-0-just-Null-values/m-p/424343#M1158729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it all depends on the "origin" of that NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, Qlikview gives your required result by default, with no need of any additional effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me give you an example.. take this script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Field1, Field2&lt;/P&gt;&lt;P&gt;a,10&lt;/P&gt;&lt;P&gt;a,20&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;b&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, b is always associated with NULL, so you would expect to see a NULL in the chart...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you make a pivot chart with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: &lt;SPAN style="font-size: 10pt;"&gt;Field1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Expression1: Sum(Field2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will see only a,30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you add another expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression2: 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will see also the record of b, with 0 as you required, although it is a sum of NULLs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, probably your NULLs are coming from a special situation (like a LEFT join.. or simply an association with missing values?...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should try to reproduce your error in a mini-script. This is the most difficult part. Once you have reproduced it, it's very easy to find a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In alternative, if you want, you can send me the qvw and I will fix it for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;F.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 16:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-get-a-0-just-Null-values/m-p/424343#M1158729</guid>
      <dc:creator>francescopuppin</dc:creator>
      <dc:date>2013-01-15T16:01:25Z</dc:date>
    </item>
  </channel>
</rss>

