<?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 Current value vs Last month &amp; Last Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-value-vs-Last-month-Last-Year/m-p/281684#M1183470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan, I found by myself what the solution is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I defined 3 months:&lt;/P&gt;&lt;P&gt;Curr_Mth='10.2011'&lt;/P&gt;&lt;P&gt;Last_Mth='9.2011'&lt;/P&gt;&lt;P&gt;Last_Yr='10.2010'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then, in the current vs last month % diff chart i used the expression,&lt;/P&gt;&lt;P&gt;=(sum(if(Period=$(Curr_Mth),varPrdVal)))/sum(if(Period=&lt;/P&gt;&lt;P&gt;$(Last_Mth),varPrdVal))-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the vs last year chart i did the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(sum(if(Period=&lt;/P&gt;$(Curr_Mth),varPrdVal)))/sum(if(Period=$(Last_Yr),varPrdVal))-1&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works, I'm happy for my first QV day &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Dec 2011 14:52:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-06T14:52:39Z</dc:date>
    <item>
      <title>Current value vs Last month &amp; Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-value-vs-Last-month-Last-Year/m-p/281681#M1183467</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;I'm only using QV since yesterday so most probably this is a newbie question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my db I have a month and year field, with some stockvalues. I made a period field :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(MakeDate(Year,Month),'MM-YYYY') AS Period, &lt;/STRONG&gt;which works fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, I use this period field now to build a "stock level per month" graph. This gives the following result (= I see what I want to see) :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/9255_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;But now I want to have 2 dashboard charts which gives me the % increase/decrease of &lt;/P&gt;&lt;P&gt;1. current month stocklevel vs last month, and &lt;/P&gt;&lt;P&gt;2. the current month stocklevel vs last year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so basically i want : &lt;STRONG&gt;sum(this period) / sum(last period) and sum(this period) / sum(same period last year). &lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="left: -10000px; overflow: hidden; width: 1px; position: absolute; top: 0px; height: 1px;"&gt;﻿&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the input guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 12:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-value-vs-Last-month-Last-Year/m-p/281681#M1183467</guid>
      <dc:creator />
      <dc:date>2011-12-06T12:24:40Z</dc:date>
    </item>
    <item>
      <title>Current value vs Last month &amp; Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-value-vs-Last-month-Last-Year/m-p/281682#M1183468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; well, i guess, most probably I'll have to keep a variable "Curr_Mth","Last_Mth" and "Last_Yr" and assign the right period to it, then I can do in my chart Curr_Mth / Last_Mth and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I don't know how to do this in QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 12:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-value-vs-Last-month-Last-Year/m-p/281682#M1183468</guid>
      <dc:creator />
      <dc:date>2011-12-06T12:31:02Z</dc:date>
    </item>
    <item>
      <title>Current value vs Last month &amp; Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-value-vs-Last-month-Last-Year/m-p/281683#M1183469</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;Can you uplaod the sample file with data.&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>Tue, 06 Dec 2011 14:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-value-vs-Last-month-Last-Year/m-p/281683#M1183469</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2011-12-06T14:29:17Z</dc:date>
    </item>
    <item>
      <title>Current value vs Last month &amp; Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Current-value-vs-Last-month-Last-Year/m-p/281684#M1183470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan, I found by myself what the solution is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I defined 3 months:&lt;/P&gt;&lt;P&gt;Curr_Mth='10.2011'&lt;/P&gt;&lt;P&gt;Last_Mth='9.2011'&lt;/P&gt;&lt;P&gt;Last_Yr='10.2010'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then, in the current vs last month % diff chart i used the expression,&lt;/P&gt;&lt;P&gt;=(sum(if(Period=$(Curr_Mth),varPrdVal)))/sum(if(Period=&lt;/P&gt;&lt;P&gt;$(Last_Mth),varPrdVal))-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the vs last year chart i did the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(sum(if(Period=&lt;/P&gt;$(Curr_Mth),varPrdVal)))/sum(if(Period=$(Last_Yr),varPrdVal))-1&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works, I'm happy for my first QV day &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 14:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-value-vs-Last-month-Last-Year/m-p/281684#M1183470</guid>
      <dc:creator />
      <dc:date>2011-12-06T14:52:39Z</dc:date>
    </item>
  </channel>
</rss>

