<?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: Counting occurrences in a bar chart. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448975#M459187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I did change the statement for it to be applicable. I forgot to mention that in my response.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/181326_Capture.PNG" style="height: 347px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;This is where I am getting the error&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/181327_Capture2.PNG" style="height: 347px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Oct 2017 17:45:31 GMT</pubDate>
    <dc:creator>justcotto</dc:creator>
    <dc:date>2017-10-27T17:45:31Z</dc:date>
    <item>
      <title>Counting occurrences in a bar chart.</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448971#M459183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart that records employee information.&amp;nbsp; There is a column labeled Record_Type that labels each employee as HIRE, TERM, TRANSFER or HEADCOUNT.&amp;nbsp; I want to make a&lt;SPAN style="font-size: 10pt;"&gt; table and chart that displays the number of Hires and Terminations by Business Unit.&amp;nbsp; I am brand new to Qlik and was wondering what statement I could use to count hires and terminations while excluding the others.&amp;nbsp; Initially I thought to use GetSelectedCount but I am not sure how to approach this problem. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 16:17:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448971#M459183</guid>
      <dc:creator>justcotto</dc:creator>
      <dc:date>2017-10-27T16:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Counting occurrences in a bar chart.</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448972#M459184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your chart should be set up something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;Business_Unit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; count({&amp;lt;Record_Type={'HIRE'}&amp;gt;} distinct Employee_ID)&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;count({&amp;lt;Record_Type={'TERM'}&amp;gt;} distinct Employee_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The set analysis is what takes care of filtering out the other values.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 16:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448972#M459184</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2017-10-27T16:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Counting occurrences in a bar chart.</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448973#M459185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I did that it returned this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/181325_Capture.PNG" style="height: 385px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Also when I try to insert that second line for 'TERM', it gives me and error saying garbage after count.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 16:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448973#M459185</guid>
      <dc:creator>justcotto</dc:creator>
      <dc:date>2017-10-27T16:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Counting occurrences in a bar chart.</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448974#M459186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Case of the field name matters, and it looks like your field is named RECORD_TYPE and not Record_Type:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1.&amp;nbsp; count({&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;RECORD_TYPE&lt;/SPAN&gt;={'HIRE'}&amp;gt;} distinct Employee_ID)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2.&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;count({&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;RECORD_TYPE&lt;/SPAN&gt;={'TERM'}&amp;gt;} distinct Employee_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Make sure you name the employee ID field properly too.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 17:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448974#M459186</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2017-10-27T17:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Counting occurrences in a bar chart.</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448975#M459187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I did change the statement for it to be applicable. I forgot to mention that in my response.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/181326_Capture.PNG" style="height: 347px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;This is where I am getting the error&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/181327_Capture2.PNG" style="height: 347px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 17:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448975#M459187</guid>
      <dc:creator>justcotto</dc:creator>
      <dc:date>2017-10-27T17:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Counting occurrences in a bar chart.</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448976#M459188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to add two separate expressions.&amp;nbsp; Add the first one, hit OK, and then Add again.&amp;nbsp; The first one will count hires and the second will count terms, so name them appropriately.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 18:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448976#M459188</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2017-10-27T18:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Counting occurrences in a bar chart.</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448977#M459189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I appreciate you responding so quickly but I'm still not getting a correct count. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="dimensions.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/181335_dimensions.PNG" style="height: 524px; width: 620px;" /&gt;&lt;IMG alt="Expressions.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/181336_Expressions.PNG" style="height: 524px; width: 620px;" /&gt;&lt;IMG alt="table.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/181340_table.PNG" style="height: 252px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should look like this.&amp;nbsp; (when I filter data manually) &lt;/P&gt;&lt;P&gt;&lt;IMG alt="shouldlook.PNG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/181341_shouldlook.PNG" style="height: 222px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 18:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448977#M459189</guid>
      <dc:creator>justcotto</dc:creator>
      <dc:date>2017-10-27T18:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Counting occurrences in a bar chart.</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448978#M459190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's because you're using Business Unit in your expressions instead of an Employee ID, which I figured you would have for each person that was hired or terminated.&amp;nbsp; Using employee ID would be the most accurate way to count because you can add the distinct on there.&amp;nbsp; Without the distinct, you could be duplicating rows, and therefore duplicating your counts if you have a bad join in your load script.&amp;nbsp; With what you've provided me, the following expressions are what you need, but I would still suggest using an Employee ID with the distinct keyword instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1.&amp;nbsp; count({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;RECORD_TYPE&lt;/SPAN&gt;={'HIRE'}&amp;gt;} BUSINESS_UNIT)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2.&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;count({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;RECORD_TYPE&lt;/SPAN&gt;={'TERM'}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;BUSINESS_UNIT&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I highly suggest you go through some of the free training provided by Qlik to understand more about the product.&amp;nbsp; Here is a link to get you started: &lt;A href="http://go.qlik.com/Personal_Edition_Webinar_OnDemand.html?_ga=2.234861598.1290268156.1508951244-1833007234.1507823730" title="http://go.qlik.com/Personal_Edition_Webinar_OnDemand.html?_ga=2.234861598.1290268156.1508951244-1833007234.1507823730"&gt;QlikView Personal Edition On-Demand Webinar&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 20:53:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448978#M459190</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2017-10-27T20:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Counting occurrences in a bar chart.</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448979#M459191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I appreciate the help. Today is my first day using the product.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 21:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-occurrences-in-a-bar-chart/m-p/1448979#M459191</guid>
      <dc:creator>justcotto</dc:creator>
      <dc:date>2017-10-27T21:04:26Z</dc:date>
    </item>
  </channel>
</rss>

