<?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: How do i use variable's Value in sum of previous year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339566#M125312</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is max(year) working? You need to concentrate on that, this may be your problem. If year is not a number for QV, the results you get are wrong. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jul 2012 05:56:47 GMT</pubDate>
    <dc:creator>giakoum</dc:creator>
    <dc:date>2012-07-09T05:56:47Z</dc:date>
    <item>
      <title>How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339560#M125306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp; All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; How Do i use use variable's value for set analysis calculation in month &amp;amp; Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable is BSC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BSC = &lt;/P&gt;&lt;P&gt;sum((if(bil_bil_unit='2',(loa_rate*loa_act_wt)*1000,&lt;/P&gt;&lt;P&gt;//if(bil_bil_unit='3'or bil_bil_unit='2',((loa_rate*loa_act_wt)*1000),&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='3' and loa_rate&amp;gt;10 and loa_rate&amp;lt;100,(loa_rate*loa_act_wt)*1000,&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='3' or bil_bil_unit='5',(loa_rate*loa_act_wt),&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='8' or bil_bil_unit='9' /*or bil_bil_unit='10'*/ or bil_bil_unit='13' or bil_bil_unit='21',(loa_rate*loa_dlv_qty),&lt;/P&gt;&lt;P&gt;//if(bil_bil_unit='10' or itemproduct='9940208',((loa_rate*loa_act_wt)*1000),&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='27' and loa_dlv_qty&amp;gt;0,(loa_rate*loa_dlv_qty),&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='27' or bil_bil_unit='34' and loa_cal_wt&amp;gt;0,(loa_rate*loa_cal_wt),&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='27' or bil_bil_unit='34' and loa_act_wt&amp;gt;0,(loa_rate*loa_act_wt))))))))))&lt;/P&gt;&lt;P&gt; +&lt;/P&gt;&lt;P&gt;(sum((if(bil_bil_unit='10',(loa_rate*loa_dlv_qty)))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tha above formula working for max Year but not for previous year....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Year = Sum({$&amp;lt;year={$(=max(year))}&amp;gt;}BSC) // its working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prev Year = =Sum({$&amp;lt;year={$(=max(year)-1)}&amp;gt;}BSC) // giving wrong calculation, its showing me current year calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antony.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2012 08:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339560#M125306</guid>
      <dc:creator />
      <dc:date>2012-07-07T08:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339561#M125307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can ypu please attach a demo qvw application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Som&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2012 11:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339561#M125307</guid>
      <dc:creator>somenathroy</dc:creator>
      <dc:date>2012-07-07T11:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339562#M125308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Som,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I can not attach the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without sum how do i calcuate the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antony.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 05:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339562#M125308</guid>
      <dc:creator />
      <dc:date>2012-07-09T05:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339563#M125309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can any one help me to sort out this issue.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 05:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339563#M125309</guid>
      <dc:creator />
      <dc:date>2012-07-09T05:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339564#M125310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;put &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;max(year)-1&lt;/SPAN&gt; into a variable and let us know the result. is it what you expect it to be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 05:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339564#M125310</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-07-09T05:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339565#M125311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried but its not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 05:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339565#M125311</guid>
      <dc:creator />
      <dc:date>2012-07-09T05:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339566#M125312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is max(year) working? You need to concentrate on that, this may be your problem. If year is not a number for QV, the results you get are wrong. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 05:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339566#M125312</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-07-09T05:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339567#M125313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for qty im taking the same year field only...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;year={$(=max(year)-1)}&amp;gt;}Qty) - its working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= sum({$&amp;lt;year={$(=max(year)-1)}&amp;gt;}BSC) - its not working due to variable(BSC)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 06:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339567#M125313</guid>
      <dc:creator />
      <dc:date>2012-07-09T06:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339568#M125314</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;Please By Pass the year vaue first and then write the expression.&lt;/P&gt;&lt;P&gt;ex &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Sum({$&amp;lt;year = ,year={$(=max(year)-1)}&amp;gt;}BSC)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;i hope this will help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 06:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339568#M125314</guid>
      <dc:creator />
      <dc:date>2012-07-09T06:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339569#M125315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratibha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; its not working....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 06:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339569#M125315</guid>
      <dc:creator />
      <dc:date>2012-07-09T06:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339570#M125316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;year &lt;/SPAN&gt;=, Month=,Quarter=, &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;year &lt;/SPAN&gt;={$(=max(&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;max(year)&lt;/SPAN&gt;)-1)}&amp;gt;}&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;BSC&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as this is working for me,Include your month and Quarters or week in the by pass if u have any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also please check the year format that the max(year) is returning,is it same with year.&lt;/P&gt;&lt;P&gt;I hope your year is in YYYY format ,right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 06:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339570#M125316</guid>
      <dc:creator />
      <dc:date>2012-07-09T06:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339571#M125317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for your reply....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its not working....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;year in yyyy format only.... actually the problem is my above condition is working for Qty not BSC variable....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 07:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339571#M125317</guid>
      <dc:creator />
      <dc:date>2012-07-09T07:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339572#M125318</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;sum({$&amp;lt;year={$(=max(year))}&amp;gt;}&lt;/P&gt;&lt;P&gt;(if(bil_bil_unit='2',(loa_rate*loa_act_wt)*1000,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='3' and loa_rate&amp;gt;10 and loa_rate&amp;lt;100,(loa_rate*loa_act_wt)*1000,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='3' or bil_bil_unit='5',(loa_rate*loa_act_wt),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='8' or bil_bil_unit='9' or bil_bil_unit='13' or bil_bil_unit='21',(loa_rate*loa_dlv_qty),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='27' and loa_dlv_qty&amp;gt;0,(loa_rate*loa_dlv_qty),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='27' or bil_bil_unit='34' and loa_cal_wt&amp;gt;0,(loa_rate*loa_cal_wt),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='27' or bil_bil_unit='34' and loa_act_wt&amp;gt;0,(loa_rate*loa_act_wt))))))))))&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;(sum( {$&amp;lt;year={$(=max(year))}&amp;gt;} (if(bil_bil_unit='10',(loa_rate*loa_dlv_qty)))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for previous year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;year={$(=max(year)-1)}&amp;gt;}&lt;/P&gt;&lt;P&gt;(if(bil_bil_unit='2',(loa_rate*loa_act_wt)*1000,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='3' and loa_rate&amp;gt;10 and loa_rate&amp;lt;100,(loa_rate*loa_act_wt)*1000,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='3' or bil_bil_unit='5',(loa_rate*loa_act_wt),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='8' or bil_bil_unit='9' or bil_bil_unit='13' or bil_bil_unit='21',(loa_rate*loa_dlv_qty),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='27' and loa_dlv_qty&amp;gt;0,(loa_rate*loa_dlv_qty),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='27' or bil_bil_unit='34' and loa_cal_wt&amp;gt;0,(loa_rate*loa_cal_wt),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(bil_bil_unit='27' or bil_bil_unit='34' and loa_act_wt&amp;gt;0,(loa_rate*loa_act_wt))))))))))&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;(sum( {$&amp;lt;year={$(=max(year)-1)}&amp;gt;} (if(bil_bil_unit='10',(loa_rate*loa_dlv_qty)))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 11:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339572#M125318</guid>
      <dc:creator />
      <dc:date>2012-07-10T11:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339573#M125319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above condition is working perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the same calculation how do i do by using variable ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antony.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 11:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339573#M125319</guid>
      <dc:creator />
      <dc:date>2012-07-10T11:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339574#M125320</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;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'$(vPrevYear)'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount)&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 11:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339574#M125320</guid>
      <dc:creator />
      <dc:date>2012-07-10T11:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339575#M125321</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;The below mentioned code can be useful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;At first declare a variable by clicking Alt+Ctrl+V and name the variable as vPrevYear.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;vPrevYear = Year(Max(Year)-1) &lt;/SPAN&gt;&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;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'$(vPrevYear)'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount)&lt;/SPAN&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;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Koushik. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 11:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339575#M125321</guid>
      <dc:creator />
      <dc:date>2012-07-10T11:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339576#M125322</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;The below mentioned code can be useful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;At first declare a variable by clicking Alt+Ctrl+V and name the variable as vPrevYear.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;vPrevYear = Year(Max(Year)-1) &lt;/SPAN&gt;&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;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'$(vPrevYear)'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount)&lt;/SPAN&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;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Koushik. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 11:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339576#M125322</guid>
      <dc:creator />
      <dc:date>2012-07-10T11:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339577#M125323</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;The below mentioned code can be useful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;At first declare a variable by clicking Alt+Ctrl+V and name the variable as vPrevYear.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;vPrevYear = Year(Max(Year)-1) &lt;/SPAN&gt;&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;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'$(vPrevYear)'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount)&lt;/SPAN&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;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Koushik. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 11:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339577#M125323</guid>
      <dc:creator />
      <dc:date>2012-07-10T11:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do i use variable's Value in sum of previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339578#M125324</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;The below mentioned code can be useful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;At first declare a variable by clicking Alt+Ctrl+V and name the variable as vPrevYear.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;vPrevYear = Year(Max(Year)-1) &lt;/SPAN&gt;&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;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Koushik. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'$(vPrevYear)'}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount)&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 12:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-use-variable-s-Value-in-sum-of-previous-year/m-p/339578#M125324</guid>
      <dc:creator />
      <dc:date>2012-07-10T12:01:42Z</dc:date>
    </item>
  </channel>
</rss>

