<?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: Problems with Rank when has equal values or null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181901#M519374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know the reason for why this is happening, I am still working on getting a fix for this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2016 20:42:34 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-09-13T20:42:34Z</dc:date>
    <item>
      <title>Problems with Rank when has equal values or null</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181893#M519366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;!I have an advanced expression to calculate Rank that brings aleatory values when results are equal or zero or null.&lt;/P&gt;&lt;P&gt;The problem is that dependind on the way that the result is visualized by the user, the result is different.&lt;/P&gt;&lt;P&gt;Look at my example attached. It has two differente ways to calculate, one with texts and beside one with table. Depending of the variable, the result will be different in the both ways.&lt;/P&gt;&lt;P&gt;Just open the application, select for example: Irqbsa DZB and you see that some calculations are differente, like Treaty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 18:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181893#M519366</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2016-09-12T18:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Rank when has equal values or null</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181894#M519367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which one is the right one??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 19:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181894#M519367</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-12T19:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Rank when has equal values or null</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181895#M519368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Treaty for example, is an expression that result is null, as there is no data that correspond to this.&lt;/P&gt;&lt;P&gt;If you look at Sheet4 I created, you will see that there is values for Treaty for only 6 Brokers and has 0 for a 7th one. So the broker that I gave as example, is one that doesn´t have values for Treaty, so it should be 7 or 8 for this and the others that don´t have, do you agree with me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 20:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181895#M519368</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2016-09-12T20:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Rank when has equal values or null</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181896#M519369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robson, can you check if adding this helps (will be needed for all expression, but I am doing it form Treaty for proof of concept)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr(Rank(Sum({$&amp;lt;[Broker Group Name], [Method of Placement Description]={'Treaty'}&amp;gt;} $(vCurrency)), 1, 1)* Avg(1), [Broker Group Name])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read about the two new arguments I added here -&amp;gt; &lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/RankingFunctions/rank.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/RankingFunctions/rank.htm"&gt;Rank ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="137191" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/137191_Capture.PNG" style="height: 449px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 20:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181896#M519369</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-12T20:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Rank when has equal values or null</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181897#M519370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank You again Sunny. You are always saving me.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Just one point. It has problems sometimes if has negative values.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Select Ohdgycu Awca &amp;amp; Jsax Qei and look the values for Aviation in the two tables.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;One shows 8 and the other 14&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 00:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181897#M519370</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2016-09-13T00:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Rank when has equal values or null</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181898#M519371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robson - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what might be causing this, I will take a look at this tomorrow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 00:56:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181898#M519371</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-13T00:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Rank when has equal values or null</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181899#M519372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you so much. Have a good night&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 01:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181899#M519372</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2016-09-13T01:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Rank when has equal values or null</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181900#M519373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One information that I think is important. This problem happens when some brokers has negative values.Most positive, some without values and some negatives&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 12:21:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181900#M519373</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2016-09-13T12:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Rank when has equal values or null</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181901#M519374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know the reason for why this is happening, I am still working on getting a fix for this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 20:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181901#M519374</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-13T20:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Rank when has equal values or null</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181902#M519375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 03:05:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181902#M519375</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2016-09-14T03:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Rank when has equal values or null</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181903#M519376</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;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(Dim,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Round(Rank(&lt;SPAN style="color: #ff0000;"&gt;If(Sum({1&amp;lt;[Reporting Calendar Year]={'$(vSelectedYear)'},[Reporting Calendar Quarter]={'$(vSelectedQuarter)'},[High Level Risk Code Description]={'Aviation'}&amp;gt;} $(vCurrency)) &amp;lt;&amp;gt; 0,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({1&amp;lt;[Reporting Calendar Year]={'$(vSelectedYear)'},[Reporting Calendar Quarter]={'$(vSelectedQuarter)'},[High Level Risk Code Description]={'Aviation'}&amp;gt;} $(vCurrency)&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;),1,1) * Avg(1)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Round(Rank(Sum({1&amp;lt;[Reporting Calendar Year]={'$(vYearBefore)'},[Reporting Calendar Quarter]={'$(vSelectedQuarter)'},[High Level Risk Code Description]={'Aviation'}&amp;gt;} $(vCurrency))) * Avg(1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rank(Sum({1&amp;lt;[Reporting Calendar Year]={'$(vSelectedYear)'},[Reporting Calendar Quarter]={'$(vSelectedQuarter)'},[High Level Risk Code Description]={'Aviation'}&amp;gt;} $(vCurrency))) * Avg(1)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Num(Sum({1&amp;lt;[Reporting Calendar Year]={'$(vSelectedYear)'},[Reporting Calendar Quarter]={'$(vSelectedQuarter)'},[High Level Risk Code Description]={'Aviation'}&amp;gt;} $(vCurrency)) * Avg(1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({1&amp;lt;[Reporting Calendar Year]={'$(vYearBefore)'},[Reporting Calendar Quarter]={'$(vSelectedQuarter)'},[High Level Risk Code Description]={'Aviation'}&amp;gt;} $(vCurrency)) * Avg(1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-1,'+ #,##0.00%;(#,##0.00)%'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did this for Aviation only, you will probably need to do this for all expressions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 06:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181903#M519376</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-14T06:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Rank when has equal values or null</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181904#M519377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you again so much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 18:47:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-Rank-when-has-equal-values-or-null/m-p/1181904#M519377</guid>
      <dc:creator>rcandeo</dc:creator>
      <dc:date>2016-09-16T18:47:46Z</dc:date>
    </item>
  </channel>
</rss>

