<?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 working on version 11 but not 12 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-working-on-version-11-but-not-12/m-p/1120712#M369409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel like variables work differently in version 12+ and Qlik Sense than they do in previous versions...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 May 2017 05:45:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-05-03T05:45:33Z</dc:date>
    <item>
      <title>aggr working on version 11 but not 12</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-working-on-version-11-but-not-12/m-p/1120707#M369404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is working perfectly in version 11, but not 12. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;The expression is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;min&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;({&amp;lt;AsOfDate={'&amp;gt;=$(vMinDate)&amp;lt;=$(vMaxDate)'},FromDate={'&amp;gt;=$(vMinDate)&amp;lt;=$(vMaxDate)'}&amp;gt;} exp(sum(log(1+Return)))-1,PortfolioName,FromDate,AsOfDate)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;The variables are defined below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;vMinDate: &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;TOTAL&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;ReturnDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;PortfolioName&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;vMaxDate: &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;TOTAL&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;ReturnDate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;PortfolioName&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 9pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Joao&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 10:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-working-on-version-11-but-not-12/m-p/1120707#M369404</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-27T10:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: aggr working on version 11 but not 12</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-working-on-version-11-but-not-12/m-p/1120708#M369405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure this works in QV11.2? Because it looks syntactically incorrect - AFAIK Aggr() does not support set expressions directly, they need to be in an aggregation function such as Min(), Sum(), Avg()....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 11:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-working-on-version-11-but-not-12/m-p/1120708#M369405</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-06-27T11:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: aggr working on version 11 but not 12</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-working-on-version-11-but-not-12/m-p/1120709#M369406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see what you mean, and it certainly underlines many parts of the expression for this reason (suggesting there is a problem), but it has always worked. I've upgraded a couple of installations to version 12, and on these it is not working. The rest are still on 11.2, and it works perfectly (no changes i.e. we are all using the same models).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 12:20:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-working-on-version-11-but-not-12/m-p/1120709#M369406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-27T12:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: aggr working on version 11 but not 12</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-working-on-version-11-but-not-12/m-p/1120710#M369407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And I've tried changing the expression so that it is syntactically correct with the exp(sum( straight after the aggr( so that the set analysis happens inside the sum, but it still doesn't work. The new expression is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;exp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AsOfDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=$(vMinDate)&amp;lt;=$(vMaxDate)'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FromDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&amp;gt;=$(vMinDate)&amp;lt;=$(vMaxDate)'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;log&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1+&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Return&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))-1,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PortfolioName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FromDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AsOfDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 12:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-working-on-version-11-but-not-12/m-p/1120710#M369407</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-27T12:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: aggr working on version 11 but not 12</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-working-on-version-11-but-not-12/m-p/1120711#M369408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've just removed the set analysis part out of the expression, and this works perfectly i.e. the expression is now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;exp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;log&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(1+&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Return&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))-1,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PortfolioName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FromDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AsOfDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 12:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-working-on-version-11-but-not-12/m-p/1120711#M369408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-27T12:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: aggr working on version 11 but not 12</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-working-on-version-11-but-not-12/m-p/1120712#M369409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel like variables work differently in version 12+ and Qlik Sense than they do in previous versions...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 05:45:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-working-on-version-11-but-not-12/m-p/1120712#M369409</guid>
      <dc:creator />
      <dc:date>2017-05-03T05:45:33Z</dc:date>
    </item>
  </channel>
</rss>

