<?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: Last year current month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502669#M187828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove '&amp;lt;' from you first expression.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;n1ef5ng1 wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Sum(&lt;/P&gt;&lt;P&gt;&amp;nbsp; {$&amp;lt;Line_Code={'ADV','MAL','AMT'},Derived_Status={'IMPT','EXPT'},Derived_Container_Class_Name={'LADEN'},Month_Id={"&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;lt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;= $(=Max(Month_Id))"},Year ={$(=Max(Year)-1)},Month=, Month_Year = &amp;gt;}TEU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2013 18:02:22 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-07-19T18:02:22Z</dc:date>
    <item>
      <title>Last year current month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502668#M187827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;I have a problem displaying out the last month. When a user select April 2013, I will have two expression that show April 2013 and April 2012. It will take the current month.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my expression for both of them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; Label : Only(Month) and Only(Year)-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&lt;/P&gt;&lt;P&gt;&amp;nbsp; {$&amp;lt;Line_Code={'ADV','MAL','AMT'},Derived_Status={'IMPT','EXPT'},Derived_Container_Class_Name={'LADEN'},Month_Id={"&amp;lt;= $(=Max(Month_Id))"},Year ={$(=Max(Year)-1)},Month=, Month_Year = &amp;gt;}TEU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ONLY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp; ' ' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ONLY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Line_Code={'ADV','MAL','AMT'},Derived_Status={'IMPT','EXPT'},Derived_Container_Class_Name={'LADEN'},Month_Id={$(=Max(Month_Id))},Year = ,Month=, Month_Year = &amp;gt;}&amp;nbsp; TEU)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Only(Month) and Only(Year), current year. i managed to get the value correctly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Only(Month) and Only(Year)-1, I get a YTD of Jan - Apr 2012 instead. I am actuallly looking for Apr 12 current month instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why is this so, thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 17:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502668#M187827</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2013-07-19T17:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Last year current month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502669#M187828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove '&amp;lt;' from you first expression.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;n1ef5ng1 wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Sum(&lt;/P&gt;&lt;P&gt;&amp;nbsp; {$&amp;lt;Line_Code={'ADV','MAL','AMT'},Derived_Status={'IMPT','EXPT'},Derived_Container_Class_Name={'LADEN'},Month_Id={"&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;lt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;= $(=Max(Month_Id))"},Year ={$(=Max(Year)-1)},Month=, Month_Year = &amp;gt;}TEU&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 18:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502669#M187828</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-07-19T18:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Last year current month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502670#M187829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what do u mean?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 18:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502670#M187829</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2013-07-19T18:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Last year current month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502671#M187830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is a '&amp;lt;' symbol before the smiling face(i inserted), remove that and try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 18:12:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502671#M187830</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-07-19T18:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Last year current month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502672#M187831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;doesn work though, my figure all became 0 after removing &amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 18:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502672#M187831</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2013-07-19T18:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Last year current month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502673#M187832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;DIV style="padding: 0px; min-height: 8pt;"&gt; &lt;/DIV&gt;&lt;DIV&gt;Sum(&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; {$&amp;lt;Line_Code={'ADV','MAL','AMT'},Derived_Status={'IMPT','EXPT'},Derived_Container_Class_Name={'LADEN'},Month_Id={" $(=Max(Month_Id))"},Year ={$(=Max(Year)-1)},Month=, Month_Year = &amp;gt;}TEU&lt;/DIV&gt;&lt;DIV style="padding: 0px; min-height: 8pt;"&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt; Try copy paste the above&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Update: sorry, missed the last parenthesis ')', please add that and try.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 18:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502673#M187832</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-07-19T18:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Last year current month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502674#M187833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still zero value, i not sure why. this coding should work too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why is it my previous coding will give me a ytd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 18:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502674#M187833</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2013-07-19T18:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Last year current month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502675#M187834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you put Month_Id= {"&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;lt;= &lt;/STRONG&gt;&lt;/SPAN&gt;$(=Max(Month_Id))"} ..... that means month would considred if that is LESS THAN or EQUAL TO, hence Jan to Apr all months. that is why if you remove the '&amp;lt;=' part it should give you the desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 18:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502675#M187834</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-07-19T18:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Last year current month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502676#M187835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay learnt something new thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;really clueless on why is the value not showing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 19:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502676#M187835</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2013-07-19T19:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Last year current month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502677#M187836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 19:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502677#M187836</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-07-19T19:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Last year current month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502678#M187837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok i will try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but anywhere this is my code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum(&lt;BR /&gt;&amp;nbsp; {$&amp;lt;Line_Code={'ADV','MAL','AMT'},Derived_Status={'IMPT','EXPT'},Derived_Container_Class_Name={'LADEN'},Month_Id={" $(=Max(Month_Id))"},Year ={$(=Max(Year)-1)},Month=, Month_Year = &amp;gt;}TEU&lt;/P&gt;&lt;P&gt;&amp;nbsp; /&lt;BR /&gt; Aggr(&lt;BR /&gt;&amp;nbsp; NODISTINCT &lt;BR /&gt;&amp;nbsp;&amp;nbsp; Sum(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;lt;Line_Code={'ADV','MAL','AMT'},Derived_Status={'IMPT','EXPT'},Derived_Container_Class_Name={'LADEN'},Month_Id={"$(=Mac(Month_Id))"},Year ={$(=Max(Year)-1)}, Month=, Month_Year = &amp;gt;}&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; TEU),Year&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 19:05:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502678#M187837</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2013-07-19T19:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Last year current month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502679#M187838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok i will try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but anywhere this is my code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum(&lt;BR /&gt;&amp;nbsp; {$&amp;lt;Line_Code={'ADV','MAL','AMT'},Derived_Status={'IMPT','EXPT'},Derived_Container_Class_Name={'LADEN'},Month_Id={" $(=Max(Month_Id))"},Year ={$(=Max(Year)-1)},Month=, Month_Year = &amp;gt;}TEU&lt;/P&gt;&lt;P&gt;&amp;nbsp; /&lt;BR /&gt; Aggr(&lt;BR /&gt;&amp;nbsp; NODISTINCT &lt;BR /&gt;&amp;nbsp;&amp;nbsp; Sum(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;lt;Line_Code={'ADV','MAL','AMT'},Derived_Status={'IMPT','EXPT'},Derived_Container_Class_Name={'LADEN'},Month_Id={"$(=Mac(Month_Id))"},Year ={$(=Max(Year)-1)}, Month=, Month_Year = &amp;gt;}&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; TEU),Year&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 19:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502679#M187838</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2013-07-19T19:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Last year current month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502680#M187839</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;Look on you expression, found something wrong&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;n1ef5ng1 wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok i will try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but anywhere this is my code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Sum(&lt;BR /&gt;&amp;nbsp; {$&amp;lt;Line_Code={'ADV','MAL','AMT'},Derived_Status={'IMPT','EXPT'},Derived_Container_Class_Name={'LADEN'},Month_Id={" $(=Max(Month_Id))"},Year ={$(=Max(Year)-1)},Month=, Month_Year = &amp;gt;}TEU &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;) // Missing bracket&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /&lt;BR /&gt; Aggr(&lt;BR /&gt;&amp;nbsp; NODISTINCT &lt;BR /&gt;&amp;nbsp;&amp;nbsp; Sum(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;lt;Line_Code={'ADV','MAL','AMT'},Derived_Status={'IMPT','EXPT'},Derived_Container_Class_Name={'LADEN'},Month_Id={"$(=&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Mac&lt;/STRONG&gt;&lt;/SPAN&gt;(Month_Id))"},Year ={$(=Max(Year)-1)}, Month=, Month_Year = &amp;gt;}&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; TEU),Year&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;) // Should take it out&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Now let try:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Line_Code={'ADV','MAL','AMT'},Derived_Status={'IMPT','EXPT'},Derived_Container_Class_Name={'LADEN'},Month_Id={$(=Max(Month_Id))},Year ={$(=Max(Year)-1)},Month=, Month_Year = &amp;gt;} TEU)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp; NODISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;lt;Line_Code={'ADV','MAL','AMT'},Derived_Status={'IMPT','EXPT'},Derived_Container_Class_Name=&amp;nbsp;&amp;nbsp;&amp;nbsp; {'LADEN'},Month_Id={$(=Max(Month_Id))},Year ={$(=Max(Year)-1)}, Month=, Month_Year = &amp;gt;} TEU)&lt;/P&gt;&lt;P&gt;,Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jul 2013 02:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502680#M187839</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-07-20T02:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Last year current month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502681#M187840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the whole expression is invalid when i paste the code that you gave.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 00:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502681#M187840</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2013-07-22T00:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Last year current month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502682#M187841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have u tried decomposing your expressions into short one first&lt;/P&gt;&lt;P&gt;like showing the Sum part and Aggr part in separate expressions, removing part of the set conditions?&lt;/P&gt;&lt;P&gt;can u still get the expected result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 06:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502682#M187841</guid>
      <dc:creator>laujerry</dc:creator>
      <dc:date>2013-07-22T06:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Last year current month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502683#M187842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried, sum was correct. Aggr actually display YTD for 2013 and not last year, 2012&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 06:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502683#M187842</guid>
      <dc:creator>n1ef5ng1</dc:creator>
      <dc:date>2013-07-22T06:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Last year current month</title>
      <link>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502684#M187843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u want lastyear current month and current date &lt;/P&gt;&lt;P&gt;u can write like in ur expression&lt;/P&gt;&lt;P&gt;year(today())-1,month(today()),day(today())&lt;/P&gt;&lt;P&gt;this will give lastyear,currentmonth, currentdate&lt;/P&gt;&lt;P&gt;eg::&lt;/P&gt;&lt;P&gt;22:7:2017 instead of this it will give&lt;/P&gt;&lt;P&gt;2:7:2012 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 06:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-year-current-month/m-p/502684#M187843</guid>
      <dc:creator>nizamsha</dc:creator>
      <dc:date>2013-07-22T06:39:44Z</dc:date>
    </item>
  </channel>
</rss>

