<?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 Chart with employee ranges? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Chart-with-employee-ranges/m-p/368441#M1172894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm in the process of building my first QlikView App, and need some help figuring out how to create ranges as dimensions on a bar chart.&amp;nbsp; I've tried a few different functions, but none of them seem to do what I need..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create the following ranges for "number of employees" field.&amp;nbsp; So, for 1-500, 501-1000, 1001-5000, 5001-10000, etc.&amp;nbsp; I want to count the number of distinct IDs that fall within each range.&amp;nbsp; Any help will be appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Meghan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 May 2012 17:45:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-24T17:45:45Z</dc:date>
    <item>
      <title>Chart with employee ranges?</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-employee-ranges/m-p/368441#M1172894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm in the process of building my first QlikView App, and need some help figuring out how to create ranges as dimensions on a bar chart.&amp;nbsp; I've tried a few different functions, but none of them seem to do what I need..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create the following ranges for "number of employees" field.&amp;nbsp; So, for 1-500, 501-1000, 1001-5000, 5001-10000, etc.&amp;nbsp; I want to count the number of distinct IDs that fall within each range.&amp;nbsp; Any help will be appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Meghan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 17:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-employee-ranges/m-p/368441#M1172894</guid>
      <dc:creator />
      <dc:date>2012-05-24T17:45:45Z</dc:date>
    </item>
    <item>
      <title>Chart with employee ranges?</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-employee-ranges/m-p/368442#M1172895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Meghan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post a sample of your application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 18:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-employee-ranges/m-p/368442#M1172895</guid>
      <dc:creator>mphekin12</dc:creator>
      <dc:date>2012-05-24T18:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Chart with employee ranges?</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-employee-ranges/m-p/368443#M1172896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Meghan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One method would be to create a range field in your load scripts to use as the dimension in your bar chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 19:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-employee-ranges/m-p/368443#M1172896</guid>
      <dc:creator>john_duffy</dc:creator>
      <dc:date>2012-05-24T19:20:28Z</dc:date>
    </item>
    <item>
      <title>Chart with employee ranges?</title>
      <link>https://community.qlik.com/t5/QlikView/Chart-with-employee-ranges/m-p/368444#M1172897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left;"&gt;Hi meghan,&lt;/P&gt;&lt;P style="text-align: left;"&gt;if for eg u want to make range for salary amount for distinct employee id's ,there are two way of doin it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;method 1:&lt;/SPAN&gt; Create a bucket of range of salaries in the script&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp; eg: if(salary&amp;gt;0 and salary&amp;lt;1000,'0-999',&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(salary&amp;gt;=1000 and salary&amp;lt;2000,'1000-1999',&lt;/P&gt;&lt;P style="text-align: left;"&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(salary&amp;gt;=2000,'&amp;gt;2000'))) as salrange&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp; and once u reload the app,field salrange will have that bucket which u can add in the dimension and in the expression u can use count(distinct employee_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;method 2:&amp;nbsp; &lt;/SPAN&gt;use class function&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp; eg: select chart and in the dimension tab click on add calculated dimension where u can use the below expression&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =class(salary,1000,'range')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where 1000 is the length of range &lt;/P&gt;&lt;P style="text-align: left;"&gt;and&amp;nbsp; range is the string that pops up in the dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;thereafter in the expression tab u can use the below expression&lt;/P&gt;&lt;P style="text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(distinct employee_id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Sudeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2012 08:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Chart-with-employee-ranges/m-p/368444#M1172897</guid>
      <dc:creator>sudeep_d</dc:creator>
      <dc:date>2012-05-26T08:51:20Z</dc:date>
    </item>
  </channel>
</rss>

