<?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 Lock down of dynamic buckets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Lock-down-of-dynamic-buckets/m-p/1406409#M425810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;hope you all having good time.&lt;/P&gt;&lt;P&gt;I am bit stuck in a logic I created in calculation of dynamic buckets. I was required to calculate dynamic buckets for the count of Item Number under their respective percentiles as in how much percentage of the time a particular Item has been Traded in selected Trades.&lt;/P&gt;&lt;P&gt;Confusing...&lt;/P&gt;&lt;P&gt;let me give you an example&lt;/P&gt;&lt;P&gt;1. If an Item Item1 falls in 10-20 percentile in Trade 1 and Trade 2 but in Trade 3 it falls in 30-40 percentile than we will read Item1 will fall in 30 - 40 % with 33.3% in 10-20&amp;nbsp; percentile and 60-70 % with 66.66 % in 30-40 percentile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. It an Item Item1 falls in same percentile .. say 40-50 in all three selected Trades that it will be read as Item1 is 100% of the time traded in all three trades at 40 -50 percentile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. If an Item Item1 falls in three different Percentile like 10-20, 20-30, 40-50 on selection of 3 Trades, it will read as 33.33 % of the time in all respective trades and percentiles.&lt;/P&gt;&lt;P&gt;Dynamic Buckets is subjected to selection of Trades.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the issue is I am using Calculated Dimension for bucketing and i am getting the correct Counts&amp;nbsp; in the data grid as well but when&amp;nbsp; when i am clicking on any count which is the intersection of Percentile and Bucket ("How Often")&amp;nbsp; to drill down to the details of counts, my dynamic buckets recalculates and hampering the results.&lt;/P&gt;&lt;P&gt;So if I select all three Trades and select 4 under 80-90 percentile with 60 -70% time it should give details of 4 Items not sure why its giving me 5 Items.&lt;/P&gt;&lt;P&gt;Please find the QV and attached data set here as well.&lt;/P&gt;&lt;P&gt;Please feel free to let me a different approach as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Oct 2017 18:39:46 GMT</pubDate>
    <dc:creator>madhur4qlik</dc:creator>
    <dc:date>2017-10-20T18:39:46Z</dc:date>
    <item>
      <title>Lock down of dynamic buckets</title>
      <link>https://community.qlik.com/t5/QlikView/Lock-down-of-dynamic-buckets/m-p/1406409#M425810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;hope you all having good time.&lt;/P&gt;&lt;P&gt;I am bit stuck in a logic I created in calculation of dynamic buckets. I was required to calculate dynamic buckets for the count of Item Number under their respective percentiles as in how much percentage of the time a particular Item has been Traded in selected Trades.&lt;/P&gt;&lt;P&gt;Confusing...&lt;/P&gt;&lt;P&gt;let me give you an example&lt;/P&gt;&lt;P&gt;1. If an Item Item1 falls in 10-20 percentile in Trade 1 and Trade 2 but in Trade 3 it falls in 30-40 percentile than we will read Item1 will fall in 30 - 40 % with 33.3% in 10-20&amp;nbsp; percentile and 60-70 % with 66.66 % in 30-40 percentile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. It an Item Item1 falls in same percentile .. say 40-50 in all three selected Trades that it will be read as Item1 is 100% of the time traded in all three trades at 40 -50 percentile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. If an Item Item1 falls in three different Percentile like 10-20, 20-30, 40-50 on selection of 3 Trades, it will read as 33.33 % of the time in all respective trades and percentiles.&lt;/P&gt;&lt;P&gt;Dynamic Buckets is subjected to selection of Trades.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the issue is I am using Calculated Dimension for bucketing and i am getting the correct Counts&amp;nbsp; in the data grid as well but when&amp;nbsp; when i am clicking on any count which is the intersection of Percentile and Bucket ("How Often")&amp;nbsp; to drill down to the details of counts, my dynamic buckets recalculates and hampering the results.&lt;/P&gt;&lt;P&gt;So if I select all three Trades and select 4 under 80-90 percentile with 60 -70% time it should give details of 4 Items not sure why its giving me 5 Items.&lt;/P&gt;&lt;P&gt;Please find the QV and attached data set here as well.&lt;/P&gt;&lt;P&gt;Please feel free to let me a different approach as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 18:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lock-down-of-dynamic-buckets/m-p/1406409#M425810</guid>
      <dc:creator>madhur4qlik</dc:creator>
      <dc:date>2017-10-20T18:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Lock down of dynamic buckets</title>
      <link>https://community.qlik.com/t5/QlikView/Lock-down-of-dynamic-buckets/m-p/1406410#M425811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked for me as i added a % key which is nothing but a concatenation of all the objects mention in Aggr.&lt;/P&gt;&lt;P&gt;in the script i added a column:&lt;/P&gt;&lt;P&gt;[Item Number]&amp;amp;[Item Percentile Band]&amp;amp;[Trades] as %Key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now include the same in your calculated expression like this..:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;gt;vLow1 &lt;/P&gt;&lt;P&gt;and Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;lt;=vHigh1, vBucket1,&lt;/P&gt;&lt;P&gt;if(Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;gt;vLow2 &lt;/P&gt;&lt;P&gt;and Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;lt;=vHigh2, vBucket2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;gt;vLow3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;lt;=vHigh3, vBucket3,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;gt;vLow4 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;lt;=vHigh4, vBucket4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;gt;vLow5 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;lt;=vHigh5, vBucket5,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;gt;vLow6 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;lt;=vHigh6, vBucket6,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;gt;vLow7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;lt;=vHigh7, vBucket7,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;gt;vLow8 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;lt;=vHigh8, vBucket8,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;gt;vLow9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;lt;=vHigh9, vBucket9,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;gt;vLow10 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and Aggr(((100)/(Count(total&amp;lt;[Item Number]&amp;gt;[Item Percentile Band])))*(Count(total&amp;lt;[Item Percentile Band],[Item Number]&amp;gt;[Item Percentile Band])),%Key,[Item Percentile Band],[Item Number],Trades)&amp;lt;=vHigh10,vBucket10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ))))))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 14:11:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Lock-down-of-dynamic-buckets/m-p/1406410#M425811</guid>
      <dc:creator>madhur4qlik</dc:creator>
      <dc:date>2017-10-25T14:11:28Z</dc:date>
    </item>
  </channel>
</rss>

