<?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: Aggr Function - wrong output in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Function-wrong-output/m-p/512240#M191405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Behnaz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you reply.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue was - it was counting Null value also, which is in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; 'Inventory &amp;lt;= 10 Days&lt;/SPAN&gt;'.&amp;nbsp;&amp;nbsp; I need to count the values which are Zero.&amp;nbsp; But not&amp;nbsp; which are NULL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jan 2014 06:50:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-15T06:50:29Z</dc:date>
    <item>
      <title>Aggr Function - wrong output</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function-wrong-output/m-p/512238#M191403</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;I have created the following expressions which are displayed in a Stacked Bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; Inventory &amp;lt;= 10 Days&lt;/P&gt;&lt;P&gt;Sum(if(Aggr((Sum ([CLosing_STK Value]) + Sum ([Intran_STK Value])) / (Sum ([Avg Value])/30),[Territory Name]) &amp;lt;= 10,1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; Inventory Between 10 to 30 Days&lt;/P&gt;&lt;P&gt;sum(if((Aggr((Sum ([CLosing_STK Value]) + Sum ([Intran_STK Value])) / (Sum ([Avg Value])/30),[Territory Name]) &amp;gt; 10) and &lt;/P&gt;&lt;P&gt;(Aggr((Sum ([CLosing_STK Value]) + Sum ([Intran_STK Value])) / (Sum ([Avg Value])/30),[Territory Name]) &amp;lt;= 30),1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&amp;nbsp; Inventory &amp;gt; 30 Days&lt;/P&gt;&lt;P&gt;sum(if(Aggr((Sum ([CLosing_STK Value]) + Sum ([Intran_STK Value])) / (Sum ([Avg Value])/30),[Territory Name]) &amp;gt; 30,1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression No.2 and 3 are displaying correct value whereas Expression 1 does not.&amp;nbsp; It shows a higher value.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am i doing something wrong ?&amp;nbsp; Is there any other way to display the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 05:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function-wrong-output/m-p/512238#M191403</guid>
      <dc:creator />
      <dc:date>2014-01-15T05:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function - wrong output</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function-wrong-output/m-p/512239#M191404</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'm not sure that understand what you mean completely but I test it on some sample data and it works correctly&lt;/P&gt;&lt;P&gt;but maybe my attachment helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/51528_1.JPG.jpg" style="width: 620px; height: 465px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 06:34:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function-wrong-output/m-p/512239#M191404</guid>
      <dc:creator />
      <dc:date>2014-01-15T06:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function - wrong output</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function-wrong-output/m-p/512240#M191405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Behnaz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you reply.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue was - it was counting Null value also, which is in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; 'Inventory &amp;lt;= 10 Days&lt;/SPAN&gt;'.&amp;nbsp;&amp;nbsp; I need to count the values which are Zero.&amp;nbsp; But not&amp;nbsp; which are NULL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 06:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function-wrong-output/m-p/512240#M191405</guid>
      <dc:creator />
      <dc:date>2014-01-15T06:50:29Z</dc:date>
    </item>
  </channel>
</rss>

