<?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 Growth comparison calculation against a previous period. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Growth-comparison-calculation-against-a-previous-period/m-p/214877#M68373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me set the scene....I've got a Sales Fact table with the standard Customer / Product / date etc fields and a related Calendar table with year / qtr / Month / date etc that describes our specific company fiscal calendar.&lt;/P&gt;&lt;P&gt;*The sales fact tables contains the date at the lowest level - 1st Jan 2011 / 2nd Jan 2011 etc.&lt;BR /&gt;* I can use the calendar table to aggregate the sales data by whatever period I have (Year / Qtr / Month)&lt;/P&gt;&lt;P&gt;But the challenge I put forward is I'd like to create a growth comparison calculation that takes the total month sales and compare it to the same month last year to determine the difference which I want to plot on a graph by month.&lt;/P&gt;&lt;P&gt;Any help would be useful&lt;/P&gt;&lt;P&gt;Cheers, Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Feb 2011 12:48:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-14T12:48:05Z</dc:date>
    <item>
      <title>Growth comparison calculation against a previous period.</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-comparison-calculation-against-a-previous-period/m-p/214877#M68373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me set the scene....I've got a Sales Fact table with the standard Customer / Product / date etc fields and a related Calendar table with year / qtr / Month / date etc that describes our specific company fiscal calendar.&lt;/P&gt;&lt;P&gt;*The sales fact tables contains the date at the lowest level - 1st Jan 2011 / 2nd Jan 2011 etc.&lt;BR /&gt;* I can use the calendar table to aggregate the sales data by whatever period I have (Year / Qtr / Month)&lt;/P&gt;&lt;P&gt;But the challenge I put forward is I'd like to create a growth comparison calculation that takes the total month sales and compare it to the same month last year to determine the difference which I want to plot on a graph by month.&lt;/P&gt;&lt;P&gt;Any help would be useful&lt;/P&gt;&lt;P&gt;Cheers, Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 12:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-comparison-calculation-against-a-previous-period/m-p/214877#M68373</guid>
      <dc:creator />
      <dc:date>2011-02-14T12:48:05Z</dc:date>
    </item>
    <item>
      <title>Growth comparison calculation against a previous period.</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-comparison-calculation-against-a-previous-period/m-p/214878#M68374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay,&lt;/P&gt;&lt;P&gt;I have done this by using the month as the dimension and using these expressions:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Sum({$&amp;lt;Year={$(=Max(Year))}&amp;gt;} sales)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;This will return the sales for the highest year within your selection only&lt;BR /&gt;&lt;BR /&gt;and for the next expression:&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Sum({$&amp;lt;Year={$(=Max(Year)-1)}&amp;gt;} sales)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;This will return the sales for the year before the highest year within your selection only&lt;BR /&gt;&lt;BR /&gt;Let me know if this is what you are looking for. &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 13:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-comparison-calculation-against-a-previous-period/m-p/214878#M68374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-14T13:22:11Z</dc:date>
    </item>
    <item>
      <title>Growth comparison calculation against a previous period.</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-comparison-calculation-against-a-previous-period/m-p/214879#M68375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dennis - great response and works a treat!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 17:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-comparison-calculation-against-a-previous-period/m-p/214879#M68375</guid>
      <dc:creator />
      <dc:date>2011-02-14T17:39:38Z</dc:date>
    </item>
    <item>
      <title>Growth comparison calculation against a previous period.</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-comparison-calculation-against-a-previous-period/m-p/214880#M68376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got another question....on similar lines.&lt;/P&gt;&lt;P&gt;I want to create a bar chart of sales by month with each bar representing the sum of the last 3 months. For example in the chart below, I'd like 2011-Feb to sum the sales of 2011-Feb / 2011-Jan and 2010-Dec&lt;BR /&gt;2011-Jan to sum the sales of 2011-Jan / 2010 Dec and 2010-Nov&lt;BR /&gt;etc...&lt;BR /&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;P&gt;Thanks, Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 10:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-comparison-calculation-against-a-previous-period/m-p/214880#M68376</guid>
      <dc:creator />
      <dc:date>2011-02-15T10:39:19Z</dc:date>
    </item>
    <item>
      <title>Growth comparison calculation against a previous period.</title>
      <link>https://community.qlik.com/t5/QlikView/Growth-comparison-calculation-against-a-previous-period/m-p/214881#M68377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi J.&lt;BR /&gt;&lt;BR /&gt;You can do this the same way but you can also work around this bij just ading the previous expresion to a new expression. I think it is a funny way to do this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is how it works:&lt;BR /&gt;&lt;BR /&gt;Dimension: MonthYear&lt;/P&gt;&lt;P&gt;Expression 1:&lt;BR /&gt;- Label : namelabel1&lt;BR /&gt;- Defination : sum(sales)&lt;/P&gt;&lt;P&gt;Expression 2:&lt;BR /&gt;- Label : labelname2&lt;BR /&gt;- Defination : sum(sales) +Above(namelabel1)&lt;BR /&gt;&lt;BR /&gt;Expression 3:&lt;BR /&gt;- Label : labelname3&lt;BR /&gt;- Defination : sum(sales) +Above(namelabel2)&lt;/P&gt;&lt;P&gt;If you make Expression1 and 2 invisiable (QV10 only) it will only show Expression 3.&lt;BR /&gt;&lt;BR /&gt;Down side of this is that the first months in your selection doesn't have an "above" but maybe it is helpful for you anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 13:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Growth-comparison-calculation-against-a-previous-period/m-p/214881#M68377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-15T13:36:07Z</dc:date>
    </item>
  </channel>
</rss>

