<?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: decile creation in Water Cooler</title>
    <link>https://community.qlik.com/t5/Water-Cooler/decile-creation/m-p/1506410#M5017</link>
    <description>Decile function divides your data into 10 equal parts... which is why you are seeing almost the same number of observations within each bucket. I am not sure I understand the logic behind your expected output. Would you be able to share a sample to look at this?</description>
    <pubDate>Wed, 14 Nov 2018 15:37:32 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-11-14T15:37:32Z</dc:date>
    <item>
      <title>decile creation</title>
      <link>https://community.qlik.com/t5/Water-Cooler/decile-creation/m-p/1506345#M4985</link>
      <description>&lt;P&gt;hi everyone,&lt;/P&gt;&lt;P&gt;we have a DB of fidelity card. Each card has his sales value and we would like to create sales decile. For example in excel:&amp;nbsp; &amp;nbsp;we order fidelity card for decreasing&amp;nbsp;sales value, then we calculate percentage share, then we calculate cumulate share so the first decile is composed by the ffidelity card those make the first 10%&amp;nbsp; of&amp;nbsp;&lt;SPAN&gt;cumulate share.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this for each pharmacy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;we try with this&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=if(aggr(Sum(VALORE),TESSERA) &amp;lt;= fractile(TOTAL aggr(Sum(VALORE),TESSERA), 0.10), 1,&lt;BR /&gt;if(aggr(Sum(VALORE),TESSERA) &amp;lt;= fractile(TOTAL aggr(Sum(VALORE),TESSERA), 0.20), 2,&lt;BR /&gt;if(aggr(Sum(VALORE),TESSERA) &amp;lt;= fractile(TOTAL aggr(Sum(VALORE),TESSERA), 0.30), 3,&lt;BR /&gt;if(aggr(Sum(VALORE),TESSERA) &amp;lt;= fractile(TOTAL aggr(Sum(VALORE),TESSERA), 0.40), 4,&lt;BR /&gt;if(aggr(Sum(VALORE),TESSERA) &amp;lt;= fractile(TOTAL aggr(Sum(VALORE),TESSERA), 0.50), 5,&lt;BR /&gt;if(aggr(Sum(VALORE),TESSERA) &amp;lt;= fractile(TOTAL aggr(Sum(VALORE),TESSERA), 0.60), 6,&lt;BR /&gt;if(aggr(Sum(VALORE),TESSERA) &amp;lt;= fractile(TOTAL aggr(Sum(VALORE),TESSERA), 0.70), 7,&lt;BR /&gt;if(aggr(Sum(VALORE),TESSERA) &amp;lt;= fractile(TOTAL aggr(Sum(VALORE),TESSERA), 0.80), 8,&lt;BR /&gt;if(aggr(Sum(VALORE),TESSERA) &amp;lt;= fractile(TOTAL aggr(Sum(VALORE),TESSERA), 0.90), 9,10)))))))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;there is someone that can help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 14:31:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/decile-creation/m-p/1506345#M4985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-14T14:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: decile creation</title>
      <link>https://community.qlik.com/t5/Water-Cooler/decile-creation/m-p/1506380#M5004</link>
      <description>&lt;P&gt;What issues or errors are you running into when you use this?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 15:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/decile-creation/m-p/1506380#M5004</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-14T15:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: decile creation</title>
      <link>https://community.qlik.com/t5/Water-Cooler/decile-creation/m-p/1506402#M5014</link>
      <description>&lt;P&gt;with istruction writed before we have&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Decili&lt;/TD&gt;&lt;TD&gt;number card&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;891&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;890&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;890&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;891&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;890&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;888&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;892&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;881&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;884&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;908&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but what we expect is&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Decili&lt;/TD&gt;&lt;TD&gt;Number card&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;201&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;259&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;700&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;985&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;1158&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;2500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;3890&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;5400&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where&amp;nbsp;in the first decile there are less number card then the 10th decile because in the firt decile there are most valueble cards instead in the 10th decile there are low budget cards.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 15:26:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/decile-creation/m-p/1506402#M5014</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-14T15:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: decile creation</title>
      <link>https://community.qlik.com/t5/Water-Cooler/decile-creation/m-p/1506410#M5017</link>
      <description>Decile function divides your data into 10 equal parts... which is why you are seeing almost the same number of observations within each bucket. I am not sure I understand the logic behind your expected output. Would you be able to share a sample to look at this?</description>
      <pubDate>Wed, 14 Nov 2018 15:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/decile-creation/m-p/1506410#M5017</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-14T15:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: decile creation</title>
      <link>https://community.qlik.com/t5/Water-Cooler/decile-creation/m-p/1506440#M5027</link>
      <description>&lt;P&gt;In attached you can find a example where i select one pharmacy and the period giuly - october.&lt;/P&gt;&lt;P&gt;i hope that you can understand.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 16:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/decile-creation/m-p/1506440#M5027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-14T16:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: decile creation</title>
      <link>https://community.qlik.com/t5/Water-Cooler/decile-creation/m-p/1506457#M5030</link>
      <description>&lt;P&gt;Are you using QlikView 12.1 or above or Qlik Sense... you can try this&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;PRE&gt;=Aggr(If(RangeSum(Above(Sum([SUM(VALORE) - SALES]), 0, RowNo()))/Sum(TOTAL [SUM(VALORE) - SALES]) &amp;lt; 0.1, 1,
	 If(RangeSum(Above(Sum([SUM(VALORE) - SALES]), 0, RowNo()))/Sum(TOTAL [SUM(VALORE) - SALES]) &amp;lt; 0.2, 2,
	 If(RangeSum(Above(Sum([SUM(VALORE) - SALES]), 0, RowNo()))/Sum(TOTAL [SUM(VALORE) - SALES]) &amp;lt; 0.3, 3,
	 If(RangeSum(Above(Sum([SUM(VALORE) - SALES]), 0, RowNo()))/Sum(TOTAL [SUM(VALORE) - SALES]) &amp;lt; 0.4, 4,
	 If(RangeSum(Above(Sum([SUM(VALORE) - SALES]), 0, RowNo()))/Sum(TOTAL [SUM(VALORE) - SALES]) &amp;lt; 0.5, 5,
	 If(RangeSum(Above(Sum([SUM(VALORE) - SALES]), 0, RowNo()))/Sum(TOTAL [SUM(VALORE) - SALES]) &amp;lt; 0.6, 6,
	 If(RangeSum(Above(Sum([SUM(VALORE) - SALES]), 0, RowNo()))/Sum(TOTAL [SUM(VALORE) - SALES]) &amp;lt; 0.7, 7,
	 If(RangeSum(Above(Sum([SUM(VALORE) - SALES]), 0, RowNo()))/Sum(TOTAL [SUM(VALORE) - SALES]) &amp;lt; 0.8, 8,
	 If(RangeSum(Above(Sum([SUM(VALORE) - SALES]), 0, RowNo()))/Sum(TOTAL [SUM(VALORE) - SALES]) &amp;lt; 0.9, 9, 10))))))))), ([TESSERA (FIDELITY CARD)], (=Sum([SUM(VALORE) - SALES]), DESC)))&lt;/PRE&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;PRE&gt;=Count( [TESSERA (FIDELITY CARD)])&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Nov 2018 16:16:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/decile-creation/m-p/1506457#M5030</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-14T16:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: decile creation</title>
      <link>https://community.qlik.com/t5/Water-Cooler/decile-creation/m-p/1506905#M5168</link>
      <description>&lt;P&gt;hello i use Qlik sense and using your formula in dimention, i get only 1 decile (you can see it in attached)&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 08:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/decile-creation/m-p/1506905#M5168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-15T08:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: decile creation</title>
      <link>https://community.qlik.com/t5/Water-Cooler/decile-creation/m-p/1506992#M5211</link>
      <description>&lt;P&gt;Hello thanks very much. i change the field [Sum (value)] with value and now it works.&lt;/P&gt;&lt;P&gt;thannks&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 09:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/decile-creation/m-p/1506992#M5211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-15T09:53:50Z</dc:date>
    </item>
  </channel>
</rss>

