<?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: AGGR Expression issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136465#M372943</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;Try replacing $(vSetView) with &lt;STRONG&gt;$(=$(vSetView))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Maurice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jul 2016 13:52:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-12T13:52:49Z</dc:date>
    <item>
      <title>AGGR Expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136461#M372939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;I am using an expression with AGGR function :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Sum (Aggr(&amp;nbsp; Sum({&amp;lt; $(vSetView)&amp;gt;} POKTND) , LB,Famille,CODE_PROJET,PO_FOURNISSEUR,PO_NUM_COMMANDE,PO_COMMENTS, PO_ACHETEUR,[Month of date], CDR) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;but the problem is that I am using &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;$(vSetView) to show MTD /YTD / Total YEAR data , so that the data change with the selection :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;A href="https://community.qlik.com/legacyfs/online/130955_Capture.PNG"&gt;&lt;IMG __jive_id="130955" alt="Capture.PNG" class="jive-image image-1" height="45" src="https://community.qlik.com/legacyfs/online/130955_Capture.PNG" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="576" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;$(vSetView)&lt;/SPAN&gt;=pick(ViewId,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;'$(vSetMTD)',&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;'$(vSetYTD)',&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;'$(vSetTotal)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;View:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ViewId, View&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, MTD&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, YTD&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, Total Year&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;any help so that my data change with the selection please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Thanks&lt;/P&gt;&lt;P class="jive-thread-reply-btn" style="margin: 15px 0 -10px; font-size: 0.9em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;DIV class="jive-thread-reply-btn-correct" style="font-weight: inherit; font-style: inherit; font-size: 11.7px; font-family: inherit;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/1080760#1080760" style="margin: 0 20px 0 0; padding: 2px 14px 4px 28px; font-weight: bold; font-style: inherit; font-size: 11.7px; font-family: inherit; color: #3778c7; background-color: #f3f3f3;"&gt;pb with the total displayed&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 08:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136461#M372939</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2016-07-12T08:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136462#M372940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any idea please...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 09:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136462#M372940</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2016-07-12T09:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136463#M372941</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;Hi, &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;&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;You are not evaluating your expression... Look at your variable:&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;Sum (Aggr(&amp;nbsp; Sum({&amp;lt; $(vSetView)&amp;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;&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;You are supposed to have something like Date = $(myvariable) ....&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;&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;Cheers, &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;Ines&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 13:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136463#M372941</guid>
      <dc:creator>inescastelhano</dc:creator>
      <dc:date>2016-07-12T13:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136464#M372942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ines, could explain more please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 13:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136464#M372942</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2016-07-12T13:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136465#M372943</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;Try replacing $(vSetView) with &lt;STRONG&gt;$(=$(vSetView))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Maurice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 13:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136465#M372943</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-12T13:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136466#M372944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it didn't work Maurice &lt;/P&gt;&lt;P&gt;Sum (Aggr(&amp;nbsp; Sum($(=$(vSetView)) POKTND) , LB,Famille,CODE_PROJET,PO_FOURNISSEUR,PO_NUM_COMMANDE,PO_COMMENTS, PO_ACHETEUR, CDR) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 13:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136466#M372944</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2016-07-12T13:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136467#M372945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to adapt your script like my below example that works very well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;View:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ViewId, View&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 2008&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 2009&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vSet2008='Year={2008}';&lt;/P&gt;&lt;P&gt;SET vSet2009='Year={2009}';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vSetView=pick(ViewId, vSet2008, vSet2009);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use expression like: sum({&amp;lt; $(=$(vSetView)) &amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 14:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136467#M372945</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-12T14:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136468#M372946</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;sum({&amp;lt; $(=$(vSetView)) &amp;gt;} Sales) works very well but whene I use AGGR FUNCTION it doesn't work; the amount doesn't change with the selection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum (Aggr(&amp;nbsp; Sum($(=$(vSetView)) POKTND) , LB,Famille,CODE_PROJET,PO_FOURNISSEUR,PO_NUM_COMMANDE,PO_COMMENTS, PO_ACHETEUR, CDR) )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 08:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136468#M372946</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2016-07-13T08:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136469#M372947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bekir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my example if i use same template as you:&lt;/P&gt;&lt;P&gt;=sum(aggr(sum({&amp;lt; $(=$(vSetView)) &amp;gt;} Sales), CategoryName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It also works well...&lt;/P&gt;&lt;P&gt;So i think you have something wrong maybe with the fields you are using.&lt;/P&gt;&lt;P&gt;Be sure also to put&lt;STRONG&gt; =&lt;/STRONG&gt; sign to start the expression as sum is a function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Maurice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 09:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136469#M372947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-13T09:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136470#M372948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As recommended, see below&lt;/P&gt;&lt;P&gt;=sum(aggr(sum({&amp;lt; $(=$(vSetView)) &amp;gt;} POKTND), LB,Famille,CODE_PROJET,PO_FOURNISSEUR,PO_NUM_COMMANDE,PO_COMMENTS, PO_ACHETEUR, CDR) )&lt;/P&gt;&lt;P&gt;Bellow are my variable expressions :&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;'$(vSetMTD)', : &lt;/SPAN&gt;[Calendar date]=&amp;nbsp; ,&amp;nbsp;&amp;nbsp; [Month of date]={ "= $(=max([Month of date]))"},&amp;nbsp; [%Date ID] = { "&amp;lt;= $(=max([%Date ID]))"}&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 13px; color: #3d3d3d;"&gt;'$(vSetYTD)', :&amp;nbsp; [Year of date]={ $(=[Year of date]) } , [Month of date]={ "&amp;lt;= $(=max([Month of date]))"} , [%Date ID] = { "&amp;lt;= $(=max([%Date ID]))"}&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 13px; color: #3d3d3d;"&gt;'$(vSetTotal)') : [Calendar date]=, [Month of date]=,&amp;nbsp; [Year of date]={ $(=[Year of date]) }&lt;/P&gt;&lt;P class="gmail_extra" style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;DIV class="gmail_quote"&gt;&lt;BLOCKQUOTE class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left-width: 1px; padding-left: 1ex;"&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 13px; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;$(vSetView)&lt;/SPAN&gt;=pick(ViewId,&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 13px; color: #3d3d3d;"&gt;'$(vSetMTD)',&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 13px; color: #3d3d3d;"&gt;'$(vSetYTD)',&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 13px; color: #3d3d3d;"&gt;'$(vSetTotal)')&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 13px; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 13px; color: #3d3d3d;"&gt;The amount remains the same with all selections MTD/YTD and total year...&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 13px; color: #3d3d3d;"&gt;did I miss something?&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 13px; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: inherit; font-style: inherit; font-weight: inherit; font-size: 13px; color: #3d3d3d;"&gt;Thanks&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 10:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136470#M372948</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2016-07-13T10:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: AGGR Expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136471#M372949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using variables in pick function without the $ and quotes:&lt;/P&gt;&lt;P&gt;SET vSetView=pick(ViewId, vSetMTD, vSetYTD, vSetTotal);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And create your variables surrounded by simple quotes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start with simple and static one like:&lt;/P&gt;&lt;P&gt;SET vSetYTD='[Year of date]={'2016'}';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is working then you can adapt progressively the variables complexity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 11:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AGGR-Expression-issue/m-p/1136471#M372949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-13T11:29:59Z</dc:date>
    </item>
  </channel>
</rss>

