<?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: Variable error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194962#M874917</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;Attached is the sample application and source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here please check the table month and year label now it is static like based on filter selection it won't reflect but we need this as dynamic,suppose if we select any month the same would be reflect in the table lable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2016 11:43:47 GMT</pubDate>
    <dc:creator>nareshthavidishetty</dc:creator>
    <dc:date>2016-10-27T11:43:47Z</dc:date>
    <item>
      <title>Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194930#M874885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created an variable in script but it is showing an script error,but i have tested the same in text object its working fing fine.&lt;/P&gt;&lt;P&gt;Please find the below error.&lt;/P&gt;&lt;P&gt;Variable : &lt;STRONG&gt;let vCurr_Month_Year = month(monthstart(max(ActivityDate-1)))&amp;amp;' '&amp;amp;(year(max(ActivityDate-1)));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142004_Untitled.png" style="height: 237px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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/Variable-error/m-p/1194930#M874885</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194931#M874886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it would work in the UI but not in the script. Let me explain why. The problem is &lt;STRONG&gt;max() &lt;/STRONG&gt;in your expression. You can't use any field using aggregation function in variable declaration in the script like that. They can only be used in a load statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;You may rather try something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(AcivityDate) as Max&lt;STRONG&gt;D&lt;/STRONG&gt;ate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;From &amp;lt;&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Let vMaxDate=Num(Peek(MaxDate))-1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;let vCurr_Month_Year = month(monthstart(&lt;STRONG&gt;$(&lt;SPAN style="font-size: 13.3333px;"&gt;vMaxDate&lt;/SPAN&gt;)&lt;/STRONG&gt;)&amp;amp;' '&amp;amp;(year(&lt;STRONG&gt;$(&lt;SPAN style="font-size: 13.3333px;"&gt;vMaxDate&lt;/SPAN&gt;)&lt;/STRONG&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Edit: Corrected the field name&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 12:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194931#M874886</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-10-26T12:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194932#M874887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your intend to show?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 12:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194932#M874887</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-10-26T12:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194933#M874888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try with SET instead of let:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;STRONG style="color: #ff0000;"&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; vCurr_Month_Year = month(monthstart(max(ActivityDate-1)))&amp;amp;' '&amp;amp;(year(max(ActivityDate-1)));&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 12:04:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194933#M874888</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-26T12:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194934#M874889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activate date is&amp;nbsp; not use directly in let function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do one thing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create two variables in front end:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;vA1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;month&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;monthstart&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;$(&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;vMax&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;)-1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;vA2&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;year&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;date&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;$(&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;vMax&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;))-1;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;Then open text box object use below expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif;"&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial, sans-serif;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: Arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;EM&gt;vA&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: Arial, sans-serif;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: Arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;EM&gt;vB&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-family: Arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif;"&gt; It will working fine&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; font-size: medium;"&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif;"&gt;Gireesh&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 12:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194934#M874889</guid>
      <dc:creator>gireesh1216</dc:creator>
      <dc:date>2016-10-26T12:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194935#M874890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This function also not working...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 12:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194935#M874890</guid>
      <dc:creator>gireesh1216</dc:creator>
      <dc:date>2016-10-26T12:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194936#M874891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think set wont help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 12:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194936#M874891</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2016-10-26T12:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194937#M874892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have corrected the field name in the post above. Now give a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 12:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194937#M874892</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-10-26T12:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194938#M874893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Create three variables in front end using variable overview&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;vA&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;monthstart&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;$(&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;vMax&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: gray;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;)-1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; color: gray;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;vA&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; color: blue;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; color: blue;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; color: gray;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;$(&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; color: gray;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;vMax&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; color: gray;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt;"&gt;))-1;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-weight: inherit; font-size: 9pt; font-family: Arial, sans-serif;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vCurr_Month_Year &lt;/STRONG&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: gray;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;vA&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-weight: inherit; font-size: 9pt; font-family: Arial, sans-serif;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-weight: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: gray;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;vB&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-style: inherit; font-family: Arial, sans-serif; font-weight: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: gray; font-size: 9pt; font-style: inherit; font-family: Arial, sans-serif; font-weight: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;Then open text box object use below expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: medium; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; color: #000000;"&gt;=&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vCurr_Month_Year &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: medium; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: medium; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: medium; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; color: #000000;"&gt;working fine in my system&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 12:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194938#M874893</guid>
      <dc:creator>gireesh1216</dc:creator>
      <dc:date>2016-10-26T12:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194939#M874894</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;What is vMax ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 12:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194939#M874894</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2016-10-26T12:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194940#M874895</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;STRONG style="font-style: inherit; font-size: 12px; font-family: inherit; color: #808080;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;vMax = ?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 12:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194940#M874895</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2016-10-26T12:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194941#M874896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want the variable to evaluated in the script? or do you want to bring it as an expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 12:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194941#M874896</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-26T12:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194942#M874897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naresh, I think the solution provided by tresesco should work, there is one parenthesys left:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;LET vCurr_Month_Year = month(monthstart(&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;$(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;vMaxDate&lt;/SPAN&gt;)&lt;/STRONG&gt;)&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;amp;' '&amp;amp;(year(&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;$(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;vMaxDate&lt;/SPAN&gt;)&lt;/STRONG&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;Just to comment, why a month(monthstart(maxdate))?, I think it should be the same as Month(maxdate), no need for the monthstart.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 13:18:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194942#M874897</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-10-26T13:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194943#M874898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The current variable is static like it give only month(max(today()) but now we need it as dynamic so that based on the year it should be react..&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 13:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194943#M874898</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2016-10-26T13:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194944#M874899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know your intent here but if you want to find out &lt;STRONG&gt;currentmonthyear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;try this below code&lt;/P&gt;&lt;P&gt;temp_Min_Max_Dates:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(YourDate) as MinDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(YourDate) as MaxDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT FWRSData&lt;/P&gt;&lt;P&gt;;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Let vMinDate = Num(Peek('MinDate', 0, 'temp_Min_Max_Dates')); &lt;/P&gt;&lt;P&gt;Let vMaxDate = Num(Peek('MaxDate', 0, 'temp_Min_Max_Dates')); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table temp_Min_Max_Dates;&lt;/P&gt;&lt;P&gt;//Current Date&lt;/P&gt;&lt;P&gt;Let vReportCurrentDay&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'Day($(vMaxDate))';&lt;/P&gt;&lt;P&gt;Let vReportCurrentMonth&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'num(Month($(vMaxDate)))';&lt;/P&gt;&lt;P&gt;Let vReportCurrentYear&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'Year($(vMaxDate))';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 13:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194944#M874899</guid>
      <dc:creator>rupamjyotidas</dc:creator>
      <dc:date>2016-10-26T13:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194945#M874900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vMax=max(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ActivityDate)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 14:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194945#M874900</guid>
      <dc:creator>gireesh1216</dc:creator>
      <dc:date>2016-10-26T14:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194946#M874901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please let me know the below that variable is not working and is there any way to get this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vMax=MonthName(max(ActivityDate)); &lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 14:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194946#M874901</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2016-10-26T14:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194947#M874902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi naresh, tresesco explained why that can't work in the first answer... and how to solve it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 15:00:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194947#M874902</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-10-26T15:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194948#M874903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the approach but it gives only the max month but i need dynamic month based on the filter selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 15:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194948#M874903</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2016-10-26T15:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Variable error</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194949#M874904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the value needs to be calculated in front-end you can use this variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Text(Date(Max(ActivityDate), 'MMM YYYY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you can define the variable in script as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;vCurr_Month_Year &lt;/SPAN&gt;= "&lt;SPAN style="font-size: 13.3333px;"&gt;Text(Date(Max(ActivityDate), 'MMM YYYY'))&lt;/SPAN&gt;";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 15:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-error/m-p/1194949#M874904</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-10-26T15:19:28Z</dc:date>
    </item>
  </channel>
</rss>

