<?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: Head Count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Head-Count/m-p/1205349#M387497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool, if your issue is now resolved, I would suggest you to close this thread by marking correct and helpful responses.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Oct 2016 09:44:34 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-10-13T09:44:34Z</dc:date>
    <item>
      <title>Head Count</title>
      <link>https://community.qlik.com/t5/QlikView/Head-Count/m-p/1205344#M387492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to make a bar chart Month wise and Area of Work wise to show the no of employee. For example if an employee has joined in the month of April'2015. It should show the count from April'2015 to Dec'2015 as 1 and also in the year 2016 as 1 from Jan'2016 to Dec'2016 for that DEPARTMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further if an employee has resigned in the month of May'2015, it should show the count as 1 from Jan'2015 to May'2015 and from jun'2015 to Dec'2015 as 0 for the same DEPARTMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample data of excel sheet and qvw are also attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 13:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Head-Count/m-p/1205344#M387492</guid>
      <dc:creator>pkpandey</dc:creator>
      <dc:date>2016-10-06T13:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Head Count</title>
      <link>https://community.qlik.com/t5/QlikView/Head-Count/m-p/1205345#M387493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this look like what you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139868_Capture.PNG" style="height: 304px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Report:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Employee, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [Area Of Work], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date As fDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Remarks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Sample.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is [Head Count]);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalReport:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Employee,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [Area Of Work], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; fDate as Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthStart(fDate, IterNo()-1) as fDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Remarks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Report&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While MonthStart(fDate, IterNo()-1) &amp;lt; MakeDate(Year(fDate)+1, 1, 1) and Remarks = 'Joined';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate (FinalReport)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Employee,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [Area Of Work], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; fDate as Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthStart(fDate, -IterNo()+1) as fDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Remarks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Report&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While MonthStart(fDate, -IterNo()+1) &amp;gt;= MakeDate(Year(fDate), 1, 1) and Remarks = 'Resigned';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Report;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 13:17:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Head-Count/m-p/1205345#M387493</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-06T13:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Head Count</title>
      <link>https://community.qlik.com/t5/QlikView/Head-Count/m-p/1205346#M387494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your quick response. But here the count for accounts and sales also show for&amp;nbsp; the year 2016 and Audit count should show also for the year 2015.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2016 05:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Head-Count/m-p/1205346#M387494</guid>
      <dc:creator>pkpandey</dc:creator>
      <dc:date>2016-10-07T05:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Head Count</title>
      <link>https://community.qlik.com/t5/QlikView/Head-Count/m-p/1205347#M387495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand completely, but the above snapshot was taken when Year 2015 was selected. Here is snapshot when I have not selected any year. Does this look right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139955_Capture.PNG" style="height: 334px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2016 07:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Head-Count/m-p/1205347#M387495</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-07T07:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Head Count</title>
      <link>https://community.qlik.com/t5/QlikView/Head-Count/m-p/1205348#M387496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was very helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 09:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Head-Count/m-p/1205348#M387496</guid>
      <dc:creator>pkpandey</dc:creator>
      <dc:date>2016-10-13T09:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Head Count</title>
      <link>https://community.qlik.com/t5/QlikView/Head-Count/m-p/1205349#M387497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool, if your issue is now resolved, I would suggest you to close this thread by marking correct and helpful responses.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 09:44:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Head-Count/m-p/1205349#M387497</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-13T09:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Head Count</title>
      <link>https://community.qlik.com/t5/QlikView/Head-Count/m-p/1205350#M387498</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;one solution might be also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_235509_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140707_QlikCommunity_Thread_235509_Pic1.JPG" style="height: 460px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14764840757079496 jive_text_macro" jivemacro_uid="_14764840757079496"&gt;
&lt;P&gt;Report:&lt;/P&gt;
&lt;P&gt;LOAD Employee,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [Area Of Work],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Remarks&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="248513" data-objecttype="13" href="https://community.qlik.com/servlet/JiveServlet/download/2051-235509-1137673-248513/Sample.xlsx"&gt;https://community.qlik.com/servlet/JiveServlet/download/1137673-248513/Sample.xlsx&lt;/A&gt;&lt;SPAN&gt;] (ooxml, embedded labels, table is [Head Count])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Where Len(Employee);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabEmpDates:&lt;/P&gt;
&lt;P&gt;LOAD Employee,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Alt(Min(If(Remarks='Joined',Date)),MakeDate(2015))) as Joined,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Alt(Max(If(Remarks='Resigned',Date)),Floor(YearEnd(Today())))) as Resigned&lt;/P&gt;
&lt;P&gt;Resident Report&lt;/P&gt;
&lt;P&gt;Group By Employee;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabCalendar:&lt;/P&gt;
&lt;P&gt;LOAD fDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(fDate) as Week,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(fDate) as EYear,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(fDate) as Month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(fDate) as Day,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YeartoDate(fDate)*-1 as CurYTDFlag,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YeartoDate(fDate,-1)*-1 as LastYTDFlag,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; InYear(fDate, MonthStart(MaxDate),-1) as RC12,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(MonthStart(fDate), 'MMM-YYYY') as MonthYear,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual('Q'&amp;amp;Ceil(Month(fDate)/3),Ceil(Month(fDate)/3)) as Quarter,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual(Week(fDate)&amp;amp;'-'&amp;amp;WeekYear(fDate),WeekStart(fDate)) as WeekYear,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekDay(fDate) as WeekDay,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(Month(fDate)) As MonthOrder;&lt;/P&gt;
&lt;P&gt;LOAD Date(MinDate+IterNo()-1) as fDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MaxDate&lt;/P&gt;
&lt;P&gt;While MinDate+IterNo()-1 &amp;lt;= MaxDate;&lt;/P&gt;
&lt;P&gt;LOAD Min(Date) as MinDate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Floor(YearEnd(Today())) as MaxDate&lt;/P&gt;
&lt;P&gt;Resident Report;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabDateLink:&lt;/P&gt;
&lt;P&gt;IntervalMatch (fDate)&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Joined,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resigned&lt;/P&gt;
&lt;P&gt;Resident tabEmpDates;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 22:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Head-Count/m-p/1205350#M387498</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-14T22:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Head Count</title>
      <link>https://community.qlik.com/t5/QlikView/Head-Count/m-p/1205351#M387499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe also helpful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/230626"&gt;How to get employee count for missing years entry&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_235509_Pic2.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140711_QlikCommunity_Thread_235509_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 22:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Head-Count/m-p/1205351#M387499</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-10-14T22:40:18Z</dc:date>
    </item>
  </channel>
</rss>

