<?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: Past 12 months aggregated formula in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Past-12-months-aggregated-formula/m-p/1805360#M65460</link>
    <description>&lt;P&gt;I'm interested in understanding your requirements a little more.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say Bob leaves the company in December 2020.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Janauary 2021 Bob would count as having left within the previous 12 months.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would he also count for every other month of 2021, or do you only count the employees 1 time?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or should Bob only count for having left 12 months ago and be recorded in December 2021?&lt;/P&gt;</description>
    <pubDate>Wed, 05 May 2021 11:49:13 GMT</pubDate>
    <dc:creator>Dalton_Ruer</dc:creator>
    <dc:date>2021-05-05T11:49:13Z</dc:date>
    <item>
      <title>Past 12 months aggregated formula</title>
      <link>https://community.qlik.com/t5/App-Development/Past-12-months-aggregated-formula/m-p/1805148#M65431</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;For each period (YYYYMM) I need to see the aggregated count of "EmployeeNo" that have EndDate within the past 12 months.&lt;/P&gt;&lt;P&gt;I use a LeaverFlag and a R12Flag (not good with R12Flag as it only looks at today -12 months) in the formula:&lt;/P&gt;&lt;P&gt;count({&amp;lt;LeaverFlag={1},&amp;nbsp; R12_Flag={1},Year=, Period=&amp;gt;}DISTINCT If(Year = Year(EndDate) and Month= Month(EndDate),EmployeeNo))/Count({&amp;lt; R12_Flag={1}, Year=, Period=&amp;gt;}distinct [EmployeeNo])&lt;/P&gt;&lt;P&gt;But I only get the count % for the period, not for the total for the past 12 months. Each month should be over 10%&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnnaEKinch_2-1620161870159.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/54248iA73FCAF3C908CD36/image-size/large?v=v2&amp;amp;px=999" role="button" title="AnnaEKinch_2-1620161870159.png" alt="AnnaEKinch_2-1620161870159.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think my R12Flag is relevent&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AnnaEKinch_1-1620161675316.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/54247iAD0F2343CF3DA93E/image-size/large?v=v2&amp;amp;px=999" role="button" title="AnnaEKinch_1-1620161675316.png" alt="AnnaEKinch_1-1620161675316.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any suggestions as how I can get a rolling 12 month aggregate count?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 21:02:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Past-12-months-aggregated-formula/m-p/1805148#M65431</guid>
      <dc:creator>AnnaEKinch</dc:creator>
      <dc:date>2021-05-04T21:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Past 12 months aggregated formula</title>
      <link>https://community.qlik.com/t5/App-Development/Past-12-months-aggregated-formula/m-p/1805360#M65460</link>
      <description>&lt;P&gt;I'm interested in understanding your requirements a little more.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say Bob leaves the company in December 2020.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Janauary 2021 Bob would count as having left within the previous 12 months.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would he also count for every other month of 2021, or do you only count the employees 1 time?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or should Bob only count for having left 12 months ago and be recorded in December 2021?&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 11:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Past-12-months-aggregated-formula/m-p/1805360#M65460</guid>
      <dc:creator>Dalton_Ruer</dc:creator>
      <dc:date>2021-05-05T11:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Past 12 months aggregated formula</title>
      <link>https://community.qlik.com/t5/App-Development/Past-12-months-aggregated-formula/m-p/1805622#M65502</link>
      <description>&lt;P&gt;Hello! Many thanks for your interest.&amp;nbsp; Bob would be counted as leaving in December, and 12 months forewards, ie counted in every month from December until November.&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 19:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Past-12-months-aggregated-formula/m-p/1805622#M65502</guid>
      <dc:creator>AnnaEKinch</dc:creator>
      <dc:date>2021-05-05T19:12:18Z</dc:date>
    </item>
  </channel>
</rss>

