<?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: HeadCount Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/HeadCount-Calculation/m-p/1133296#M915437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ananth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are always selecting a Year or Qtr then the following formula will always give you the sales of the Max month of selected(current) Year or Qtr.&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Also you need to create the Qtr field based on the fiscal year in the calendar script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum({&amp;lt;MonthID={$(=Max(MonthID))&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;Sales)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;o&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;r you can try below formula&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Month={$(=Month(Max(Date)))}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But above formulas will give 0 if there is no entry for the latest month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chetan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2016 12:48:19 GMT</pubDate>
    <dc:creator>chetansehgal</dc:creator>
    <dc:date>2016-05-24T12:48:19Z</dc:date>
    <item>
      <title>HeadCount Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/HeadCount-Calculation/m-p/1133294#M915435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 896px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" width="64"&gt; &lt;/TD&gt;&lt;TD class="xl65" width="64"&gt;Month&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Apr-14&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;May-14&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Jun-14&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Jul-14&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Aug-14&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Sep-14&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Oct-14&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Nov-14&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Dec-14&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Jan-15&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Feb-15&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;Mar-15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: none;"&gt;Total HC&lt;/TD&gt;&lt;TD class="xl68"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;16&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;21&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;26&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;31&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;36&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;41&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;46&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;51&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;56&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;if i select Year 2014-15 it should display year end month data(Mar-15)= 56&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same if i select Q1 then output = 11(Q1 end month :June-14 data)&lt;/P&gt;&lt;P&gt;for Q2&amp;nbsp; output= 26(Q1 end month :Sep-14 data)&lt;/P&gt;&lt;P&gt;for Q3 then output= 41(Q1 end month dec-14 data)&lt;/P&gt;&lt;P&gt;if i select Q4 then output= 56(Q1 end month :Mar-15 data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1=Apr-14 to Jun-14&lt;/P&gt;&lt;P&gt;Q2=Jul-14 to Sep-14&lt;/P&gt;&lt;P&gt;Q3=Oct-14 to&amp;nbsp; Dec-14&lt;/P&gt;&lt;P&gt;Q4-Jan-15 to Mar-15&amp;nbsp; and&amp;nbsp; Year=2014-15&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HeadCount-Calculation/m-p/1133294#M915435</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: HeadCount Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/HeadCount-Calculation/m-p/1133295#M915436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check this&lt;/P&gt;&lt;P&gt;YTD (Year-To-Date) Sales:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MonthID = {“&amp;lt;=$(=Max(MonthID))”},&lt;/P&gt;&lt;P&gt;Year = {$(=Max(Year))},&lt;/P&gt;&lt;P&gt;Quarter = ,&lt;/P&gt;&lt;P&gt;Month = &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QTD&amp;nbsp; (Quarter-To-Date) Sales:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MonthID = {“&amp;lt;=$(=Max(MonthID))”},&lt;/P&gt;&lt;P&gt;QuarterID = {$(=Max(QuarterID))},&lt;/P&gt;&lt;P&gt;Year = ,&lt;/P&gt;&lt;P&gt;Quarter = ,&lt;/P&gt;&lt;P&gt;Month = &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MTD (Month-To-Date) Sales:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MonthID = {$(=Max(MonthID))},&lt;/P&gt;&lt;P&gt;Year = ,&lt;/P&gt;&lt;P&gt;Quarter = ,&lt;/P&gt;&lt;P&gt;Month = &amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 11:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HeadCount-Calculation/m-p/1133295#M915436</guid>
      <dc:creator>ajsjoshua</dc:creator>
      <dc:date>2016-05-24T11:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: HeadCount Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/HeadCount-Calculation/m-p/1133296#M915437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ananth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are always selecting a Year or Qtr then the following formula will always give you the sales of the Max month of selected(current) Year or Qtr.&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Also you need to create the Qtr field based on the fiscal year in the calendar script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum({&amp;lt;MonthID={$(=Max(MonthID))&amp;gt;}&lt;SPAN style="font-size: 13.3333px;"&gt;Sales)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;o&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;r you can try below formula&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Month={$(=Month(Max(Date)))}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But above formulas will give 0 if there is no entry for the latest month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chetan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 12:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HeadCount-Calculation/m-p/1133296#M915437</guid>
      <dc:creator>chetansehgal</dc:creator>
      <dc:date>2016-05-24T12:48:19Z</dc:date>
    </item>
  </channel>
</rss>

