<?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: Retrieve non null value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Retrieve-non-null-value/m-p/357592#M494226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand from your point of view, the solution also can be used in this context below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(a = 1 AND ISNULL(a) = 0, 1, 0)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2012 12:46:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-18T12:46:59Z</dc:date>
    <item>
      <title>Retrieve non null value</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-non-null-value/m-p/357590#M494224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to retrieve data in specific column(s )that do not have any null value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in SQL server you would like to write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a, b&lt;/P&gt;&lt;P&gt;from aaa&lt;/P&gt;&lt;P&gt;where a is not null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would you retrieve non null value in the table in the expressen interface?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// JJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 12:15:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-non-null-value/m-p/357590#M494224</guid>
      <dc:creator />
      <dc:date>2012-04-18T12:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve non null value</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-non-null-value/m-p/357591#M494225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;select a, b&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;from aaa&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;where isnull(a)=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-1 for true &lt;/P&gt;&lt;P&gt;and 0 for false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 12:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-non-null-value/m-p/357591#M494225</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-04-18T12:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve non null value</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-non-null-value/m-p/357592#M494226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand from your point of view, the solution also can be used in this context below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(a = 1 AND ISNULL(a) = 0, 1, 0)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 12:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-non-null-value/m-p/357592#M494226</guid>
      <dc:creator />
      <dc:date>2012-04-18T12:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve non null value</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-non-null-value/m-p/357593#M494227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Qlikview, you have&amp;nbsp; (at least) 3 worlds: The Script World, The Expressions World and The Macro World.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is few cases that the same "word" functions in two worlds at the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So... What you want to do? Create a field in script or make a graphic expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 13:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-non-null-value/m-p/357593#M494227</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2012-04-18T13:21:29Z</dc:date>
    </item>
    <item>
      <title>Retrieve non null value</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-non-null-value/m-p/357594#M494228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let's make it as both that is script and graphic expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 13:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-non-null-value/m-p/357594#M494228</guid>
      <dc:creator />
      <dc:date>2012-04-18T13:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve non null value</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-non-null-value/m-p/357595#M494229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a few ways to do this.&lt;/P&gt;&lt;P&gt;Normally using the function isnull() like said Sunil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other alternative is like this: if(Len(Trim(&lt;SPAN style="color: #ff0000;"&gt;Field&lt;/SPAN&gt;))&amp;gt;0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also in the script you could use: If(&lt;SPAN style="color: #ff0000;"&gt;Field&lt;/SPAN&gt;&amp;lt;&amp;gt;' ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 15:41:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-non-null-value/m-p/357595#M494229</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-04-18T15:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve non null value</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-non-null-value/m-p/357596#M494230</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use Script level&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b&lt;/P&gt;&lt;P&gt;from Datasource&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;a &amp;lt;&amp;gt; '';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Expression level &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if (IsNull(a),1,0) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Iyyappan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 17:24:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-non-null-value/m-p/357596#M494230</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2012-04-18T17:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve non null value</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-non-null-value/m-p/357597#M494231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="min-height: 8pt;"&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt;"&gt;In qlikview also you can use quite similar syntax.&lt;/P&gt;&lt;P style="min-height: 8pt;"&gt;In load script you can write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load a, b&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from aaa&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where not isnull(a);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the same not isnull(a) can be used in charts also with if condition,&lt;/P&gt;&lt;P&gt;suppose you want sum of b when a is not null then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(if(not isnull(a),b))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, as others said sometimes (when loading data from text files) isnull() may not work then you can use len() function. The reason for isnull() not working is that &lt;STRONG&gt;by definition text files can not contain null data.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 18:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-non-null-value/m-p/357597#M494231</guid>
      <dc:creator />
      <dc:date>2012-04-18T18:23:40Z</dc:date>
    </item>
  </channel>
</rss>

