<?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 Need a hand with aggregation table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-a-hand-with-aggregation-table/m-p/223097#M75650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I removed it from the 'Group By' as you sugested.&lt;/P&gt;&lt;P&gt;But I'm confused about what you said about adding it to the 'LOAD' part. Isn;t it already part of the load part? What do you mean?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Apr 2010 08:54:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-23T08:54:10Z</dc:date>
    <item>
      <title>Need a hand with aggregation table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-a-hand-with-aggregation-table/m-p/223095#M75648</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 having some trouble with my aggregation table. I'm fairly new to QLikview, so perhaps I'm missing something.&lt;/P&gt;&lt;P&gt;I have a time-table which basicly has the 'last day of the month'.&lt;BR /&gt;[tLASTDAYOFMONTH]:&lt;BR /&gt;LastDayOfMonth, Month, Year&lt;/P&gt;&lt;P&gt;I also have a second table with which I want to join&lt;BR /&gt;[tINFOTABLE]:&lt;BR /&gt;ObjectID,&lt;BR /&gt;ValidFrom_DT,&lt;BR /&gt;ValidTo_DT,&lt;BR /&gt;ObjectType,&lt;BR /&gt;NumberOfObjects,&lt;/P&gt;&lt;P&gt;Now I've tried the following:&lt;BR /&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt; for each LastDayOfMonth in [tLASTDAYOFMONTH]&lt;BR /&gt;AggregationTable:&lt;BR /&gt;LOAD&lt;BR /&gt; ObjectType,&lt;BR /&gt; SUM ([NumberOfObjects]) AS [His.NumberOfObjects],&lt;BR /&gt;RESIDENT [tINFOTABLE]&lt;BR /&gt;WHERE&lt;BR /&gt; ValidFrom_DT&amp;lt; LastDayOfMonth&lt;BR /&gt; AND ValidTo_DT=&amp;gt; LastDayOfMonth&lt;BR /&gt;GROUP BY LastDayOfMonth , ObjectType;&lt;BR /&gt;next&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Error: Cannot Find LastDayOfMonth&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've also tried:&lt;BR /&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;LOAD&lt;BR /&gt; LastDayOfMonth&lt;BR /&gt; RESIDENT [tLASTDAYOFMONTH];&lt;BR /&gt; JOIN&lt;BR /&gt;LOAD etc. etc.&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Same error. What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 08:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-a-hand-with-aggregation-table/m-p/223095#M75648</guid>
      <dc:creator />
      <dc:date>2010-04-23T08:31:54Z</dc:date>
    </item>
    <item>
      <title>Need a hand with aggregation table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-a-hand-with-aggregation-table/m-p/223096#M75649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should erase LastDayOfMonth from your group by clause or, if you will need to have the LastDayOfMonth info in your table, add it in the LOAD part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 08:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-a-hand-with-aggregation-table/m-p/223096#M75649</guid>
      <dc:creator />
      <dc:date>2010-04-23T08:49:43Z</dc:date>
    </item>
    <item>
      <title>Need a hand with aggregation table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-a-hand-with-aggregation-table/m-p/223097#M75650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I removed it from the 'Group By' as you sugested.&lt;/P&gt;&lt;P&gt;But I'm confused about what you said about adding it to the 'LOAD' part. Isn;t it already part of the load part? What do you mean?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 08:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-a-hand-with-aggregation-table/m-p/223097#M75650</guid>
      <dc:creator />
      <dc:date>2010-04-23T08:54:10Z</dc:date>
    </item>
    <item>
      <title>Need a hand with aggregation table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-a-hand-with-aggregation-table/m-p/223098#M75651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I must add that the 'LastDayOfMonth' must be in the target table; Else I won't be able to produce a proper historic graph. (I'm converting the validFromDT-ValidToDT to a 'StatusOnDT' (LastDayOfMonthDT).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 08:56:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-a-hand-with-aggregation-table/m-p/223098#M75651</guid>
      <dc:creator />
      <dc:date>2010-04-23T08:56:20Z</dc:date>
    </item>
    <item>
      <title>Need a hand with aggregation table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-a-hand-with-aggregation-table/m-p/223099#M75652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone have a clue yet ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 12:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-a-hand-with-aggregation-table/m-p/223099#M75652</guid>
      <dc:creator />
      <dc:date>2010-04-23T12:32:06Z</dc:date>
    </item>
    <item>
      <title>Need a hand with aggregation table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-a-hand-with-aggregation-table/m-p/223100#M75653</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 think what is being referred to as including LastDayOfMonth in the LOAD statement is that you are looking to group against a column that is not being included in the query ... this woul dbe like trying to group on a field that is not included in a SELECT statement in SQL.&lt;/P&gt;&lt;P&gt;AggregationTable:&lt;BR /&gt;LOAD&lt;BR /&gt; ObjectType,&lt;BR /&gt; SUM ([NumberOfObjects]) AS [His.NumberOfObjects],&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LastDayOfMonth&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;BR /&gt;RESIDENT [tINFOTABLE]&lt;BR /&gt;WHERE&lt;BR /&gt; ValidFrom_DT&amp;lt; LastDayOfMonth&lt;BR /&gt; AND ValidTo_DT=&amp;gt; LastDayOfMonth&lt;BR /&gt;GROUP BY LastDayOfMonth , ObjectType;&lt;/P&gt;&lt;P&gt;I am not following your data structure completely but this is essentially what you would need to, I think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 13:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-a-hand-with-aggregation-table/m-p/223100#M75653</guid>
      <dc:creator />
      <dc:date>2010-04-23T13:59:40Z</dc:date>
    </item>
  </channel>
</rss>

