<?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 Aggregate data on monthly basis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-data-on-monthly-basis/m-p/442623#M699031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'll appreciate your help on a issue I have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a transactions data which contains the fields: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date, Transation_Type, Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first date is 01/01/2002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to aggregate the transctions to be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to see the total amount at the end of each month for &lt;STRONG&gt;each Transaction_Type, &lt;/STRONG&gt;i.e&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;At the end of each month we should see the aggregated ammount of each Transaction_Type from 01/01/2002 (the 1st date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll appreciate you prompt advise on how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Dec 2012 14:20:58 GMT</pubDate>
    <dc:creator>david_ze</dc:creator>
    <dc:date>2012-12-17T14:20:58Z</dc:date>
    <item>
      <title>Aggregate data on monthly basis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-data-on-monthly-basis/m-p/442623#M699031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'll appreciate your help on a issue I have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a transactions data which contains the fields: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date, Transation_Type, Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first date is 01/01/2002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to aggregate the transctions to be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to see the total amount at the end of each month for &lt;STRONG&gt;each Transaction_Type, &lt;/STRONG&gt;i.e&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;At the end of each month we should see the aggregated ammount of each Transaction_Type from 01/01/2002 (the 1st date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll appreciate you prompt advise on how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 14:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-data-on-monthly-basis/m-p/442623#M699031</guid>
      <dc:creator>david_ze</dc:creator>
      <dc:date>2012-12-17T14:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate data on monthly basis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-data-on-monthly-basis/m-p/442624#M699032</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableName:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(Date) AS Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Date) AS Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date, &lt;/P&gt;&lt;P&gt;Transation_Type, &lt;/P&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;P&gt;FROM DataSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in your chart select Month and Transaction type as dimensions and Sum(Amount) as Expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 14:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-data-on-monthly-basis/m-p/442624#M699032</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-12-17T14:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate data on monthly basis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-data-on-monthly-basis/m-p/442625#M699033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could first aggregate your Values grouped by Month and Transaction_Type, then aggregate the MonthlyValues per TransactionType (or the other way round, should end up the same):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;INPUT:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Date(MakeDate(2011)+floor(RAND()*720)) as Date,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RAND()*10 as Value,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;chr(65+floor(RAND()*3)) as Transaction_Type&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AutoGenerate 250;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TMP:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD MonthEnd(Date) as Month, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Value) as MonthlyValue, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Transaction_Type &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident INPUT &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;group by Transaction_Type, MonthEnd(Date);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table INPUT;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RESULT:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD if(Peek(Transaction_Type)=Transaction_Type, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rangesum(peek(AggrMonthlyValue),MonthlyValue),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthlyValue) as AggrMonthlyValue,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Transaction_Type, Month &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;resident TMP order by Transaction_Type, Month asc;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table TMP;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 14:45:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-data-on-monthly-basis/m-p/442625#M699033</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-12-17T14:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate data on monthly basis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-data-on-monthly-basis/m-p/442626#M699034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks !&amp;nbsp;&amp;nbsp; It works very well...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 14:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-data-on-monthly-basis/m-p/442626#M699034</guid>
      <dc:creator>david_ze</dc:creator>
      <dc:date>2012-12-18T14:12:32Z</dc:date>
    </item>
  </channel>
</rss>

