<?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() function with selected dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-function-with-selected-dates/m-p/509439#M1142254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in dimension side&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; aggr(if(rank(TOTAL count(sector))&amp;lt;=50,sector),sector)&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: 10pt; line-height: 1.5em;"&gt;OR TRY 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; font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;aggr(if(rank(TOTAL count(sector))&amp;lt;=50 AND &lt;/SPAN&gt;vselect='sector' and cdate &amp;gt;= vStartdate AND cdate &amp;lt;= vEnddate &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;,sector),sector)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Sep 2013 11:28:31 GMT</pubDate>
    <dc:creator>er_mohit</dc:creator>
    <dc:date>2013-09-11T11:28:31Z</dc:date>
    <item>
      <title>aggr() function with selected dates</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-with-selected-dates/m-p/509437#M1142252</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; I have apivot table with the following dimension,&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;&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;"&gt;=if(vselect='sector' and (cdate &amp;gt;= vStartdate AND cdate &amp;lt;= vEnddate) , aggr(if(rank(count(sector))&amp;lt;=50,sector),sector))&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;&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;"&gt;but i am not getting the result for the range of dates chosen, &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;instead, it just aggregates the data for the maximum value of the date chosen, ie vEnddate&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;&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;"&gt;Please help me out. I cant figure out the issue.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 11:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-with-selected-dates/m-p/509437#M1142252</guid>
      <dc:creator />
      <dc:date>2013-09-11T11:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: aggr() function with selected dates</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-with-selected-dates/m-p/509438#M1142253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=if(vselect='sector' and cdate &amp;gt;= vStartdate AND cdate &amp;lt;= vEnddate , aggr(if(rank(count(sector))&amp;lt;=50,sector),sector))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 11:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-with-selected-dates/m-p/509438#M1142253</guid>
      <dc:creator />
      <dc:date>2013-09-11T11:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: aggr() function with selected dates</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-with-selected-dates/m-p/509439#M1142254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in dimension side&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; aggr(if(rank(TOTAL count(sector))&amp;lt;=50,sector),sector)&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: 10pt; line-height: 1.5em;"&gt;OR TRY 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; font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;aggr(if(rank(TOTAL count(sector))&amp;lt;=50 AND &lt;/SPAN&gt;vselect='sector' and cdate &amp;gt;= vStartdate AND cdate &amp;lt;= vEnddate &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;,sector),sector)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 11:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-with-selected-dates/m-p/509439#M1142254</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-09-11T11:28:31Z</dc:date>
    </item>
  </channel>
</rss>

