<?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 Rank function and set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-function-and-set-analysis/m-p/318157#M117258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yves,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What value is stored in the TurnOver field when a customer has no turnover for that month? Also what is currently being displayed and how do the customers with no turnover need to be handled to correct the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2011 16:28:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-06T16:28:49Z</dc:date>
    <item>
      <title>Rank function and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-and-set-analysis/m-p/318156#M117257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following problem (which is causing headaches):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I make a selection to compare a month in 2 years. So I select 2 years and 1 month. With one of the expressions, I want the rank based on turnover for my customers (= dimension) ytd,, meaning al months &amp;lt;= the selected month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that if a customer does not have turnover in the selected month, my function does not calculate the rank for that customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression for the turnover untill the selected month for the latest selected year is the following, and does return the correct value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year={$(=max(Year))},Month={"&amp;lt;= $(=num(Month))"}&amp;gt;} TurnOver)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression for getting the rank is the follwing, but does not return the rank for the customers who have no turnover in the selected month (for the other customers this works, but the rank is not correct because of the missing customers)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rank(total &lt;/P&gt;&lt;P&gt;aggr( sum({$&amp;lt;Year={$(=max(Year))},Month={"&amp;lt;= $(=num(Month))"}&amp;gt;} TurnOver),CustomerID)&lt;/P&gt;&lt;P&gt;,0,1) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can make that second expression to take the customers with no turnover in the selected month into account?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yves&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 13:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-and-set-analysis/m-p/318156#M117257</guid>
      <dc:creator />
      <dc:date>2011-10-06T13:44:42Z</dc:date>
    </item>
    <item>
      <title>Rank function and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-and-set-analysis/m-p/318157#M117258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yves,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What value is stored in the TurnOver field when a customer has no turnover for that month? Also what is currently being displayed and how do the customers with no turnover need to be handled to correct the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 16:28:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-and-set-analysis/m-p/318157#M117258</guid>
      <dc:creator />
      <dc:date>2011-10-06T16:28:49Z</dc:date>
    </item>
    <item>
      <title>Rank function and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-and-set-analysis/m-p/318158#M117259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when a customer has no turnover for a month, there will be no records for that month.&lt;/P&gt;&lt;P&gt;Customers need to be ranked by there turnover base upon all of the months, not only the selected month, customers with no turnover for all the months don't need to be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yves.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 13:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-and-set-analysis/m-p/318158#M117259</guid>
      <dc:creator />
      <dc:date>2011-10-24T13:52:30Z</dc:date>
    </item>
    <item>
      <title>Rank function and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-and-set-analysis/m-p/318159#M117260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For enyone interested: I solved this my remaking the table so that users need to select all the months instead of just the last one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yves&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 08:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-and-set-analysis/m-p/318159#M117260</guid>
      <dc:creator />
      <dc:date>2011-10-25T08:11:38Z</dc:date>
    </item>
    <item>
      <title>Rank function and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-and-set-analysis/m-p/318160#M117261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can remplace $(=num(Month)) by $(#Month) .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 09:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-and-set-analysis/m-p/318160#M117261</guid>
      <dc:creator>rlp</dc:creator>
      <dc:date>2012-01-31T09:43:22Z</dc:date>
    </item>
  </channel>
</rss>

