<?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 to sum sales by year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754741#M1043388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An other way to solve it, is to use the aggr-Function. Create a Pivot-Table with the two Dimensions Dept. and Year. The Expression will be:&amp;nbsp; aggr(Sum(sales), Year, Dept)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Dec 2014 14:21:04 GMT</pubDate>
    <dc:creator>emkabi646</dc:creator>
    <dc:date>2014-12-02T14:21:04Z</dc:date>
    <item>
      <title>How to sum sales by year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754732#M1043379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am creating a straight table similar to the one below. and I want to pre-calculate sales by year for last 3 years. My fact table has transactional sales, one of the fields is date. what function do I use so that I get sum of sales for each year as a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sum of sales by year.PNG.png" class="jive-image" src="/legacyfs/online/72483_sum of sales by year.PNG.png" /&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="68.18181824684143" style="border: 1px solid rgb(0, 0, 0); width: 49.1818182468414px; height: 11.1818182468414px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;P&gt;&lt;STRONG&gt;Heade&lt;/STRONG&gt;&lt;/P&gt;&lt;/TH&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 21:43:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754732#M1043379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-01T21:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum sales by year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754733#M1043380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that you need?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="p05.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/72480_p05.png" style="width: 620px; height: 225px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 21:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754733#M1043380</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2014-12-01T21:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum sales by year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754734#M1043381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or this?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="p05.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/72481_p05.png" style="width: 620px; height: 450px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 21:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754734#M1043381</guid>
      <dc:creator>ecolomer</dc:creator>
      <dc:date>2014-12-01T21:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum sales by year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754735#M1043382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may want to start dipping your feet into Set Analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the syntax if I am understanding correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 1 = Sum({&amp;lt;Year={&amp;gt;=$(=Max(Year(DATEFIELD))}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;Expression 2 = Sum({&amp;lt;Year={&amp;gt;=$(=Max(Year(DATEFIELD)-1)}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;Expression 3 = Sum({&amp;lt;Year={&amp;gt;=$(=Max(Year(DATEFIELD)-2)}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 22:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754735#M1043382</guid>
      <dc:creator />
      <dc:date>2014-12-01T22:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum sales by year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754736#M1043383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone. sorry it was not very clear what I was trying to explain. I am trying to create a straight table where I have probably 50 departments (which is my dimension, the image attached is just a sample). the transaction table has records for period between 2011 and 2013. If i do sum(Total Sales Receipts), it will lump the total sale from 2011 - 2013 in 1 column -- as in image 1 below. I want the sales for each department to be split in 3 diff years as in image below. So what should be my AGGR function, (i guess) to make that happen&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Excel1.PNG.png" class="jive-image" height="446" src="https://community.qlik.com/legacyfs/online/72484_Excel1.PNG.png" style="width: 414px; height: 445.846153846154px;" width="415" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG alt="excel2.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/72495_excel2.PNG.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 23:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754736#M1043383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-01T23:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to sum sales by year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754737#M1043384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 05:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754737#M1043384</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-02T05:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to sum sales by year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754738#M1043385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anbu, where is the app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 13:27:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754738#M1043385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-02T13:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: How to sum sales by year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754739#M1043386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am able to see the app. I am attaching again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 13:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754739#M1043386</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-02T13:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum sales by year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754740#M1043387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i can not open the qvw file. can you post the script here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 14:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754740#M1043387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-02T14:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum sales by year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754741#M1043388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An other way to solve it, is to use the aggr-Function. Create a Pivot-Table with the two Dimensions Dept. and Year. The Expression will be:&amp;nbsp; aggr(Sum(sales), Year, Dept)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 14:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754741#M1043388</guid>
      <dc:creator>emkabi646</dc:creator>
      <dc:date>2014-12-02T14:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum sales by year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754742#M1043389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Dept,Year,Sales&lt;/P&gt;&lt;P&gt;A,2011,100&lt;/P&gt;&lt;P&gt;A,2012,200&lt;/P&gt;&lt;P&gt;A,2013,300&lt;/P&gt;&lt;P&gt;B,2011,100&lt;/P&gt;&lt;P&gt;B,2012,200&lt;/P&gt;&lt;P&gt;B,2013,300 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: Dept&lt;/P&gt;&lt;P&gt;Expr1: Sum({&amp;lt;Year={2011}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;Expr2: Sum({&amp;lt;Year={2012}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;Expr3: Sum({&amp;lt;Year={2013}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="144200.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/72552_144200.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 14:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754742#M1043389</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-02T14:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum sales by year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754743#M1043390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Anbu. Your solution worked perfectly!!!&lt;/P&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have posted 2 images below: 1st as Anbu suggested, solved the problem. AGGR, however did not bring the desired result, which is in the 2nd image. I have included a 3rd image to show how my fact table is. because it is a lil different,(look at the date field) it is not putting the values in 3 separate year fields. I want to learn how to solve this using AGGR. I appreciate your help very much. Please comment.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="excel1.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/72560_excel1.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="excel2.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/72561_excel2.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="excel3.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/72562_excel3.PNG.png" style="width: 620px; height: 129px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 16:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754743#M1043390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-02T16:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum sales by year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754744#M1043391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this video to change your pivot table to display years in columns&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=txgHKIoPQRM"&gt;https://www.youtube.com/watch?v=txgHKIoPQRM&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 05:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754744#M1043391</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-03T05:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to sum sales by year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754745#M1043392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anbu, I was able to split sales into 3 years, thanks to the link above. However I have ran into diff issues this time. the image below represents my pivot table: for every department where there are more than 1 vendor, the subtotal is not showing totals for that category. For departments with only 1 vendor, it is showing subtotal (which is pointless). May be you can see what I am doing wrong. I have checked the partial sum box but its not working.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Pivot Issues.PNG.png" class="jive-image" src="/legacyfs/online/72779_Pivot Issues.PNG.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 21:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754745#M1043392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-04T21:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to sum sales by year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754746#M1043393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should get sub-total. Can you post sample app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 05:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sum-sales-by-year/m-p/754746#M1043393</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-05T05:23:08Z</dc:date>
    </item>
  </channel>
</rss>

