<?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: Aggregation won't work - why? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation-won-t-work-why/m-p/769799#M666763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date() is only a formating function the values aren't changed only their visibility-format. You need more something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;month(&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datum_LF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp; '-' &amp;amp; num(day(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datum_LF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), '00') as &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Monat_eindeutig_LF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;- Marcus&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Nov 2014 15:47:33 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2014-11-18T15:47:33Z</dc:date>
    <item>
      <title>Aggregation won't work - why?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-won-t-work-why/m-p/769798#M666760</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 an Excel_file with a date_field - quite simple.&lt;/P&gt;&lt;P&gt;I want to aggregate that - to not have one record per day, but one per month, where the months should be fformatted like &amp;gt; June-14, Aug-14 &amp;lt; etc.&lt;/P&gt;&lt;P&gt;So I have the following in my LOAD&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; DATE&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datum_LF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'MMM-YY') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Monat_eindeutig_LF &amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Then I have a RESIDENT LOAD where I just take the sum() of the costs (of all the days within that month) and I have a GROUP BY clause - I LOAD three fields from my first table, two cost_fields, both of which I sum up and that month_field - I don't take the date since that would mean grouping by day which doesn't make much sense.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&amp;lt;=&amp;gt; Still, after that, my table has just as many lines as before and about 28 instances of every value of the month_field - it was clearly not aggregated at all.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Can anybody tell me what I have done wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DataNibbler&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 15:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-won-t-work-why/m-p/769798#M666760</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-11-18T15:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation won't work - why?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-won-t-work-why/m-p/769799#M666763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date() is only a formating function the values aren't changed only their visibility-format. You need more something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;month(&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datum_LF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp; '-' &amp;amp; num(day(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datum_LF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), '00') as &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Monat_eindeutig_LF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;- Marcus&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 15:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-won-t-work-why/m-p/769799#M666763</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-11-18T15:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation won't work - why?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-won-t-work-why/m-p/769800#M666764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of &lt;/P&gt;&lt;P&gt;DATE(Datum_LF, 'MMM-YY') as Monat_eindeutig_LF &lt;/P&gt;&lt;P&gt;Try to use&lt;/P&gt;&lt;P&gt;DATE(MonthStart(Datum_LF), 'MMM-YY') as Monat_eindeutig_LF &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 15:54:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-won-t-work-why/m-p/769800#M666764</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-11-18T15:54:00Z</dc:date>
    </item>
  </channel>
</rss>

