<?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: Bucket Creation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bucket-Creation/m-p/703292#M671953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Somewhat Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="66845" alt="Gui.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/66845_Gui.png" style="width: 620px; height: 286px;" /&gt;&lt;/P&gt;&lt;P&gt;I need the Buckets to get changed on specific Selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Sep 2014 04:14:23 GMT</pubDate>
    <dc:creator>aveeeeeee7en</dc:creator>
    <dc:date>2014-09-16T04:14:23Z</dc:date>
    <item>
      <title>Bucket Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Bucket-Creation/m-p/703290#M671951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have fields:&lt;/P&gt;&lt;P&gt;1) Division - OIS, PPP&lt;/P&gt;&lt;P&gt;2) CM_RT_Time - 0:00:42, 0:03:05, .............&lt;/P&gt;&lt;P&gt;3) Model Mapping - Big Machines, Small Machines&lt;/P&gt;&lt;P&gt;4) Flag - Metro, Remote-1, Remote-2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out of these, I have to create Buckets. The Buckets are created on the basis of Hours.&lt;/P&gt;&lt;P&gt;I've created the Buckets using&amp;nbsp; AVG(CM_RT_Time) but facing some issues.&lt;/P&gt;&lt;P&gt;See the Snapshot for the requirement:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="66835" alt="Bucket Creation.png" class="jive-image" src="/legacyfs/online/66835_Bucket Creation.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need Script or Expression for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aviral Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 03:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bucket-Creation/m-p/703290#M671951</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-09-16T03:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Bucket Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Bucket-Creation/m-p/703291#M671952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the needed UI output you want&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 04:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bucket-Creation/m-p/703291#M671952</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-09-16T04:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Bucket Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Bucket-Creation/m-p/703292#M671953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Somewhat Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="66845" alt="Gui.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/66845_Gui.png" style="width: 620px; height: 286px;" /&gt;&lt;/P&gt;&lt;P&gt;I need the Buckets to get changed on specific Selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 04:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bucket-Creation/m-p/703292#M671953</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-09-16T04:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bucket Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Bucket-Creation/m-p/703293#M671954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any Suggestion guys???????????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 05:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bucket-Creation/m-p/703293#M671954</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-09-16T05:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Bucket Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Bucket-Creation/m-p/703294#M671955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try like this&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Hrs &amp;gt;= 0 and Hrs &amp;lt;= 2 , '0-2 Hrs',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(Hrs &amp;gt;= 2 and Hrs &amp;lt;= 4 , '2-4 Hrs',&lt;/SPAN&gt;',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(Hrs &amp;gt;= 4 and Hrs &amp;lt;= 6 , '4-6 Hrs',&lt;/SPAN&gt;)) as Hrs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 05:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bucket-Creation/m-p/703294#M671955</guid>
      <dc:creator>deepakqlikview_123</dc:creator>
      <dc:date>2014-09-16T05:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Bucket Creation</title>
      <link>https://community.qlik.com/t5/QlikView/Bucket-Creation/m-p/703295#M671956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To create regular clusters you could use the function class(). Unregular clusters are also possible but the effort is higher because then it will be some if-loops within the function needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Easier is often to use a mapping with applymap(). Therefor you needed only a round function or a similar logic to create fixed values then a greater or less then isn't possible:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HourMap:&lt;/P&gt;&lt;P&gt;Mapping Load * Inline [&lt;/P&gt;&lt;P&gt;0, 0-2 Hrs&lt;/P&gt;&lt;P&gt;1, 0-2 Hrs&lt;/P&gt;&lt;P&gt;2, 2-4 Hrs&lt;/P&gt;&lt;P&gt;3, 2-4 Hrs&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table:&lt;/P&gt;&lt;P&gt;Load *;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; applymap('HourMap', floor(Hrs), 'DefaultValue') as HrsCluster&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Such mapping-tables are easily created in excel even if you have then 24 hrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 06:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bucket-Creation/m-p/703295#M671956</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-09-16T06:22:41Z</dc:date>
    </item>
  </channel>
</rss>

