<?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: Use of variable in aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-of-variable-in-aggr/m-p/728654#M473626</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;"&gt;your expression is wrong&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;you can use like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(aggr( &lt;/SPAN&gt;(SUM({$&amp;lt; FiscalYear={$(=max(FiscalYear))},[Posting Date] = {'&amp;lt;=$(=Date(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vDate&lt;/SPAN&gt;))'}&amp;gt;}[Sales]) ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Oct 2014 06:31:43 GMT</pubDate>
    <dc:creator>vikasmahajan</dc:creator>
    <dc:date>2014-10-30T06:31:43Z</dc:date>
    <item>
      <title>Use of variable in aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variable-in-aggr/m-p/728652#M473624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt; Can we use variable to aggregate over that defined variable. ? &lt;/P&gt;&lt;P&gt; Ex , I have created a variable with name vDate. I want to write sum(aggr(sum(Sales),vDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sailee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 06:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variable-in-aggr/m-p/728652#M473624</guid>
      <dc:creator />
      <dc:date>2014-10-30T06:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variable in aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variable-in-aggr/m-p/728653#M473625</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;sum(aggr(sum(Sales),vDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here you can use variable but vDate must be a Filedname not a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;set vDate=Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(sum(Sales),vDate))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 06:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variable-in-aggr/m-p/728653#M473625</guid>
      <dc:creator />
      <dc:date>2014-10-30T06:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variable in aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variable-in-aggr/m-p/728654#M473626</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;"&gt;your expression is wrong&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;you can use like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(aggr( &lt;/SPAN&gt;(SUM({$&amp;lt; FiscalYear={$(=max(FiscalYear))},[Posting Date] = {'&amp;lt;=$(=Date(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vDate&lt;/SPAN&gt;))'}&amp;gt;}[Sales]) ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 06:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variable-in-aggr/m-p/728654#M473626</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2014-10-30T06:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Use of variable in aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-variable-in-aggr/m-p/728655#M473627</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 like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(sum(Sales), $(vDate)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope vDate is the Field Name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 06:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-variable-in-aggr/m-p/728655#M473627</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2014-10-30T06:40:54Z</dc:date>
    </item>
  </channel>
</rss>

