<?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: Nulls and zeros in Aggr() function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nulls-and-zeros-in-Aggr-function/m-p/477751#M554847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestions on replacing the null / missing value with 0 on the presentation tab.&amp;nbsp; However that is only a string, not a numeric zero.&amp;nbsp; I need to create real zero values which can be used in filters as Gysbert suggests.&amp;nbsp; Can you please elaborate on how I would do this?&amp;nbsp; Surely it is a common requirement to be able to select customers who have not ordered within a given year? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Aug 2013 13:35:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-08T13:35:18Z</dc:date>
    <item>
      <title>Nulls and zeros in Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/Nulls-and-zeros-in-Aggr-function/m-p/477748#M554844</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;Please can someone help?&amp;nbsp; I have developed a pivot table with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Dimensions: Customer, Product, Year&lt;/LI&gt;&lt;LI&gt;Expression: &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: #0000ff; font-size: 8pt;"&gt;aggr&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;[Quantity Ordered]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Customer&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I would like to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt;"&gt;Replace the null values with zero in the pivot table&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Allow the user to filter where Quantity Ordered is zero&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach the pivot table and my data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 13:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nulls-and-zeros-in-Aggr-function/m-p/477748#M554844</guid>
      <dc:creator />
      <dc:date>2013-08-08T13:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Nulls and zeros in Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/Nulls-and-zeros-in-Aggr-function/m-p/477749#M554845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Displaying nulls as zero's can be done by changing the Null Symbol from a - to 0 on the Presentation tab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not possible in QV to select nulls. Only real values can be selected. If you really want that you'll have to create real zero values. That would probably mean creating a table with a cartesian product of customer*product*year and replacing nulls with zero's. That's probably not a good idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 13:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nulls-and-zeros-in-Aggr-function/m-p/477749#M554845</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-08T13:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Nulls and zeros in Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/Nulls-and-zeros-in-Aggr-function/m-p/477750#M554846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see image&lt;/P&gt;&lt;P&gt;in red area of image write 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 13:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nulls-and-zeros-in-Aggr-function/m-p/477750#M554846</guid>
      <dc:creator />
      <dc:date>2013-08-08T13:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Nulls and zeros in Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/Nulls-and-zeros-in-Aggr-function/m-p/477751#M554847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestions on replacing the null / missing value with 0 on the presentation tab.&amp;nbsp; However that is only a string, not a numeric zero.&amp;nbsp; I need to create real zero values which can be used in filters as Gysbert suggests.&amp;nbsp; Can you please elaborate on how I would do this?&amp;nbsp; Surely it is a common requirement to be able to select customers who have not ordered within a given year? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 13:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nulls-and-zeros-in-Aggr-function/m-p/477751#M554847</guid>
      <dc:creator />
      <dc:date>2013-08-08T13:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Nulls and zeros in Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/Nulls-and-zeros-in-Aggr-function/m-p/477752#M554848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt; Surely it is a common requirement to be able to select customers who have not ordered within a given year?&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you need to &lt;EM&gt;select&lt;/EM&gt; them? You can &lt;EM&gt;see&lt;/EM&gt; those customers by simply selecting the year and look at the customers listbox to see which customers are shown as excluded in the listbox (having a grey background instead of white). But if you do need to actually select them, then first right click the customers list box choose Select Excluded and if necessary clear selections in the other fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's also possible to use set analysis to create a search string for these customers for a Select in Field action. For example &lt;EM&gt;='(' &amp;amp; concat({&amp;lt;Customer=e({&amp;lt;Year={2013}&amp;gt;}Customer)&amp;gt;} distinct chr(34) &amp;amp; Customer &amp;amp; chr(34), '|') &amp;amp; ')'&lt;/EM&gt; for a search string of customers that didn't order in 2013. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Aug 2013 19:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nulls-and-zeros-in-Aggr-function/m-p/477752#M554848</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-10T19:28:56Z</dc:date>
    </item>
  </channel>
</rss>

