<?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: Creating Groupings of Calculated Dimensions in a Chart Based On Count of Distinct Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-Groupings-of-Calculated-Dimensions-in-a-Chart-Based-On/m-p/281906#M1177215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very nice. Thank you, Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2012 15:50:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-17T15:50:05Z</dc:date>
    <item>
      <title>Creating Groupings of Calculated Dimensions in a Chart Based On Count of Distinct Values</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Groupings-of-Calculated-Dimensions-in-a-Chart-Based-On/m-p/281903#M1177212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, All.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very new to QlikView, and I need advice on creating a bar chart based on a complicated (or at least I think it is) set of calculated dimensions and expressions. I have data describing vehicle sales, and I want to see the number of vehicles sold by each distinct salesperson grouped by intervals of vehicles sold. I want buckets of sold vehicles to be displayed as the primary dimension (x-axis) on a bar chart, and I want these buckets to be some number of equally spaced intervals; e.g. 1-3, 4-6, 7-9, etc. I would then like to have the individual salesperson as a secondary dimension displayed as a stacked value. It doesn't matter what vehicle the salesperson sells; it simply matters that they sold a vehicle. Each salesperson should only be connected to one number of vehicles sold, and each salesperson should be connected to a number. Finally, each salesperson should only show up in one bar of the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data look similar to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Salesperson&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Vehicle&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Vehicle Sold&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Model 1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Model 1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Model 1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Model 2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Model 2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;Model 1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where I have a field containing non-distinct salespeople, a field with the vehicle type, and a field containing a 1 for each vehicle sold. If the vehicle sold column is summed, it returns the same value as count([Vehicle]). I am hoping that this field somehow helps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume from this example data that I want the main dimension of a graph to be groupings of vehicles sold as "1 to 2" and "3 to 4" so that the first group contains Salesperson A (2 sales) and Salesperson C (1 sale), while the second group contains just Salesperson B (3 sales). I then want the bars to be stacked by salesperson so that the first bar is split to show Salesperson A and C, and the second contains just Salesperson B. I want the expression (y-axis) to display the sum of the counts of sales made so that the first bar is 3 units high (2 from Salesperson A, 1 from C) and the second is also 3 units high (all 3 from Salesperson B).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to make everything as clear as possible, but if I didn't, please ask me for further explanation. My actual dataset has approximately 100 distinct salespeople and approximately 400 vehicles sold. I am thinking that I will bucket the primary dimension into groupings of 3 vehicles sold so that the X-axis displays 1-3, 4-6, 7-9, 10-12, and 13+. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 16:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Groupings-of-Calculated-Dimensions-in-a-Chart-Based-On/m-p/281903#M1177212</guid>
      <dc:creator />
      <dc:date>2012-02-14T16:37:44Z</dc:date>
    </item>
    <item>
      <title>Creating Groupings of Calculated Dimensions in a Chart Based On Count of Distinct Values</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Groupings-of-Calculated-Dimensions-in-a-Chart-Based-On/m-p/281904#M1177213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone at least point me in the right direction? Any help at all would be much appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks again for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 18:42:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Groupings-of-Calculated-Dimensions-in-a-Chart-Based-On/m-p/281904#M1177213</guid>
      <dc:creator />
      <dc:date>2012-02-16T18:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Groupings of Calculated Dimensions in a Chart Based On Count of Distinct Values</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Groupings-of-Calculated-Dimensions-in-a-Chart-Based-On/m-p/281905#M1177214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the attached application is the solution what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 06:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Groupings-of-Calculated-Dimensions-in-a-Chart-Based-On/m-p/281905#M1177214</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2012-02-17T06:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Groupings of Calculated Dimensions in a Chart Based On Count of Distinct Values</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-Groupings-of-Calculated-Dimensions-in-a-Chart-Based-On/m-p/281906#M1177215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very nice. Thank you, Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 15:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-Groupings-of-Calculated-Dimensions-in-a-Chart-Based-On/m-p/281906#M1177215</guid>
      <dc:creator />
      <dc:date>2012-02-17T15:50:05Z</dc:date>
    </item>
  </channel>
</rss>

