<?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: Ranking Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904628#M1014641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;and I want to assume that you your aggregation is &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;SUM({$&amp;lt;S_Activity_Date={'&amp;gt;=$(vMaxDateMinus30)&amp;lt;=$(vSelectedMaxDate)'},S_Activity_Date=&amp;gt;}S_IncentiveAmournt)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;right ?&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;do you have another field you can use instead of &lt;SPAN style="font-size: 13.3333330154419px;"&gt;S_Activity_Date?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;perhaps adding a &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Account Open Date]&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;S_Activity_Date1&lt;/SPAN&gt;, &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I have seen some issues when a field is being excluded and used to filter inside of the same set analysis &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Apr 2015 20:39:16 GMT</pubDate>
    <dc:creator>ramoncova06</dc:creator>
    <dc:date>2015-04-24T20:39:16Z</dc:date>
    <item>
      <title>Ranking Question</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904622#M1014635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a QV app that ranks sales employees based on total points earned.&amp;nbsp; The ranking works well when I use a 30 day period or select a specific branch, but when I select a specific date as the max date, the ranking is null if there are no records for that specific date (see examplese below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;All Branches looks fine.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="All.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85020_All.JPG" style="width: 620px; height: 262px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Single Branch looks fine:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Branch.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85021_Branch.JPG" style="width: 620px; height: 213px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Branch with Date Selection:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Date.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85031_Date.JPG" style="width: 620px; height: 192px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select a Date (used as the max date for a 30 day period), the ranking is null for any item that does not have a record with that specific date (in this case 3/18/2015) on the file.&amp;nbsp; There are records in the 2/16/2015 to 3/18/2015 date range (as you can see on the chart) but none specifically on 3/18.&amp;nbsp; This appears to cause the Rank function to fail.&amp;nbsp; I tried adding a blank record for one of the sales associates with a 3/18 date.&amp;nbsp; When I reload, that record is then shown with a ranking. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts as to how to fix this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ed T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 20:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904622#M1014635</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-24T20:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking Question</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904623#M1014636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you share your Rank and aggregation expressions &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 20:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904623#M1014636</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-24T20:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking Question</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904624#M1014637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want to see the rank on that specific date or do you want to see the rank for total points within last 30 days???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 20:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904624#M1014637</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-24T20:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking Question</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904625#M1014638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can not provide the QV app, but my aggregation is done in the script as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff;"&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;[Associate Name]&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;[Account Open Date]&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;S_Activity_Date&lt;/SPAN&gt;, &lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;[Referrals Factor]&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;S_Referrals_Factor&lt;/SPAN&gt;, &lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;[Cross Sale Factor]&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;S_Cross_Sale_Factor&lt;/SPAN&gt;, &lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;[Closed Sales Factor]&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;S_Closed_Sales_Factor&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;COUNT&lt;/SPAN&gt;(1) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;S_NbrOfSales&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;SUM&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Credit Points]&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;S_IncentiveAmount&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; Retail_Incentive&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Group&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;By&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Associate Name]&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;[Account Open Date]&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;[Referrals Factor]&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;[Cross Sale Factor]&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;[Closed Sales Factor]&lt;/SPAN&gt;&lt;BR /&gt;;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rank expressions is as follows:&lt;/P&gt;&lt;P&gt;AGGR(Rank(SUM({$&amp;lt;S_Activity_Date={'&amp;gt;=$(vMaxDateMinus30)&amp;lt;=$(vSelectedMaxDate)'},S_Activity_Date=&amp;gt;}S_IncentiveAmount)), [Associate Name])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 20:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904625#M1014638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-24T20:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking Question</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904626#M1014639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to see the ranking for the last 30 days from the date that is selected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 20:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904626#M1014639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-24T20:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking Question</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904627#M1014640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(GetSelectedCount(S_Activity_Date) = 1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rank(Sum({&amp;lt;S_Activity_Date = {"&amp;gt;=$(vMaxDateMinus30) &amp;lt;= $(vSelectedMaxDate)"}&amp;gt;} [Total Points])),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rank(Sum([Total Points])))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 20:21:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904627#M1014640</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-24T20:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking Question</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904628#M1014641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;and I want to assume that you your aggregation is &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;SUM({$&amp;lt;S_Activity_Date={'&amp;gt;=$(vMaxDateMinus30)&amp;lt;=$(vSelectedMaxDate)'},S_Activity_Date=&amp;gt;}S_IncentiveAmournt)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;right ?&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;do you have another field you can use instead of &lt;SPAN style="font-size: 13.3333330154419px;"&gt;S_Activity_Date?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;perhaps adding a &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff; background-color: #f2f2f2;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Account Open Date]&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;S_Activity_Date1&lt;/SPAN&gt;, &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I have seen some issues when a field is being excluded and used to filter inside of the same set analysis &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 20:39:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904628#M1014641</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-24T20:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking Question</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904629#M1014642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not have another date field to use.&amp;nbsp; My other thought is to create a record for each sales associate for every day with zero values.&amp;nbsp; This way each day will be represented even though there is no activity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure how to write the script to create these records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 20:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904629#M1014642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-24T20:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking Question</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904630#M1014643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at first just try adding this in your script &lt;/P&gt;&lt;P&gt;[Account Open Date] AS S_Activity_Date1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here is a post on how to generate missing data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3786"&gt;Generating Missing Data In QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 20:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904630#M1014643</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-24T20:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking Question</title>
      <link>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904631#M1014644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Sunny.&amp;nbsp; I tried that but it did not work.&amp;nbsp; All the reankign now say 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to head out for the day.&amp;nbsp; I will look more at this over the weekend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 20:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ranking-Question/m-p/904631#M1014644</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-24T20:51:53Z</dc:date>
    </item>
  </channel>
</rss>

