<?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: Ovelaping Buckets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ovelaping-Buckets/m-p/522483#M1140943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried this, it wont work, since conflicting data is under 2 buckets, for ex: I have some id's whih has balance of &amp;gt; 25 come in '&amp;gt; 25 and' &amp;gt; 50 buckets, for ex: 80 will should come under both buckets, case statement by if does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Sep 2013 20:30:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-13T20:30:56Z</dc:date>
    <item>
      <title>Ovelaping Buckets</title>
      <link>https://community.qlik.com/t5/QlikView/Ovelaping-Buckets/m-p/522481#M1140941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I would like to write a case statement for overlaping puckers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex: I have account ids 1,2,3,4,5 with the balance 25,50,75,80,100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Buckets for more than balance of 25. It means everything will fall in this bucket&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Buckets for more than 50&amp;nbsp; ( 2,3,4,5 will fall in this bucket)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Buckets for more than 80&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normal if wont work since we have overlaping buckets. I would like display the data and calculations based on these buckets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help will be greatly appriciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 20:23:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ovelaping-Buckets/m-p/522481#M1140941</guid>
      <dc:creator />
      <dc:date>2013-09-13T20:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ovelaping Buckets</title>
      <link>https://community.qlik.com/t5/QlikView/Ovelaping-Buckets/m-p/522482#M1140942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can handle this at script level as front end level&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(balance&amp;lt;=25,'Bucket 25',IF(balance&amp;lt;=80,'Bucket under 80','Bucket over 80')) as bucket;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 20:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ovelaping-Buckets/m-p/522482#M1140942</guid>
      <dc:creator />
      <dc:date>2013-09-13T20:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ovelaping Buckets</title>
      <link>https://community.qlik.com/t5/QlikView/Ovelaping-Buckets/m-p/522483#M1140943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried this, it wont work, since conflicting data is under 2 buckets, for ex: I have some id's whih has balance of &amp;gt; 25 come in '&amp;gt; 25 and' &amp;gt; 50 buckets, for ex: 80 will should come under both buckets, case statement by if does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 20:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ovelaping-Buckets/m-p/522483#M1140943</guid>
      <dc:creator />
      <dc:date>2013-09-13T20:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Ovelaping Buckets</title>
      <link>https://community.qlik.com/t5/QlikView/Ovelaping-Buckets/m-p/522484#M1140944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll have to multiply the number of records by the number of buckets so that if an account falls in N buckets you'll have N records for that account. For instance, I'd do the next:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Load your Accounts table and join the distinct Bucket values to create all the possible combinations&lt;/P&gt;&lt;P&gt;ACCOUNTS_TEMP:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCOUNT_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BALANCE&lt;/P&gt;&lt;P&gt;FROM TABLE1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOIN&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;BUCKETS&lt;/P&gt;&lt;P&gt;25&lt;/P&gt;&lt;P&gt;50&lt;/P&gt;&lt;P&gt;80&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Create a flag in order to know whether an account falls in a bucket and filter unfulfilling records&lt;/P&gt;&lt;P&gt;ACCOUNTS:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCOUNT_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BALANCE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' &amp;gt; ' &amp;amp; FALLS_IN_BUCKET&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS&amp;nbsp;&amp;nbsp; BUCKET&lt;/P&gt;&lt;P&gt;WHERE NOT ISNULL(FALLS_IN_BUCKET );&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCOUNT_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BALANCE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(BALANCE &amp;gt;= BUCKETS, BUCKETS, NULL()) AS FALLS_IN_BUCKET&lt;/P&gt;&lt;P&gt;RESIDENT ACCOUNTS_TEMP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE ACCOUNTS_TEMP;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 21:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ovelaping-Buckets/m-p/522484#M1140944</guid>
      <dc:creator>Carlos_Reyes</dc:creator>
      <dc:date>2013-09-13T21:34:39Z</dc:date>
    </item>
  </channel>
</rss>

