<?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 Set Analysis: Top 10 records fitting a particular criteria in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Top-10-records-fitting-a-particular-criteria/m-p/1328285#M617982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently trying to write a QlikSense if statement to fill the following criteria - &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;the top 10 suppliers who supply over 10% of our current stock, and with a returns rate of above 35%.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;My current syntax is as follows, however this does not work:&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(Product.StockToday)/sum(Total Product.StockToday)) &amp;gt;.01 and (Sum(Sales.ReturnsLineTotalGBP)/sum(Sales.GrossSellingPriceGBP)) &amp;lt;.35 ,&lt;BR /&gt; Rank(aggr((Sum(Sales.ReturnsLineTotalGBP)/sum(Sales.GrossSellingPriceGBP))), Product.Current_Supplier,4))&amp;lt;11, Product.Current_Supplier),Product.Current_Supplier) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Calibri, sans-serif;"&gt;Any tips of solutions would be greatly appreciated - thanks! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 May 2017 10:33:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-05-24T10:33:28Z</dc:date>
    <item>
      <title>Set Analysis: Top 10 records fitting a particular criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Top-10-records-fitting-a-particular-criteria/m-p/1328285#M617982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently trying to write a QlikSense if statement to fill the following criteria - &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;the top 10 suppliers who supply over 10% of our current stock, and with a returns rate of above 35%.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;My current syntax is as follows, however this does not work:&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(Product.StockToday)/sum(Total Product.StockToday)) &amp;gt;.01 and (Sum(Sales.ReturnsLineTotalGBP)/sum(Sales.GrossSellingPriceGBP)) &amp;lt;.35 ,&lt;BR /&gt; Rank(aggr((Sum(Sales.ReturnsLineTotalGBP)/sum(Sales.GrossSellingPriceGBP))), Product.Current_Supplier,4))&amp;lt;11, Product.Current_Supplier),Product.Current_Supplier) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Calibri, sans-serif;"&gt;Any tips of solutions would be greatly appreciated - thanks! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 10:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Top-10-records-fitting-a-particular-criteria/m-p/1328285#M617982</guid>
      <dc:creator />
      <dc:date>2017-05-24T10:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Top 10 records fitting a particular criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Top-10-records-fitting-a-particular-criteria/m-p/1328286#M617983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to provide some sample data and also the expected output based on the data provided&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 15:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Top-10-records-fitting-a-particular-criteria/m-p/1328286#M617983</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-24T15:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Top 10 records fitting a particular criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Top-10-records-fitting-a-particular-criteria/m-p/1328287#M617984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response! Unfortunately, I cannot provide a data sample due to the sensitivity of the information. However, the output expected would be to see suppliers who provide over 10% of total stock ( &lt;SPAN style="font-family: Courier New;"&gt;sum(Total Product.StockToday))&lt;/SPAN&gt;) and have a returns rate of over 35% , then show the top 10 ranked by returns rate descending&lt;SPAN style="font-family: Courier New;"&gt;(Sum(Sales.ReturnsLineTotalGBP)/sum(Sales.GrossSellingPriceGBP). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 15:21:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Top-10-records-fitting-a-particular-criteria/m-p/1328287#M617984</guid>
      <dc:creator />
      <dc:date>2017-05-24T15:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: Top 10 records fitting a particular criteria</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Top-10-records-fitting-a-particular-criteria/m-p/1328288#M617985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dummy or mocked up data?&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 15:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Top-10-records-fitting-a-particular-criteria/m-p/1328288#M617985</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-24T15:33:09Z</dc:date>
    </item>
  </channel>
</rss>

