<?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: Help with using Rank / Aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-using-Rank-Aggr/m-p/1152605#M376416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a dimension DashboardDate and as expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;=Sum({&amp;lt;DashboardDate = {"&amp;gt;=$(=Date(Max(DashboardDate,4),'DD/MM/YYYY'))"} &amp;gt;} [Total Logged Last Week])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2016 16:07:25 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-05-16T16:07:25Z</dc:date>
    <item>
      <title>Help with using Rank / Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-using-Rank-Aggr/m-p/1152604#M376415</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;BR /&gt;I have a list box with an expression that is supposed to show a mini trendline covering data from the last 4 weeks (below).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="trendline.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124682_trendline.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the expression I am using to extract the values for the last 4 weeks is not working.... The underlying data is shown in the table on the left, however my expression:&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'courier new', courier;"&gt;=Aggr(If(Rank(DashboardDate) &amp;lt;=4, [Total Logged Last Week]) ,[Total Logged Last Week]) &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;appears to be bringing back the data shown on the right. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to bring back only the top 4 dates (sorted descending) and their corresponding values - can someone help me see where I am going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DashboardDate.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/124683_DashboardDate.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 12:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-using-Rank-Aggr/m-p/1152604#M376415</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-16T12:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help with using Rank / Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-using-Rank-Aggr/m-p/1152605#M376416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a dimension DashboardDate and as expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;=Sum({&amp;lt;DashboardDate = {"&amp;gt;=$(=Date(Max(DashboardDate,4),'DD/MM/YYYY'))"} &amp;gt;} [Total Logged Last Week])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 16:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-using-Rank-Aggr/m-p/1152605#M376416</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-16T16:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with using Rank / Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-using-Rank-Aggr/m-p/1152606#M376417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use an advanced search to get the top 4 weeks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;DashboardDate &lt;/SPAN&gt;={"=rank(Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;Total Logged Last Week]&lt;/SPAN&gt;)) &amp;lt;= 4 "}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;[Total Logged Last Week]&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 16:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-using-Rank-Aggr/m-p/1152606#M376417</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2016-05-16T16:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with using Rank / Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-using-Rank-Aggr/m-p/1152607#M376418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This didn't work unfortunately &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 10:42:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-using-Rank-Aggr/m-p/1152607#M376418</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-17T10:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with using Rank / Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-using-Rank-Aggr/m-p/1152608#M376419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!! Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 10:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-using-Rank-Aggr/m-p/1152608#M376419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-17T10:43:00Z</dc:date>
    </item>
  </channel>
</rss>

