<?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 Aggr and Rank funciton in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-and-Rank-funciton/m-p/507507#M1142499</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;this is the dimension for two of my pivot table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) =if(vselect='sector' and (cdate &amp;gt;= vStartdate AND cdate &amp;lt;= vEnddate) , aggr(if(rank(count(sector))&amp;lt;=50,sector),sector))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) =if(vselect='Channel' and (cdate &amp;gt;= vStartdate AND cdate &amp;lt;= vEnddate) ,channel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both the pivot tables have similar expressions (6 of them)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) works fine. It displays the channel and aggregates the expressions for data betweeen vStartdate and vEnddate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But (1) is not showing data betweeen vStartdate and vEnddate. It only shows the data for the last date, ie vEnddate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i cannot figure out why this expression is not functioning since the only difference is the aggr() and rank() functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Arjun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Sep 2013 07:56:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-11T07:56:22Z</dc:date>
    <item>
      <title>Aggr and Rank funciton</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-and-Rank-funciton/m-p/507507#M1142499</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;this is the dimension for two of my pivot table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) =if(vselect='sector' and (cdate &amp;gt;= vStartdate AND cdate &amp;lt;= vEnddate) , aggr(if(rank(count(sector))&amp;lt;=50,sector),sector))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) =if(vselect='Channel' and (cdate &amp;gt;= vStartdate AND cdate &amp;lt;= vEnddate) ,channel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both the pivot tables have similar expressions (6 of them)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) works fine. It displays the channel and aggregates the expressions for data betweeen vStartdate and vEnddate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But (1) is not showing data betweeen vStartdate and vEnddate. It only shows the data for the last date, ie vEnddate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i cannot figure out why this expression is not functioning since the only difference is the aggr() and rank() functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Arjun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 07:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-and-Rank-funciton/m-p/507507#M1142499</guid>
      <dc:creator />
      <dc:date>2013-09-11T07:56:22Z</dc:date>
    </item>
  </channel>
</rss>

