<?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: Expression for getting December month value for previous Year? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91750#M751815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you making selections when you are viewing this? Selection in Snapshot_Date? May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only({&amp;lt;Year = {'$(vPreYear)'} , Month = {'$(vPreYearLastMonth)'}, Cost_Code = {'3'}, Snapshot_Date = &amp;gt;} Aggr(NODISTINCT Sum({&amp;lt;Year = {'$(vPreYear)'} , Month = {'$(vPreYearLastMonth)'}, Cost_Code = {'3'}, Snapshot_Date = &amp;gt;}Updated_OEC_Budget) , [Cost_Area]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL &amp;lt;Cost_Area&amp;gt; {&amp;lt;Year = {'$(vPreYear)'} , Month = {'$(vPreYearLastMonth)'}, Cost_Code = {'3'}, Snapshot_Date = &amp;gt;}Updated_OEC_Budget)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2018 18:51:17 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-10-30T18:51:17Z</dc:date>
    <item>
      <title>Expression for getting December month value for previous Year?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91743#M751808</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 have a table as shown below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217104_1.PNG" style="height: 296px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;selecting December month data of previous year for all the months for &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;As Sold Upd OEC (Baseline)&lt;/STRONG&gt; is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr(NODISTINCT Sum({&amp;lt;Year = {$(vPreYear)} , Month = {$(vPreYearLastMonth)},&amp;nbsp; [Cost_Area] = {'Mechanical Engineering (labor + travel)'}, Snapshot_Date = &amp;gt;}Updated_OEC_Budget) , [Cost_Area])&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;What wrong am I doing here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708" target="_blank"&gt;stalwar1&lt;/A&gt;‌ Can you help me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated? thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91743#M751808</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for getting December month value for previous Year?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91744#M751809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a sample data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 15:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91744#M751809</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-10-30T15:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for getting December month value for previous Year?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91745#M751810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the qvw and qvd for your reference. &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, 30 Oct 2018 15:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91745#M751810</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2018-10-30T15:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for getting December month value for previous Year?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91746#M751811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you did not define the variables vPreYear and vPreYearLastMonth in the 'variable overview'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, there is no Updated_OEC_Budget for 'Mechanical Engineering (Labor+Travel)' cost area.&lt;/P&gt;&lt;P&gt;Check out the attached file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 16:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91746#M751811</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-10-30T16:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for getting December month value for previous Year?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91747#M751812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/210420"&gt;neelamsaroha1575&lt;/A&gt;‌, there is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Updated_OEC_Budget f&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;or 'Mechanical Engineering (Labor+Travel)' as shown &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;IMG alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217123_1.PNG" style="height: 197px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 18:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91747#M751812</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2018-10-30T18:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for getting December month value for previous Year?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91748#M751813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like there was error in the spelling of Cost_Area value. now its working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 18:31:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91748#M751813</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-10-30T18:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for getting December month value for previous Year?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91749#M751814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right it is working. But when I try to create the same expression in my Original application it is still blank. I have added variables also in the Settings -&amp;gt; Variable Overview. Is there anything else you did? thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 18:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91749#M751814</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2018-10-30T18:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for getting December month value for previous Year?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91750#M751815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you making selections when you are viewing this? Selection in Snapshot_Date? May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only({&amp;lt;Year = {'$(vPreYear)'} , Month = {'$(vPreYearLastMonth)'}, Cost_Code = {'3'}, Snapshot_Date = &amp;gt;} Aggr(NODISTINCT Sum({&amp;lt;Year = {'$(vPreYear)'} , Month = {'$(vPreYearLastMonth)'}, Cost_Code = {'3'}, Snapshot_Date = &amp;gt;}Updated_OEC_Budget) , [Cost_Area]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL &amp;lt;Cost_Area&amp;gt; {&amp;lt;Year = {'$(vPreYear)'} , Month = {'$(vPreYearLastMonth)'}, Cost_Code = {'3'}, Snapshot_Date = &amp;gt;}Updated_OEC_Budget)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 18:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91750#M751815</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-30T18:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for getting December month value for previous Year?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91751#M751816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ Yes, I am filtering using Snapshot_Date, I have used the expressions which are not giving the desired result.&lt;/P&gt;&lt;P&gt;Attached are the qvw, qvd for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Bhavesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 19:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91751#M751816</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2018-10-30T19:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for getting December month value for previous Year?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91752#M751817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your variables have no value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217131_Capture.PNG" style="height: 191px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 19:17:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91752#M751817</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-30T19:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for getting December month value for previous Year?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91753#M751818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have declared the variables in the back script as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vPreYear =Year(YearEnd(AddYears(max(Snapshot_Date),-1)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vPreYearLastMonth =Month(YearEnd(AddYears(max(Snapshot_Date),-1)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this something wrong in setting the variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="217132" alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217132_1.PNG" style="height: 229px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 19:19:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91753#M751818</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2018-10-30T19:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for getting December month value for previous Year?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91754#M751819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vPreYear = '=Year(YearEnd(AddYears(max(Snapshot_Date),-1)))';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vPreYearLastMonth = '=Num(Month(YearEnd(AddYears(max(Snapshot_Date),-1))))';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use this expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL &amp;lt;Cost_Area&amp;gt; {&amp;lt;Year = {'$(vPreYear)'} , &lt;SPAN style="color: #ff0000;"&gt;Num_Month&lt;/SPAN&gt; = {'$(vPreYearLastMonth)'}, Cost_Code = {'3'}, Snapshot_Date = &amp;gt;}Updated_OEC_Budget)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 19:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91754#M751819</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-30T19:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expression for getting December month value for previous Year?</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91755#M751820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome it worked. Thank you Sunny &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. I understood what should I do now &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 19:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-for-getting-December-month-value-for-previous-Year/m-p/91755#M751820</guid>
      <dc:creator>bhaveshp90</dc:creator>
      <dc:date>2018-10-30T19:29:19Z</dc:date>
    </item>
  </channel>
</rss>

