<?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 Aggregating days to month sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregating-days-to-month-sum/m-p/733719#M675368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello dear community, i have a strange problem while using group by for the first time, maybe someone can pint me to the mistake i made. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The goal is, to aggregate all daily values which represent amounts that can be added (so, f.e. not temperatures) &lt;/P&gt;&lt;P&gt;So far, i found out, that aggregate does not work in the script. &lt;/P&gt;&lt;P&gt;Why would someone implement something, that only works in objects on the gui ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the alternative would be load with the "group by" option, which loads the data that should be aggregated through a resident load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview responds with an syntax error to the short load scrip below.&lt;/P&gt;&lt;P&gt;but if i remove &lt;/P&gt;&lt;P&gt;"sum(MV_Data) as MW_MonData" and correct the ",", i get the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Aggregation expressions required by GROUP BY clause"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values_Aggr_Month:&lt;/P&gt;&lt;P&gt;noconcatenate LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_SENS, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_VALUE,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // water, heating, electricity etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNIT,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // m3, kwh, liter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE_month,&amp;nbsp; // f.e. 201401&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NR_Building,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // MV_day,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // former number of the day, not used in this table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MV_Data,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // numerical content for ID_VALUE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(MV_Data) as MW_MonData // whats wrong whith this one ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT DaiylValues&lt;/P&gt;&lt;P&gt;group by DATE_month, ID_SENS;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions ? Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2014 11:50:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-23T11:50:08Z</dc:date>
    <item>
      <title>Aggregating days to month sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-days-to-month-sum/m-p/733719#M675368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello dear community, i have a strange problem while using group by for the first time, maybe someone can pint me to the mistake i made. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The goal is, to aggregate all daily values which represent amounts that can be added (so, f.e. not temperatures) &lt;/P&gt;&lt;P&gt;So far, i found out, that aggregate does not work in the script. &lt;/P&gt;&lt;P&gt;Why would someone implement something, that only works in objects on the gui ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the alternative would be load with the "group by" option, which loads the data that should be aggregated through a resident load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview responds with an syntax error to the short load scrip below.&lt;/P&gt;&lt;P&gt;but if i remove &lt;/P&gt;&lt;P&gt;"sum(MV_Data) as MW_MonData" and correct the ",", i get the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Aggregation expressions required by GROUP BY clause"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values_Aggr_Month:&lt;/P&gt;&lt;P&gt;noconcatenate LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_SENS, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_VALUE,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // water, heating, electricity etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNIT,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // m3, kwh, liter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE_month,&amp;nbsp; // f.e. 201401&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NR_Building,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // MV_day,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // former number of the day, not used in this table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MV_Data,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // numerical content for ID_VALUE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(MV_Data) as MW_MonData // whats wrong whith this one ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT DaiylValues&lt;/P&gt;&lt;P&gt;group by DATE_month, ID_SENS;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions ? Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 11:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-days-to-month-sum/m-p/733719#M675368</guid>
      <dc:creator />
      <dc:date>2014-07-23T11:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating days to month sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-days-to-month-sum/m-p/733720#M675369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to all fields to group by and remove MV_DATA field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values_Aggr_Month:&lt;/P&gt;&lt;P&gt;noconcatenate LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_SENS, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID_VALUE,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // water, heating, electricity etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UNIT,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // m3, kwh, liter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE_month,&amp;nbsp; // f.e. 201401&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NR_Building,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(MV_Data) as MW_MonData // whats wrong whith this one ?&lt;/P&gt;&lt;P&gt;RESIDENT DaiylValues&lt;/P&gt;&lt;P&gt;group by DATE_month, ID_SENS,ID_VALUE,UNIT,NR_Building;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 12:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-days-to-month-sum/m-p/733720#M675369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-23T12:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating days to month sum</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-days-to-month-sum/m-p/733721#M675370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whenever we do aggregation using group by, we have to add all the columns, which are to be shown, in group by clause except the column on which&amp;nbsp; aggregation is being done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load col1,clo2,clo3,sum(col4)&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;Tab1&lt;/P&gt;&lt;P&gt;group by&lt;/P&gt;&lt;P&gt;col1,col2,col3;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 12:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-days-to-month-sum/m-p/733721#M675370</guid>
      <dc:creator>mahesh_agrawal</dc:creator>
      <dc:date>2014-07-23T12:09:27Z</dc:date>
    </item>
  </channel>
</rss>

