<?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: Detect, count, chart text field differences between months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Detect-count-chart-text-field-differences-between-months/m-p/439163#M163648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to create a field in the load script as a flag whether the employee is trasferred or not.&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;Load *, if(peek('Emp_ID') = Emp_ID and peek('BusinessUnit') &amp;lt;&amp;gt; BusinessUnit , 1, 0) AS IsTransferred;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Year,Month,Year_Month,Emp_ID,YR_MO_EID_Key,BusinessUnit&lt;/P&gt;&lt;P&gt;From ...&lt;/P&gt;&lt;P&gt;Order by Year_Month,Emp_ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then expression as &lt;/P&gt;&lt;P&gt;Sum(IsTransferred)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Dec 2012 21:49:18 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2012-12-14T21:49:18Z</dc:date>
    <item>
      <title>Detect, count, chart text field differences between months</title>
      <link>https://community.qlik.com/t5/QlikView/Detect-count-chart-text-field-differences-between-months/m-p/439162#M163647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My data looks like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="1" cellspacing="0" class="jiveBorder" style="width: 45%; border: 1px solid rgb(0, 0, 0);"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="background-color: #6690bc; color: #ffffff; text-align: center; padding: 1px; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Year&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="background-color: #6690bc; color: #ffffff; text-align: center; padding: 1px; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;TH style="background-color: #6690bc; color: #ffffff; text-align: center; padding: 1px; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Year_Month&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;TH style="background-color: #6690bc; color: #ffffff; text-align: center; padding: 1px; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Emp_ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/TH&gt;&lt;TH style="background-color: #6690bc; color: #ffffff; text-align: center; padding: 1px; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;YR_MO_EID_Key&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="background-color: #6690bc; color: #ffffff; text-align: center; padding: 1px; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Business Unit&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2011&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;&lt;P&gt;12&lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;&lt;P&gt;201112&lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;&lt;P&gt;1001&lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2011121001&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;ENT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;&lt;P&gt;2011&lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;12&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;201112&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;1002&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2011121002&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;SMB&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2012&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;201201&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;1001&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2012011001&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;ENT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2012&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;201201&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;1002&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2012011002&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;FND&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2012&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;201201&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;1003&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2012011002&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;ENT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2012&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;201202&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;1001&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2012021001&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;SMB&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2012&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;201202&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;1002&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2012021002&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;FND&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2012&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;201202&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;1003&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2012021003&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;SMB&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and I want to make a bar chart that shows the number of employees that have transferred into a business unit by month.&amp;nbsp; A table of this output would look like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="1" cellspacing="0" class="jiveBorder" style="width: 45%; border: 1px solid rgb(0, 0, 0);"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="background-color: #6690bc; color: #ffffff; text-align: center; padding: 1px; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Month&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="background-color: #6690bc; color: #ffffff; text-align: center; padding: 1px; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;ENT﻿&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="background-color: #6690bc; color: #ffffff; text-align: center; padding: 1px; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;SMB&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="background-color: #6690bc; color: #ffffff; text-align: center; padding: 1px; font-family: arial,helvetica,sans-serif;"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;FND&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;DEC-11&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;-&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;-&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;JAN-12&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;0&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;0&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;FEB-12&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;0&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;2&lt;/TD&gt;&lt;TD style="color: #000000; text-align: left; padding: 1px; background-color: transparent; font-family: arial,helvetica,sans-serif;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first row is empty because there is no data prior to DEC-11.&amp;nbsp; Also, note that a new employee (1003) appears in JAN-12.&amp;nbsp; This new employee should not count as a transfer into a business unit.&amp;nbsp; If an employee stays in a business unit, that also should not count as a transfer into that business unit.&amp;nbsp; For a given month and for a given business unit, I only want to count the number of employees that a) existed in the previous month and b) changed business units to the given business unit.&amp;nbsp; How can I do this and put the monthly numbers in a bar chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 21:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detect-count-chart-text-field-differences-between-months/m-p/439162#M163647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-14T21:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Detect, count, chart text field differences between months</title>
      <link>https://community.qlik.com/t5/QlikView/Detect-count-chart-text-field-differences-between-months/m-p/439163#M163648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to create a field in the load script as a flag whether the employee is trasferred or not.&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;Load *, if(peek('Emp_ID') = Emp_ID and peek('BusinessUnit') &amp;lt;&amp;gt; BusinessUnit , 1, 0) AS IsTransferred;&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Year,Month,Year_Month,Emp_ID,YR_MO_EID_Key,BusinessUnit&lt;/P&gt;&lt;P&gt;From ...&lt;/P&gt;&lt;P&gt;Order by Year_Month,Emp_ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then expression as &lt;/P&gt;&lt;P&gt;Sum(IsTransferred)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 21:49:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Detect-count-chart-text-field-differences-between-months/m-p/439163#M163648</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-12-14T21:49:18Z</dc:date>
    </item>
  </channel>
</rss>

