<?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 Decile analysis with filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Decile-analysis-with-filter/m-p/2006189#M1221543</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am using below logic&amp;nbsp; from&amp;nbsp;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Decile-analysis/td-p/1223944" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Decile-analysis/td-p/1223944&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=Aggr(&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.1), 10,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.2), 9,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.3), 8,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.4), 7,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.5), 6,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.6), 5,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.7), 4,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.8), 3,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.9), 2, 1))))))))), Customer)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However , I want to create a filter to only show 10% or 20% or 30% customer. How can I create this filter.&lt;/P&gt;
&lt;P&gt;After I create a filter pane by using this logic. When I select 10% it will continue the divide 10 part from the 10% of customer. The user can't identify they already select 10%.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2022 09:10:55 GMT</pubDate>
    <dc:creator>eddy9657</dc:creator>
    <dc:date>2022-11-18T09:10:55Z</dc:date>
    <item>
      <title>Decile analysis with filter</title>
      <link>https://community.qlik.com/t5/QlikView/Decile-analysis-with-filter/m-p/2006189#M1221543</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I am using below logic&amp;nbsp; from&amp;nbsp;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Decile-analysis/td-p/1223944" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Decile-analysis/td-p/1223944&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=Aggr(&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.1), 10,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.2), 9,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.3), 8,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.4), 7,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.5), 6,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.6), 5,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.7), 4,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.8), 3,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if(Sum(Profit) &amp;lt;= fractile(TOTAL Aggr(Sum(Profit), Customer), 0.9), 2, 1))))))))), Customer)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However , I want to create a filter to only show 10% or 20% or 30% customer. How can I create this filter.&lt;/P&gt;
&lt;P&gt;After I create a filter pane by using this logic. When I select 10% it will continue the divide 10 part from the 10% of customer. The user can't identify they already select 10%.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 09:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decile-analysis-with-filter/m-p/2006189#M1221543</guid>
      <dc:creator>eddy9657</dc:creator>
      <dc:date>2022-11-18T09:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Decile analysis with filter</title>
      <link>https://community.qlik.com/t5/QlikView/Decile-analysis-with-filter/m-p/2006311#M1221547</link>
      <description>&lt;P&gt;Can anyone help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 08:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decile-analysis-with-filter/m-p/2006311#M1221547</guid>
      <dc:creator>eddy9657</dc:creator>
      <dc:date>2022-11-18T08:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Decile analysis with filter</title>
      <link>https://community.qlik.com/t5/QlikView/Decile-analysis-with-filter/m-p/2006496#M1221552</link>
      <description>&lt;P&gt;You will need to add the set {1} into your expression to indicate ignore selections.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;if(Sum({1}Profit) &amp;lt;= fractile({1}TOTAL Aggr(Sum({1}Profit), Customer), 0.2), 9,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I think it's a little more efficient to calculate the decile rather than the multiple If(). Like this:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;=&lt;SPAN class="s1"&gt;Aggr&lt;/SPAN&gt;(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Ceil&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;Rank&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;Sum&lt;/SPAN&gt;({1}&lt;SPAN class="s2"&gt;Profit&lt;/SPAN&gt;),4,1) / &lt;SPAN class="s1"&gt;count&lt;/SPAN&gt;({1}&lt;SPAN class="s1"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;TOTAL&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Customer&lt;/SPAN&gt;), 0.1) * 10&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;, &lt;SPAN class="s2"&gt;Customer&lt;/SPAN&gt;)&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 15:36:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decile-analysis-with-filter/m-p/2006496#M1221552</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-11-18T15:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Decile analysis with filter</title>
      <link>https://community.qlik.com/t5/QlikView/Decile-analysis-with-filter/m-p/2006789#M1221563</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Rwunderlich&amp;nbsp;, Thank you so much for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 02:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Decile-analysis-with-filter/m-p/2006789#M1221563</guid>
      <dc:creator>eddy9657</dc:creator>
      <dc:date>2022-11-21T02:24:34Z</dc:date>
    </item>
  </channel>
</rss>

