<?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 Need help for creating a set expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-for-creating-a-set-expression/m-p/902641#M1004846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;HI,&lt;/P&gt;&lt;P&gt;I have following tables:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Employee:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;Employee ID, Age, Customer Name, Sales&lt;BR /&gt;Sandip Ghosh, 34, Customer1, 1000&lt;BR /&gt;Ananya Ghosh, 29, Customer2, 1200&lt;BR /&gt;Amit Das, 35, Customer3, 3000&lt;BR /&gt;Kaushik Dhar, 55, Customer4, 5400&lt;BR /&gt;Sudhir Ghosh, 74, Customer5, 5980&lt;BR /&gt;Sandip Ghosh, 34, Customer6, 54670&lt;BR /&gt;Sandip Ghosh, 34, Customer7, 45675&lt;BR /&gt;Kaushik Dhar, 55, Customer8, 15400&lt;BR /&gt;Kaushik Dhar, 55, Customer9, 45400&lt;BR /&gt;Sudhir Ghosh, 74, Customer10, 6598&lt;BR /&gt;Ananya Ghosh, 29, Customer2, 16200&lt;BR /&gt;Sudhir Ghosh, 74, Customer5, 5980&lt;BR /&gt;Sudhir Ghosh, 74, Customer6, 2980&lt;BR /&gt;Ananya Ghosh, 29, Customer2, 12900&lt;BR /&gt;Ananya Ghosh, 29, Customer2, 12070&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Now I have to show top three Employee whose total means sum of sales is highest. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;For that I have used the following expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=Only({$&amp;lt;Sales={"$(=Max(Total Sales,3))"}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;But the above expression only display Top three employee whose sales are highest with only highest sales amount. But I want top 3 employee whose sum of sales are highest.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sandip&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2015 10:25:16 GMT</pubDate>
    <dc:creator>ananyaghosh</dc:creator>
    <dc:date>2015-05-21T10:25:16Z</dc:date>
    <item>
      <title>Need help for creating a set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-for-creating-a-set-expression/m-p/902641#M1004846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;HI,&lt;/P&gt;&lt;P&gt;I have following tables:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Employee:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;Employee ID, Age, Customer Name, Sales&lt;BR /&gt;Sandip Ghosh, 34, Customer1, 1000&lt;BR /&gt;Ananya Ghosh, 29, Customer2, 1200&lt;BR /&gt;Amit Das, 35, Customer3, 3000&lt;BR /&gt;Kaushik Dhar, 55, Customer4, 5400&lt;BR /&gt;Sudhir Ghosh, 74, Customer5, 5980&lt;BR /&gt;Sandip Ghosh, 34, Customer6, 54670&lt;BR /&gt;Sandip Ghosh, 34, Customer7, 45675&lt;BR /&gt;Kaushik Dhar, 55, Customer8, 15400&lt;BR /&gt;Kaushik Dhar, 55, Customer9, 45400&lt;BR /&gt;Sudhir Ghosh, 74, Customer10, 6598&lt;BR /&gt;Ananya Ghosh, 29, Customer2, 16200&lt;BR /&gt;Sudhir Ghosh, 74, Customer5, 5980&lt;BR /&gt;Sudhir Ghosh, 74, Customer6, 2980&lt;BR /&gt;Ananya Ghosh, 29, Customer2, 12900&lt;BR /&gt;Ananya Ghosh, 29, Customer2, 12070&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Now I have to show top three Employee whose total means sum of sales is highest. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;For that I have used the following expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=Only({$&amp;lt;Sales={"$(=Max(Total Sales,3))"}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;But the above expression only display Top three employee whose sales are highest with only highest sales amount. But I want top 3 employee whose sum of sales are highest.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sandip&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 10:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-for-creating-a-set-expression/m-p/902641#M1004846</guid>
      <dc:creator>ananyaghosh</dc:creator>
      <dc:date>2015-05-21T10:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for creating a set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-for-creating-a-set-expression/m-p/902642#M1004847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This thread could be helpful for you:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/124676"&gt;Top Performers; Set Analysis and Aggr Question&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 10:34:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-for-creating-a-set-expression/m-p/902642#M1004847</guid>
      <dc:creator>rakesh_kumar</dc:creator>
      <dc:date>2015-05-21T10:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for creating a set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-for-creating-a-set-expression/m-p/902643#M1004848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your using charts, then you can make use of the dimension limits, which will be very help full. &lt;/P&gt;&lt;P&gt;go to chart properties and dimension limits , show top &lt;SPAN style="font-size: 13.3333330154419px;"&gt;dimension with your desired number ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want it using expression try with Rank function &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 10:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-for-creating-a-set-expression/m-p/902643#M1004848</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-05-21T10:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for creating a set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-for-creating-a-set-expression/m-p/902644#M1004849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please see attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 10:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-for-creating-a-set-expression/m-p/902644#M1004849</guid>
      <dc:creator />
      <dc:date>2015-05-21T10:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help for creating a set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-for-creating-a-set-expression/m-p/902645#M1004850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandip &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this this is semple and easy &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF (aggr(rank( sum(Sales) ,0) , Sales )&amp;lt;= 3 , sum(Sales) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Harsha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 11:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-for-creating-a-set-expression/m-p/902645#M1004850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-21T11:11:36Z</dc:date>
    </item>
  </channel>
</rss>

