<?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: How can I group data in one dimension? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586142#M1102830</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any reason why you can't sum the cars per company in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Apr 2014 12:59:00 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-04-01T12:59:00Z</dc:date>
    <item>
      <title>How can I group data in one dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586136#M1102824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In edit script you can do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="nested_field.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/56322_nested_field.JPG.jpg" style="width: 620px; height: 137px;" /&gt;&lt;/P&gt;&lt;P&gt;The field "no_of employees" is segregated and a new field "employee_range" is made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside Qlikview you can make a listbox using the "employee_range" dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="nested_field2.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/56323_nested_field2.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my problem is: How can implement this inside Qlikview? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field with the list of companies and total cars per company. I want to create a new dimension to separate these companies based on the number of cars. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My plan is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make a dimension named total_car_range with with sub fields inside like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;= 250 cars&lt;/P&gt;&lt;P&gt;100-249 cars&lt;/P&gt;&lt;P&gt;50-99 cars&lt;/P&gt;&lt;P&gt;20-49 cars&lt;/P&gt;&lt;P&gt;10-19 cars&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you understand my point. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 12:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586136#M1102824</guid>
      <dc:creator />
      <dc:date>2014-04-01T12:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group data in one dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586137#M1102825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide some sample data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 12:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586137#M1102825</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-04-01T12:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group data in one dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586138#M1102826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(Employees&amp;lt;=5,dual('5',1),&lt;/P&gt;&lt;P&gt;if(Employees&amp;gt;=6 and Employees&amp;lt;=15,dual('0-15',2))&lt;/P&gt;&lt;P&gt;like this u can create it will work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 12:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586138#M1102826</guid>
      <dc:creator>nizamsha</dc:creator>
      <dc:date>2014-04-01T12:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group data in one dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586139#M1102827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create that field in the script. As long as you don't need to change the ranges on the fly in the front end then creating the field in the script is the best solution. If you must create the range field dynamically in the front end you can use the approach described here: &lt;A href="https://community.qlik.com/docs/DOC-6086"&gt;Users can map/group dimensions at run-time!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 12:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586139#M1102827</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-04-01T12:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group data in one dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586140#M1102828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Tab1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, Key, Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, a, 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, b, 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, c, 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, d, 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, e, 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID, Key as KEY, Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;,if(Value&amp;gt;=1 and Value&amp;lt;3,'1-3',if(Value&amp;gt;=3 and Value&amp;lt;5 ,'3-5',if(Value&amp;gt;=5,'+5'))) as Range&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;resident Tab1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;drop table Tab1;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 12:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586140#M1102828</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-04-01T12:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group data in one dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586141#M1102829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't simply create the field in the edit script. Unlike in the "no_of_employees" field where the data is already fix meaning no more calculations made so its easy to separate them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I can't create the field is I need to sum up all cars per company first to get the data I want. Once I have the data that's the time I want to segregate it. Unless I can calculate the data in the edit script. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 12:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586141#M1102829</guid>
      <dc:creator />
      <dc:date>2014-04-01T12:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group data in one dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586142#M1102830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any reason why you can't sum the cars per company in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 12:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586142#M1102830</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-04-01T12:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group data in one dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586143#M1102831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide some data or write a code for that field like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; if( YourField &amp;gt;= 10 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YourField&lt;/SPAN&gt; &amp;lt;= 10,'10-19 cars',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YourField&lt;/SPAN&gt; &amp;gt;= 20 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YourField&lt;/SPAN&gt; &amp;lt;= 49,'20-49 cars',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YourField&lt;/SPAN&gt; &amp;gt;= 50 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YourField&lt;/SPAN&gt; &amp;lt;= 99,'50-99 cars',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YourField&lt;/SPAN&gt; &amp;gt;= 100 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YourField&lt;/SPAN&gt; &amp;lt;= 249,'100-249 cars',&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YourField&lt;/SPAN&gt; &amp;gt;= 250,'250 cars'))))) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;total_car_range &lt;/SPAN&gt;&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;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 13:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586143#M1102831</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-01T13:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group data in one dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586144#M1102832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok here is my sample data from a database:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="56334" alt="car_data.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/56334_car_data.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flt_company_id:&lt;/P&gt;&lt;P&gt;1 = company1&lt;/P&gt;&lt;P&gt;2 = company2&lt;/P&gt;&lt;P&gt;3 = company3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flt_brand_id:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 = audi&lt;/P&gt;&lt;P&gt;2 = bmw&lt;/P&gt;&lt;P&gt;3 = mercedez&lt;/P&gt;&lt;P&gt;4 = toyota&lt;/P&gt;&lt;P&gt;5= opel&lt;/P&gt;&lt;P&gt;6 = honda&lt;/P&gt;&lt;P&gt;7 = suzuki&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is separate each company by the sum of all their cars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;company1 has 50 cars&lt;/P&gt;&lt;P&gt;company2 has 110 cars&lt;/P&gt;&lt;P&gt;company3 has 75 cars&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can I do it in edit script? Or is their a way to make it inside Qlikview? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 13:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586144#M1102832</guid>
      <dc:creator />
      <dc:date>2014-04-01T13:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group data in one dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586145#M1102833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see also&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-6076"&gt;grouping dimension values&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 14:03:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-group-data-in-one-dimension/m-p/586145#M1102833</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-04-01T14:03:22Z</dc:date>
    </item>
  </channel>
</rss>

