<?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: Set Anlaysis issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Anlaysis-issue/m-p/917247#M318001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Variable as below in Variable Overview&lt;/P&gt;&lt;P&gt;vcurrent_year&lt;/P&gt;&lt;P&gt;IF(Max(Year)&amp;gt;Year(Today()),Year(Today()),Max(Year))&lt;/P&gt;&lt;P&gt;//without equal sign &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use it as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;Year = {"$(=$(vcurrent_year))"}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[#Invoice Line EUR Value]&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Aug 2015 13:31:09 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2015-08-10T13:31:09Z</dc:date>
    <item>
      <title>Set Anlaysis issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Anlaysis-issue/m-p/917246#M318000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have declared the following as variable in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vcurrent_year = 'IF(GETPOSSIBLECOUNT(Year)=1, Year, IF(MAX(Year)&amp;gt;=Year(TODAY()), YEAR(TODAY()), MAX(Year)))';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I use the variable in front end as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Year={$(vcurrent_year)}&amp;gt;}[#Invoice Line EUR Value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it gives me an error &lt;/P&gt;&lt;P&gt;Error: Error in set modifier ad hoc element list:&lt;/P&gt;&lt;P&gt;',' or ')' expected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 13:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Anlaysis-issue/m-p/917246#M318000</guid>
      <dc:creator>Karthik3</dc:creator>
      <dc:date>2015-08-10T13:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Anlaysis issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Anlaysis-issue/m-p/917247#M318001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Variable as below in Variable Overview&lt;/P&gt;&lt;P&gt;vcurrent_year&lt;/P&gt;&lt;P&gt;IF(Max(Year)&amp;gt;Year(Today()),Year(Today()),Max(Year))&lt;/P&gt;&lt;P&gt;//without equal sign &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use it as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;Year = {"$(=$(vcurrent_year))"}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[#Invoice Line EUR Value]&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 13:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Anlaysis-issue/m-p/917247#M318001</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-08-10T13:31:09Z</dc:date>
    </item>
  </channel>
</rss>

