<?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 Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-Function-Question/m-p/653152#M675189</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;It seems I could not achieve the desired result in my Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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&gt;That Table includes 3 dimensions: App, Advertiser and Campaign.&lt;/P&gt;&lt;P&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&gt;My Expression is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if([Exception type]='Positive 1 STD Exception',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I seem to be getting Null only as my results....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a link to my QVW, if you could kindly assist me!&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/0B4dVjL8rcPOCb0tmOVFrUTVMX00/edit?usp=sharing"&gt;https://drive.google.com/file/d/0B4dVjL8rcPOCb0tmOVFrUTVMX00/edit?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Ella.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Aug 2014 08:06:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-11T08:06:12Z</dc:date>
    <item>
      <title>Rank() Function Question</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function-Question/m-p/653152#M675189</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;It seems I could not achieve the desired result in my Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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&gt;That Table includes 3 dimensions: App, Advertiser and Campaign.&lt;/P&gt;&lt;P&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&gt;My Expression is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if([Exception type]='Positive 1 STD Exception',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&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;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I seem to be getting Null only as my results....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a link to my QVW, if you could kindly assist me!&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/0B4dVjL8rcPOCb0tmOVFrUTVMX00/edit?usp=sharing"&gt;https://drive.google.com/file/d/0B4dVjL8rcPOCb0tmOVFrUTVMX00/edit?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Ella.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 08:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function-Question/m-p/653152#M675189</guid>
      <dc:creator />
      <dc:date>2014-08-11T08:06:12Z</dc:date>
    </item>
  </channel>
</rss>

