<?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: Replacing Zero with Null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replacing-Zero-with-Null/m-p/1480#M794226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the fast response Tim. I put this at the top of the load script with all the other set commands but it didn't appear to do anything. Should I have put it somewhere else?&lt;/P&gt;&lt;P&gt;Also the excel file that I am importing the data from sees the numbers as text - QV is correctly interpreting them as numbers but I wonder if that has something to do with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jan 2018 10:57:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-16T10:57:07Z</dc:date>
    <item>
      <title>Replacing Zero with Null</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-Zero-with-Null/m-p/1478#M794221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking around it seems most folks want to replace their Nulls with something but I have a data set where all the missing values are set to Zero. If I then try and do any statistics on this I get ridiculous answers, so I would like to change all the zeros to Nulls at load. Is there a relatively straight forward way of doing this?&lt;/P&gt;&lt;P&gt;I can see where I could use a where statement to remove the entire row which contains a zero but I just want to exclude the individual values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-Zero-with-Null/m-p/1478#M794221</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Zero with Null</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-Zero-with-Null/m-p/1479#M794223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;NullInterpret&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 0;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;NullValue&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '-';&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;NULLASVALUE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; *;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//Load your table and all Values with 0 will be replaced with '-' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//if you want to limit this to field just typ NULLASVALUE Field1, Field2;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 10:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-Zero-with-Null/m-p/1479#M794223</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2018-01-16T10:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Zero with Null</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-Zero-with-Null/m-p/1480#M794226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the fast response Tim. I put this at the top of the load script with all the other set commands but it didn't appear to do anything. Should I have put it somewhere else?&lt;/P&gt;&lt;P&gt;Also the excel file that I am importing the data from sees the numbers as text - QV is correctly interpreting them as numbers but I wonder if that has something to do with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 10:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-Zero-with-Null/m-p/1480#M794226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-16T10:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Zero with Null</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-Zero-with-Null/m-p/1481#M794227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;NullAsValue A,B;&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;Set NullValue = 'NULL';&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;LOAD A,B from x.csv;&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate" style="font-size: 12px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; color: #0f0f0f;"&gt;you can use this NullAsValue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 11:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-Zero-with-Null/m-p/1481#M794227</guid>
      <dc:creator>manu1512</dc:creator>
      <dc:date>2018-01-16T11:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Zero with Null</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-Zero-with-Null/m-p/1482#M794228</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 also another way using alt function&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;alt(sum(Sales),0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i.e: &lt;SPAN style="font-size: 13.3333px;"&gt;alt( &amp;lt;field name&amp;gt; , &amp;lt;value_if_NULL&amp;gt; )&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for the load script u can try &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;NullAsValue 'Field name';&amp;nbsp; // or NullAsValue *;&lt;/P&gt;&lt;P&gt;set NullValue='Unknown';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Deva&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 11:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-Zero-with-Null/m-p/1482#M794228</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2018-01-16T11:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Zero with Null</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-Zero-with-Null/m-p/1483#M794229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I wouldn't try to replace the zeros with NULL else I would fetch this within the expressions, for example with something like: count({ Field -= {0}&amp;gt;} Field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 11:52:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-Zero-with-Null/m-p/1483#M794229</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-16T11:52:10Z</dc:date>
    </item>
  </channel>
</rss>

