<?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: Help calculation between months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276514#M584265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your answers that gave me some ideas and a start of solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I achieved some results with "above" or a fixed number of set analysis but not completely as i would like the graph to be split in dimensions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added an example of what I am looking for and what i have achieved already with your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2011 09:52:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-17T09:52:00Z</dc:date>
    <item>
      <title>Help calculation between months</title>
      <link>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276509#M584260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to create a chart showing the evolution of a stock each month of a year.&lt;/P&gt;&lt;P&gt;Here is my table&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300; font-family: 'courier new', courier;"&gt;Month&amp;nbsp;&amp;nbsp; FTP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300; font-family: 'courier new', courier;"&gt;Jan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300; font-family: 'courier new', courier;"&gt;Feb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 150&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300; font-family: 'courier new', courier;"&gt;Mar&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 130&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300; font-family: 'courier new', courier;"&gt;Apr.&amp;nbsp;&amp;nbsp;&amp;nbsp; 160&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to use Set Analysis when a user selects a specific month, I can calculate the previous month value and then, the difference with selected month.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000080;"&gt;sum(FTP)-sum({$&amp;lt;MonthID={$(=Max(MonthID)-1)},Year=,Month=&amp;gt;}FTP)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If the user selects March it shows &lt;SPAN style="color: #003300;"&gt;-20 &lt;/SPAN&gt;(130-150)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this works only for &lt;SPAN style="text-decoration: underline;"&gt;one &lt;/SPAN&gt;month. If I want to display the values for twelve monthes (having Month as a dimension) it does not work. There seems to be some trouble between the set analysis using Month and the dimension of the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a way with crosstable and before, having Month as Dimension.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #000080;"&gt;Sum (FTP) - before(Sum (FTP))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This gives me the crosstable :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300; font-family: 'courier new', courier;"&gt;Jan&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Apr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #003300; font-family: 'courier new', courier;"&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this only works with a table. Not a chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I create a chart showing a bar for each month, and the bar being the difference between this month and previous month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help, because I am really stuck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 15:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276509#M584260</guid>
      <dc:creator />
      <dc:date>2011-08-16T15:34:57Z</dc:date>
    </item>
    <item>
      <title>Help calculation between months</title>
      <link>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276510#M584261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Alain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post a simple .qvw example as this sounds possible - I've done similar things in the past but for me to write the required script free-hand might be a bit much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt - Visual Analytics Ltd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 15:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276510#M584261</guid>
      <dc:creator>matt_crowther</dc:creator>
      <dc:date>2011-08-16T15:44:55Z</dc:date>
    </item>
    <item>
      <title>Help calculation between months</title>
      <link>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276511#M584262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will create a small example and add it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone&amp;nbsp; pointed me to the "Above" function so I am also trying it, but it seems to work only with on dimension in the graph. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 15:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276511#M584262</guid>
      <dc:creator />
      <dc:date>2011-08-16T15:54:56Z</dc:date>
    </item>
    <item>
      <title>Help calculation between months</title>
      <link>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276512#M584263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; The functions above(), previous() and before() work differently (or not at all) depending on whether you're working with a Pivot Table or a Straight Table (all charts bar the Pivot Table have a Straight Table that drives them apparently).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll keep an eye out for the example - my email notification doesn't work so if I don't respond straight away I'm not ignoring the issue!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt - Visual Analytics Ltd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 16:07:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276512#M584263</guid>
      <dc:creator>matt_crowther</dc:creator>
      <dc:date>2011-08-16T16:07:03Z</dc:date>
    </item>
    <item>
      <title>Help calculation between months</title>
      <link>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276513#M584264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Setup 12 set analysis expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last month to current month change:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;MonthID={$(=Max(MonthID))},Year=,Month=&amp;gt;}FTP)-sum({$&amp;lt;MonthID={$(=Max(MonthID)-1)},Year=,Month=&amp;gt;}FTP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prior months change:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;MonthID={$(=Max(MonthID)-1)},Year=,Month=&amp;gt;}FTP)-sum({$&amp;lt;MonthID={$(=Max(MonthID)-2)},Year=,Month=&amp;gt;}FTP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Repeat the above expression to take you back 12 months using =(max(MonthID)), =(max(MonthID)-1), etc... as your expression label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you a rolling 12 month chart that goes backwards from whichever month the user has selected. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 17:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276513#M584264</guid>
      <dc:creator />
      <dc:date>2011-08-16T17:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help calculation between months</title>
      <link>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276514#M584265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your answers that gave me some ideas and a start of solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I achieved some results with "above" or a fixed number of set analysis but not completely as i would like the graph to be split in dimensions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added an example of what I am looking for and what i have achieved already with your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2011 09:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276514#M584265</guid>
      <dc:creator />
      <dc:date>2011-08-17T09:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help calculation between months</title>
      <link>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276515#M584266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above function already helped me in creating the expected chart. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still cannot create a piled chart (Chart with two dimensions) and I have uploaded an example with what I am trying to do and what I managed to realize.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you a lot for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 11:49:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276515#M584266</guid>
      <dc:creator />
      <dc:date>2011-08-18T11:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help calculation between months</title>
      <link>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276516#M584267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attach is an example of the graph you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i created data islands with monthyear and the previous month year &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then changed a little bit the formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope its helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 12:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276516#M584267</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-08-18T12:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help calculation between months</title>
      <link>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276517#M584268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tested your solution and ... It works; Thanks a lot ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fact is now that I have to understand why and how &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 12:17:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-calculation-between-months/m-p/276517#M584268</guid>
      <dc:creator />
      <dc:date>2011-08-19T12:17:20Z</dc:date>
    </item>
  </channel>
</rss>

