<?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: How to write  the  Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-the-Expression/m-p/1813174#M1212763</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. To remove the null/Missing Values check below-&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;=if(rank(sum(Sales))&amp;lt;=4, sum(Sales))&amp;nbsp; &lt;/STRONG&gt;add this as expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =aggr(if(rank(sum(Sales))&amp;lt;=4,GUID),GUID) &lt;/STRONG&gt;add this as calculated dimension&lt;/P&gt;&lt;P&gt;2. for sorting of these values in a Pivot table you need to add the sorting expression under the sort tab as per your requirement like-&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;=if(rank(sum(Sales))&amp;lt;=4, sum(Sales))&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Else you can use straight table&amp;nbsp; and make the sorting on the expression.&lt;/P&gt;&lt;P&gt;VK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 06 Jun 2021 03:37:00 GMT</pubDate>
    <dc:creator>Vikash</dc:creator>
    <dc:date>2021-06-06T03:37:00Z</dc:date>
    <item>
      <title>How to write  the  Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-the-Expression/m-p/1812869#M1212749</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am&amp;nbsp; trying to show case&amp;nbsp; top 4 value in a pivot table, the below expression I have used&amp;nbsp; is working partially&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression :&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;if(Rank(total Sum(Sales),4,1)&amp;lt;=4,sum(Sales))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 791px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/56301i68083BC114A41737/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am having two issues over here&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1) I am showcasing the top4 values hence it should show only those rows not the Null/Blank rows&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2) After getting top4 I need showcase them in Descending order&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I achieve the above two requirements&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 05:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-the-Expression/m-p/1812869#M1212749</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2021-06-04T05:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to write  the  Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-the-Expression/m-p/1812969#M1212757</link>
      <description>&lt;P&gt;Any suggestion on the above&amp;nbsp; issue will be helpful&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 11:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-the-Expression/m-p/1812969#M1212757</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2021-06-04T11:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to write  the  Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-the-Expression/m-p/1813158#M1212762</link>
      <description>&lt;P&gt;- Data Handling and nulls can be removed.&lt;/P&gt;&lt;P&gt;- Then sort it accordingly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 17:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-the-Expression/m-p/1813158#M1212762</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2021-06-05T17:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to write  the  Expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-the-Expression/m-p/1813174#M1212763</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. To remove the null/Missing Values check below-&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;=if(rank(sum(Sales))&amp;lt;=4, sum(Sales))&amp;nbsp; &lt;/STRONG&gt;add this as expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =aggr(if(rank(sum(Sales))&amp;lt;=4,GUID),GUID) &lt;/STRONG&gt;add this as calculated dimension&lt;/P&gt;&lt;P&gt;2. for sorting of these values in a Pivot table you need to add the sorting expression under the sort tab as per your requirement like-&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;=if(rank(sum(Sales))&amp;lt;=4, sum(Sales))&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Else you can use straight table&amp;nbsp; and make the sorting on the expression.&lt;/P&gt;&lt;P&gt;VK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 03:37:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-the-Expression/m-p/1813174#M1212763</guid>
      <dc:creator>Vikash</dc:creator>
      <dc:date>2021-06-06T03:37:00Z</dc:date>
    </item>
  </channel>
</rss>

