<?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: How do include ALL dimension values even if they are null in Aggr? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-include-ALL-dimension-values-even-if-they-are-null-in/m-p/996906#M339118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;Sum(Aggr( If(Sum([Estimate Hours]) &amp;lt; 120, 1, 0)&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;+NullCount(Sum([Estimate Hours]))&lt;/STRONG&gt;&lt;/SPAN&gt;, Resource, Month))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Oct 2015 21:53:38 GMT</pubDate>
    <dc:creator>prabhu0505</dc:creator>
    <dc:date>2015-10-30T21:53:38Z</dc:date>
    <item>
      <title>How do include ALL dimension values even if they are null in Aggr?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-include-ALL-dimension-values-even-if-they-are-null-in/m-p/996903#M339115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am calculating the total budgeted hours for each person per month. In the statement below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr( If(Sum([Estimate Hours]) &amp;lt; 120, 1, 0), Resource, Month))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm counting the number of months where each resource had &amp;lt; 120 hours budgeted. This works fine &lt;SPAN style="text-decoration: underline;"&gt;for the months in which there is a forecast&lt;/SPAN&gt; but ignores the months in which there is no forecast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for example, if Month has values 1,2,3,4,5,6 defined and Joe has the following allocation (month, hours)&lt;/P&gt;&lt;P&gt;1, 100&lt;/P&gt;&lt;P&gt;2, 80&lt;/P&gt;&lt;P&gt;3, 160&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the result will be 2. It should be 5, because there was no forecast for months 4, 5, and 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this without adding a zero allocation for the missing months? I already have a table that defines all the months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 05:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-include-ALL-dimension-values-even-if-they-are-null-in/m-p/996903#M339115</guid>
      <dc:creator>lblumenfeld</dc:creator>
      <dc:date>2015-10-30T05:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do include ALL dimension values even if they are null in Aggr?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-include-ALL-dimension-values-even-if-they-are-null-in/m-p/996904#M339116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; text-decoration: line-through;"&gt;Sum( 6- Aggr( If(Sum([Estimate Hours]) &amp;gt;= 120, 1, 0), Resource, Month))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum( Aggr(Count(DISTINCT TOTAL Month)- Sum( Aggr( If(Sum([Estimated Hours]) &amp;gt;= 120, 1, 0), Resource, Month)), Resource))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 19:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-include-ALL-dimension-values-even-if-they-are-null-in/m-p/996904#M339116</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-30T19:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do include ALL dimension values even if they are null in Aggr?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-include-ALL-dimension-values-even-if-they-are-null-in/m-p/996905#M339117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that and it gave the incorrect count. I was able to figure it out. The expression below works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(DISTINCT TOTAL Month) - Alt(Sum(Aggr( If(Sum([Estimated Hours]) &amp;gt;= 120, 1, 0), Resource, Month)), 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 21:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-include-ALL-dimension-values-even-if-they-are-null-in/m-p/996905#M339117</guid>
      <dc:creator>lblumenfeld</dc:creator>
      <dc:date>2015-10-30T21:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do include ALL dimension values even if they are null in Aggr?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-include-ALL-dimension-values-even-if-they-are-null-in/m-p/996906#M339118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;Sum(Aggr( If(Sum([Estimate Hours]) &amp;lt; 120, 1, 0)&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;+NullCount(Sum([Estimate Hours]))&lt;/STRONG&gt;&lt;/SPAN&gt;, Resource, Month))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 21:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-include-ALL-dimension-values-even-if-they-are-null-in/m-p/996906#M339118</guid>
      <dc:creator>prabhu0505</dc:creator>
      <dc:date>2015-10-30T21:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do include ALL dimension values even if they are null in Aggr?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-include-ALL-dimension-values-even-if-they-are-null-in/m-p/996907#M339119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried my first or second solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first will not work, but the second should. And the second should also give a total value across all Resources (e.g. when used in a text box), while I think your solution will only work on the Resource's&amp;nbsp; dimension line or when you select a single Resource.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show a sample where my second solution returns incorrect values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Oct 2015 19:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-include-ALL-dimension-values-even-if-they-are-null-in/m-p/996907#M339119</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-31T19:37:51Z</dc:date>
    </item>
  </channel>
</rss>

