<?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 Select NULL value in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-NULL-value-in-pivot-table/m-p/213120#M66927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to be able to select a line in a pivot table that contains "null" values in the first dimention :&lt;/P&gt;&lt;P&gt;Suppose we have 3 fields from 2 tables :&lt;/P&gt;&lt;P&gt;Table A : Fields "Code" and "Join"&lt;/P&gt;&lt;P&gt;Table B : Fields "Join" and "Value"&lt;/P&gt;&lt;P&gt;The Pivot table has 2 dimensions : "Code" and "Join", One expression : sum(Value)&lt;/P&gt;&lt;P&gt;If a "join" in table B has no corresponding "Code" in table A, a "null" line is present in the pivot table first column.&lt;/P&gt;&lt;P&gt;What should be done so this "null" line becomes selectable?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pierre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Dec 2010 22:43:28 GMT</pubDate>
    <dc:creator>pdumas</dc:creator>
    <dc:date>2010-12-03T22:43:28Z</dc:date>
    <item>
      <title>Select NULL value in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Select-NULL-value-in-pivot-table/m-p/213120#M66927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to be able to select a line in a pivot table that contains "null" values in the first dimention :&lt;/P&gt;&lt;P&gt;Suppose we have 3 fields from 2 tables :&lt;/P&gt;&lt;P&gt;Table A : Fields "Code" and "Join"&lt;/P&gt;&lt;P&gt;Table B : Fields "Join" and "Value"&lt;/P&gt;&lt;P&gt;The Pivot table has 2 dimensions : "Code" and "Join", One expression : sum(Value)&lt;/P&gt;&lt;P&gt;If a "join" in table B has no corresponding "Code" in table A, a "null" line is present in the pivot table first column.&lt;/P&gt;&lt;P&gt;What should be done so this "null" line becomes selectable?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pierre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 22:43:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-NULL-value-in-pivot-table/m-p/213120#M66927</guid>
      <dc:creator>pdumas</dc:creator>
      <dc:date>2010-12-03T22:43:28Z</dc:date>
    </item>
    <item>
      <title>Select NULL value in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Select-NULL-value-in-pivot-table/m-p/213121#M66928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dumas,&lt;/P&gt;&lt;P&gt;QV feature is that null values are not selectable at all,&lt;/P&gt;&lt;P&gt;anyway you can make some workaround:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableTemp:&lt;BR /&gt;//TableA:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Join, Code&lt;BR /&gt; a, 1&lt;BR /&gt; b, 2&lt;BR /&gt; b, 3&lt;BR /&gt; c, 4&lt;BR /&gt; d, 5&lt;BR /&gt;];&lt;BR /&gt;join&lt;BR /&gt;//TableB:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Join, Value&lt;BR /&gt; a, 100&lt;BR /&gt; b, 200&lt;BR /&gt; b, 500&lt;BR /&gt; e, 500&lt;BR /&gt; f, 700&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Table:&lt;BR /&gt;Load&lt;BR /&gt; Join,&lt;BR /&gt; Value,&lt;BR /&gt; if(isnull(Code),'N/A',Code) as Code,&lt;BR /&gt; 1 as temp&lt;BR /&gt;resident TableTemp;&lt;BR /&gt;&lt;BR /&gt;Drop field temp; // Drop dummy temp field&lt;BR /&gt;Drop table TableTemp;&lt;/P&gt;&lt;P&gt;Result is:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/8228.Result.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/8228.Result.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Dec 2010 00:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-NULL-value-in-pivot-table/m-p/213121#M66928</guid>
      <dc:creator />
      <dc:date>2010-12-04T00:46:18Z</dc:date>
    </item>
    <item>
      <title>Select NULL value in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Select-NULL-value-in-pivot-table/m-p/213122#M66929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could also add the following line at the start of your code:&lt;/P&gt;&lt;P&gt;NullAsValue Code;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;NullAsValue *;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Dec 2010 00:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-NULL-value-in-pivot-table/m-p/213122#M66929</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-12-04T00:57:58Z</dc:date>
    </item>
    <item>
      <title>Select NULL value in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Select-NULL-value-in-pivot-table/m-p/213123#M66930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script resolution adds a to much code and complexity. I would like to avoid it.&lt;/P&gt;&lt;P&gt;I have added a calculated field that allows "null" select, however, unselect does not work fine.&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pierre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Dec 2010 12:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-NULL-value-in-pivot-table/m-p/213123#M66930</guid>
      <dc:creator>pdumas</dc:creator>
      <dc:date>2010-12-04T12:37:25Z</dc:date>
    </item>
    <item>
      <title>Select NULL value in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Select-NULL-value-in-pivot-table/m-p/213124#M66931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;Karl Pover wrote:&lt;BR /&gt;You could also add the following line at the start of your code:&lt;BR /&gt;NullAsValue Code;&lt;BR /&gt;or&lt;BR /&gt;NullAsValue *;&lt;BR /&gt;Regards. &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;In my experience, this will only work on tables separately. It will not create null values for joined tables/fields (where there would be missing connections). If you only have one table, it would work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 15:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-NULL-value-in-pivot-table/m-p/213124#M66931</guid>
      <dc:creator />
      <dc:date>2010-12-06T15:14:21Z</dc:date>
    </item>
    <item>
      <title>Select NULL value in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Select-NULL-value-in-pivot-table/m-p/213125#M66932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You observation is right Carlgade. NullAsValue seem to only work for null values that originate at the datasource and not the null values generated in QlikView.&lt;/P&gt;&lt;P&gt;Here's an example of selecting null value with a bookmark instead of the calculated list box.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 18:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-NULL-value-in-pivot-table/m-p/213125#M66932</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-12-06T18:23:18Z</dc:date>
    </item>
  </channel>
</rss>

