<?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: Set Analysis using Rank in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Rank/m-p/586119#M217513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Larry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you know what result do you expect?&lt;/P&gt;&lt;P&gt;my expression should give you avg of LOS for set of records without those 4 ranked 1-4 (rank &amp;gt;=5)&lt;/P&gt;&lt;P&gt;rank is on DELTA value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think you dont need more dynamic, but maybe i do not understand your business needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, please write more what records should be considered to this AVG or show me those records in chart or in xls &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2014 18:57:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-16T18:57:27Z</dc:date>
    <item>
      <title>Set Analysis using Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Rank/m-p/586113#M217507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I'm having difficulty with a set analysis. I want to create a chart that shows the average of a field, and on the same chart show what the average would be after removing the top 5 percent of the outliers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;In the load script I've defined a variable to get the record count minus 5%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="; color: #808080;"&gt;&lt;STRONG&gt;&lt;EM&gt;vVisitsMinusOutliers&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; = '=Round((Count(RAND) * .95))'; &lt;SPAN style="color: #008000;"&gt;// returns the count of 95 percent of the total rows &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;in my expression I am using the following set analysis to filter out the top 5% of outliers but it's not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Avg({&amp;lt;&lt;SPAN style="; color: #808080;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vVisitsMinusOutliers)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; =&amp;nbsp; { &lt;SPAN style="color: #800000;"&gt;"&amp;gt;= $(=Rank(DELTA,4,1))"&lt;/SPAN&gt;}&amp;gt;} LOS) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I've attached a sample qvw with some test data. Hopefully what I'm asking makes sense.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 14:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Rank/m-p/586113#M217507</guid>
      <dc:creator>lsteere01</dc:creator>
      <dc:date>2014-04-16T14:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Rank/m-p/586114#M217508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Larry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check if there is some idea.&lt;/P&gt;&lt;P&gt;Let me know if you will find any tips.&lt;/P&gt;&lt;P&gt;I will try later to fight with it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/265535"&gt;Rank in Set analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 16:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Rank/m-p/586114#M217508</guid>
      <dc:creator />
      <dc:date>2014-04-16T16:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Rank/m-p/586115#M217509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Larry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look if result is correct. It may need some adjustments .... But gives result which looks good on first sight.&lt;/P&gt;&lt;P&gt;Let me know....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 16:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Rank/m-p/586115#M217509</guid>
      <dc:creator />
      <dc:date>2014-04-16T16:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Rank/m-p/586116#M217510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Now I just need to figure out how to add the dynamic record count into the formula.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 17:42:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Rank/m-p/586116#M217510</guid>
      <dc:creator>lsteere01</dc:creator>
      <dc:date>2014-04-16T17:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Rank/m-p/586117#M217511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tell me more details about this dynamic record count if you need more help of course &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 18:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Rank/m-p/586117#M217511</guid>
      <dc:creator />
      <dc:date>2014-04-16T18:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Rank/m-p/586118#M217512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your solution you hardcoded a 5 for the outlier value. It needs to be dynamic based on selections as in the example I originally provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;In the load script I defined a variable to get the record count minus 5%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #808080;"&gt;&lt;STRONG&gt;&lt;EM&gt;vVisitsMinusOutliers&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; = '=Round((Count(RAND) * .95))'; &lt;SPAN style="color: #008000;"&gt;// returns the count of 95 percent of the total rows &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;I tied modifying the expression you provided as follows but it didn't work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DELTA&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = { &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=Rank(DELTA,4,1)&amp;lt;=$(&lt;SPAN style="color: #808080;"&gt;&lt;STRONG&gt;&lt;EM&gt;vVisitsMinusOutliers&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LOS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), 0.01) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&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>Wed, 16 Apr 2014 18:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Rank/m-p/586118#M217512</guid>
      <dc:creator>lsteere01</dc:creator>
      <dc:date>2014-04-16T18:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis using Rank</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Rank/m-p/586119#M217513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Larry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you know what result do you expect?&lt;/P&gt;&lt;P&gt;my expression should give you avg of LOS for set of records without those 4 ranked 1-4 (rank &amp;gt;=5)&lt;/P&gt;&lt;P&gt;rank is on DELTA value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think you dont need more dynamic, but maybe i do not understand your business needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, please write more what records should be considered to this AVG or show me those records in chart or in xls &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 18:57:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-Rank/m-p/586119#M217513</guid>
      <dc:creator />
      <dc:date>2014-04-16T18:57:27Z</dc:date>
    </item>
  </channel>
</rss>

