<?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 to declare a variable ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401050#M797305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have a look &lt;A href="http://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/Scripting/DateAndTimeFunctions/addyears.htm" title="http://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/Scripting/DateAndTimeFunctions/addyears.htm"&gt;addyears - script and chart function ‒ Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Dec 2017 06:19:29 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-12-14T06:19:29Z</dc:date>
    <item>
      <title>how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401049#M797304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I want to compare two years sale ie the current year should be the 2017 and prev year should be either 2016,2015 or any other year less that 2017&lt;/P&gt;&lt;P&gt;so in my script i have declared my variable as :-&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 11.0pt; font-family: 'Courier New';"&gt;Let&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt;"&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;currentdate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt; =&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(1)-1,'YYYYMMDD');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 11.0pt; font-family: 'Courier New';"&gt;Let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;Curr_Year&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;let prev_year=..............&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;createdate is a column in database &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: maroon;"&gt;CreateDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;, 'YYYYMMDD') &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: maroon;"&gt;Sold_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: maroon;"&gt;CreateDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;, 'YYYYMMDD')) &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: maroon;"&gt;Sold_Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: maroon;"&gt;CreateDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;, 'YYYYMMDD')) &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: maroon;"&gt;Sold_Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;in my expression i have expression for prev_year and curr_year &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;curr_year expression:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;( &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: maroon;"&gt;Sold_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;MakeDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;Curr_Year&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;To&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;day&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;To&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: maroon;"&gt;Sold_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;MakeDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;Curr_Year&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;From&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;day&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;From&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;)),&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: maroon;"&gt;[inv value]&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;))/&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;Sales_INR_Unit&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; '#,##0.0')&lt;BR /&gt; &lt;BR /&gt;for prev_year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;( &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: maroon;"&gt;Sold_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;MakeDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;Prev_Year&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;To&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;day&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;To&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: maroon;"&gt;Sold_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;MakeDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;Prev_Year&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;From&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;day&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;From&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;)),&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: maroon;"&gt;[inv value]&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;))/&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;Sales_INR_Unit&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; '#,##0.0')&lt;BR /&gt; &lt;BR /&gt; Now what all changes are required for prev_year expressions? and for prev_year variable declration????????&lt;/SPAN&gt; &lt;/SPAN&gt;&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/how-to-declare-a-variable/m-p/1401049#M797304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401050#M797305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have a look &lt;A href="http://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/Scripting/DateAndTimeFunctions/addyears.htm" title="http://help.qlik.com/en-US/sense/September2017/Subsystems/Hub/Content/Scripting/DateAndTimeFunctions/addyears.htm"&gt;addyears - script and chart function ‒ Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 06:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401050#M797305</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-14T06:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401051#M797306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But how to use this in my script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 06:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401051#M797306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T06:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401052#M797307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not like below&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;LET prev_year= AddYears(Your Intend, -1);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 06:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401052#M797307</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-14T06:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401053#M797308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but i think it will give me result as 2016&lt;/P&gt;&lt;P&gt;but i want on input of&amp;nbsp; a year&amp;nbsp; in input box, the chart should start showing the appropriate result &lt;/P&gt;&lt;P&gt;for eg if i input 2015 in input box&amp;nbsp; the results should be shown on chart &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 07:07:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401053#M797308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T07:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401054#M797309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True, You can simply the expression like Variable as Input box and call that variable in Front End of each Report until unless it won't. That means little in detail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET Var = Max(Year);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, In your list box it has Var as "&lt;STRONG&gt;Used Variables&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then, the analysis need to be changes as per input from customer. So you have to enable like&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year = {&lt;STRONG&gt;$(=Var)&lt;/STRONG&gt;}&amp;gt;} Sales) // this deserve, If we add manually input from input box..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it make sense..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 07:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401054#M797309</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-14T07:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401055#M797310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not functioning &lt;/P&gt;&lt;P&gt;i have used&amp;nbsp; &lt;/P&gt;&lt;P&gt;Let Prev_Year = AddYears(Date,2);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 07:14:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401055#M797310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T07:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401056#M797311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's consider Date has 12/12/2017, 11/12/2017..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How and Which Date field picks to go backward.. That means, you have to use Max() and Min() to get into work.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Note - If none of them make sense for you i would suggest please come up with example and explain same as needed&lt;/EM&gt;&lt;/STRONG&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 07:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401056#M797311</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-14T07:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401057#M797312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;now how to use max iand min in sa,me above varialable declaration?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 07:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401057#M797312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T07:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401058#M797313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure, Your thread is different and your conclusion is different. May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let Prev_Max_Year = Date(AddYears(Max(Date),2));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let Prev_Min_Year = Date(AddYears(Min(Date),2));&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 08:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401058#M797313</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-14T08:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401059#M797314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its giving an error &lt;/P&gt;&lt;P&gt;syntax error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 08:56:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401059#M797314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T08:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401060#M797315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you've done? Can you share image?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 08:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401060#M797315</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-14T08:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401061#M797316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="abccccccccccccccccccc.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186938_abccccccccccccccccccc.png" style="height: 280px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Let Prev_Year = AddYears('2017-10-12',-2);&lt;/P&gt;&lt;P&gt;when i am using this in variable &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 09:18:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401061#M797316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T09:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401062#M797317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you shown is working? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 09:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401062#M797317</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-14T09:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401063#M797318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;now yo want me to use these variables instead of these?&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 11.0pt; font-family: 'Courier New';"&gt;Let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;currentdate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt; =&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(1)-1,'YYYYMMDD');&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 11.0pt; font-family: 'Courier New';"&gt;Let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;Curr_Year&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;());&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 11.0pt; font-family: 'Courier New';"&gt;Let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 11.0pt; font-family: 'Courier New';"&gt;Prev_Year&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt; = (&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: blue;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Courier New'; color: black;"&gt;())-1);&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 09:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401063#M797318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T09:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401064#M797319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;variable used in text box is working but charts are not showing results, it can be seen in image &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 09:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401064#M797319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T09:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401065#M797320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes? You can play with that your needed. Because, Still 100's reply are not helpful if thread owner not explaining clear and needed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 09:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401065#M797320</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-14T09:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401066#M797321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually i dont want entire date. i only want year to like instead of 10/12/2015. i want only 2015 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 09:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401066#M797321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T09:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401067#M797322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How come i know what expression you attempt?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 09:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401067#M797322</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-14T09:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to declare a variable ?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401068#M797323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What we try everything available from &lt;A href="http://qlikviewcookbook.com/" title="http://qlikviewcookbook.com/"&gt;Qlikview Cookbook | Recipes for Qlikview Success&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 09:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-declare-a-variable/m-p/1401068#M797323</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-14T09:27:26Z</dc:date>
    </item>
  </channel>
</rss>

