<?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: Re: Rank() Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653809#M675117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you tresesco,&lt;/P&gt;&lt;P&gt;Please see the file attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Aug 2014 09:20:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-11T09:20:06Z</dc:date>
    <item>
      <title>Rank() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653805#M675113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi All,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;It seems I could not achieve the desired result in my Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have a Table of "Positive 1 STD Exceptions", Where each raw appear only if it is a "Positive 1 STD Exception".&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;That Table includes 3 dimensions: App, Advertiser and Campaign.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I would like to add a column as an expression labeled "Main Partner" to that table, where I will see the name of the partner which brought me the most revenue (from yesterday and belongs to&amp;nbsp; "PartnerReport", as you can see in my set analysis).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;My Expression is:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=if([Exception type]='Positive 1 STD Exception',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;if(rank(sum({&amp;lt;isYesterdayDate={'1'},PartnerReport={'PartnerReport'}&amp;gt;} (ClickCost+InstallCost)/100)) &amp;lt;2, partner_name)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;***Exception Type Should NOT be part of the set analysis, please do not answer with this as your answer... &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I seem to be getting Null only as my results....&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Can you Help?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Kind Regards,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Ella.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 08:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653805#M675113</guid>
      <dc:creator />
      <dc:date>2014-08-11T08:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rank() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653806#M675114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the possible count of partner_name is more than one, concat() should be used like:&lt;/P&gt;&lt;P&gt;=if([Exception type]='Positive 1 STD Exception',&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concat(&lt;/STRONG&gt;if(rank(sum({&amp;lt;isYesterdayDate={'1'},PartnerReport={'PartnerReport'}&amp;gt;} (ClickCost+InstallCost)/100)) &amp;lt;2, partner_name) &lt;STRONG&gt;, ',')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 08:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653806#M675114</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-08-11T08:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rank() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653807#M675115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you but this is not my issue.&lt;/P&gt;&lt;P&gt;I think I have a clue for the root of my problem:&lt;/P&gt;&lt;P&gt;I do not have the "Partner name" in my dimensions, however, I want the ranking to be according to each partner.&lt;/P&gt;&lt;P&gt;So I think I need to add Aggr() somehow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can assist that would be great,&lt;/P&gt;&lt;P&gt;I will keep trying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Ella&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 09:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653807#M675115</guid>
      <dc:creator />
      <dc:date>2014-08-11T09:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rank() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653808#M675116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Easiest way to get help is attaching a sample qvw and explaining the required output against the sample data there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 09:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653808#M675116</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-08-11T09:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Rank() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653809#M675117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you tresesco,&lt;/P&gt;&lt;P&gt;Please see the file attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 09:20:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653809#M675117</guid>
      <dc:creator />
      <dc:date>2014-08-11T09:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rank() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653810#M675118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't find a field called - '[Exception type]'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 09:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653810#M675118</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-08-11T09:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rank() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653811#M675119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is there, it's just hidden (in presentation).&lt;/P&gt;&lt;P&gt;See under expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 09:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653811#M675119</guid>
      <dc:creator />
      <dc:date>2014-08-11T09:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rank() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653812#M675120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Exception type]='Positive 1 STD Exception',&lt;/P&gt;&lt;P&gt;If(rank(sum({&amp;lt;isYesterdayDate={'1'},PartnerReport={'PartnerReport'}&amp;gt;} (ClickCost+InstallCost)/100))&amp;lt;2, Concat(partner_name,','))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 09:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653812#M675120</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-08-11T09:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rank() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653813#M675121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elula ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Exception type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Positive 1 STD Exception',&lt;BR /&gt;only({&amp;lt;partner_id={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=aggr(rank(sum({&amp;lt;isYesterdayDate={'1'},PartnerReport={'PartnerReport'}&amp;gt;} (ClickCost+InstallCost)/100)), partner_name)&amp;lt;=1"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}partner_name)&lt;BR /&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This will work .&lt;/P&gt;&lt;P&gt;All The Best . Happy Learning .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 10:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653813#M675121</guid>
      <dc:creator />
      <dc:date>2014-08-11T10:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rank() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653814#M675122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use below expression in Main Partner expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Exception type]='Positive 1 STD Exception' and rank(sum({&amp;lt;isYesterdayDate={'1'},PartnerReport={'PartnerReport'}&amp;gt;} (ClickCost+InstallCost)/100)) &amp;lt;2,partner_name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this was as expected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 10:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653814#M675122</guid>
      <dc:creator />
      <dc:date>2014-08-11T10:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rank() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653815#M675123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NO &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;It works alright in the QVW I put because there is only 1 partner there, but when I move it to my original QVW it just returns all partners with concat...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 11:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653815#M675123</guid>
      <dc:creator />
      <dc:date>2014-08-11T11:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Rank() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653816#M675124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works in the QVW I uploaded, where there is only 1 partner,&lt;/P&gt;&lt;P&gt;however, when I use it in my original QVW (with many partners) it only returns the answer in the raw where the suitable partner was the partner that gave the most profit from all others.&lt;/P&gt;&lt;P&gt;In any other raw it does not returns an answer, but shows "-".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 11:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653816#M675124</guid>
      <dc:creator />
      <dc:date>2014-08-11T11:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rank() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653817#M675125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elula ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i cleared with your actual requirement , that you want to list all the partner name right .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use following expression , hope it will works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Exception type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Positive 1 STD Exception',&lt;BR /&gt;concat(if(aggr(rank(sum({&amp;lt;isYesterdayDate={'1'},PartnerReport={'PartnerReport'}&amp;gt;} (ClickCost+InstallCost)/100)), partner_name)&amp;gt;0,partner_name),',')) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;All&amp;nbsp; the best . Happy Learning .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 12:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653817#M675125</guid>
      <dc:creator />
      <dc:date>2014-08-11T12:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rank() Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653818#M675126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;I see I need to upload a new QVW with more data...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 12:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/653818#M675126</guid>
      <dc:creator />
      <dc:date>2014-08-11T12:26:47Z</dc:date>
    </item>
  </channel>
</rss>

