<?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 Calculating values for each year/month from a Start Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-values-for-each-year-month-from-a-Start-Date/m-p/204275#M61254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, you can use set analysis to limit artificially select a range of date. Your expressión might look some like this:&lt;/P&gt;&lt;P&gt;count({$&amp;lt;MonthYear = {"&amp;gt;=PastMonthYear&amp;lt;=CurrentMonthYear"}&amp;gt;} EmployeeID)&lt;/P&gt;&lt;P&gt;That should do the trick.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jun 2010 00:46:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-29T00:46:42Z</dc:date>
    <item>
      <title>Calculating values for each year/month from a Start Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-values-for-each-year-month-from-a-Start-Date/m-p/204272#M61251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an HR application which provides a contract start date for each employee. I need to be able to show how many people are employed by the company by year/month from some date in the past to the current date.&lt;/P&gt;&lt;P&gt;Is there a way of doing this within QV (version 9 - personal edition)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 09:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-values-for-each-year-month-from-a-Start-Date/m-p/204272#M61251</guid>
      <dc:creator />
      <dc:date>2010-06-28T09:38:04Z</dc:date>
    </item>
    <item>
      <title>Calculating values for each year/month from a Start Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-values-for-each-year-month-from-a-Start-Date/m-p/204273#M61252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi logan,&lt;/P&gt;&lt;P&gt;Here you are a possible solution. I hope it would help you.&lt;/P&gt;&lt;P&gt;You can check out the results making a table on the Total_Emp data.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt; Contract:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Date, Employee&lt;BR /&gt; 01/01/2009, E1&lt;BR /&gt; 01/01/2009, E2&lt;BR /&gt; 15/01/2009, E3&lt;BR /&gt; 20/02/2009, E4&lt;BR /&gt; 06/06/2009, E1&lt;BR /&gt; 10/12/2009, E5&lt;BR /&gt; 02/04/2010, E6&lt;BR /&gt;];&lt;BR /&gt;Calendar:&lt;BR /&gt;Load Distinct Year(Date) &amp;amp; '-' &amp;amp; Month(Date) as YM,&lt;BR /&gt; Date&lt;BR /&gt;Resident Contract;&lt;BR /&gt;Total_Emp:&lt;BR /&gt;Load Year(Date) &amp;amp; '-' &amp;amp; Month(Date) as YM,&lt;BR /&gt; Count(Employee) as TotalEmp&lt;BR /&gt;Resident Contract&lt;BR /&gt;group by Year(Date) &amp;amp; '-' &amp;amp; Month(Date);&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 13:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-values-for-each-year-month-from-a-Start-Date/m-p/204273#M61252</guid>
      <dc:creator />
      <dc:date>2010-06-28T13:05:08Z</dc:date>
    </item>
    <item>
      <title>Calculating values for each year/month from a Start Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-values-for-each-year-month-from-a-Start-Date/m-p/204274#M61253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One approach is to actually create a record for every month the employee was employed. Here's an example (untested, and I'm assuming contracts can have ending dates as well):&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;[Employeess vs. Months]:&lt;BR /&gt;LOAD&lt;BR /&gt; "Employee"&lt;BR /&gt;,addmonths("Hire Month",iterno()-1) as "Month of Employment"&lt;BR /&gt;RESIDENT [Employees]&lt;BR /&gt;WHILE addmonths("Hire Month",iterno()-1) &amp;lt;= "Fire Month"&lt;BR /&gt;;&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Chart:&lt;/P&gt;&lt;P style="padding-left:60px;"&gt;Dimension = Month of Employment&lt;BR /&gt;Expression = count(distinct Employee)&lt;/P&gt;&lt;P&gt;You might also want to look at the intervalmatch() function for the same basic idea, just done differently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 00:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-values-for-each-year-month-from-a-Start-Date/m-p/204274#M61253</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-29T00:29:45Z</dc:date>
    </item>
    <item>
      <title>Calculating values for each year/month from a Start Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-values-for-each-year-month-from-a-Start-Date/m-p/204275#M61254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, you can use set analysis to limit artificially select a range of date. Your expressión might look some like this:&lt;/P&gt;&lt;P&gt;count({$&amp;lt;MonthYear = {"&amp;gt;=PastMonthYear&amp;lt;=CurrentMonthYear"}&amp;gt;} EmployeeID)&lt;/P&gt;&lt;P&gt;That should do the trick.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 00:46:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-values-for-each-year-month-from-a-Start-Date/m-p/204275#M61254</guid>
      <dc:creator />
      <dc:date>2010-06-29T00:46:42Z</dc:date>
    </item>
  </channel>
</rss>

