<?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: Finding Attrition Count in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Finding-Attrition-Count-Month-On-Month/m-p/2535938#M108588</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Chanty4u,&lt;BR /&gt;&lt;BR /&gt;Thanks for the help, but it still didn’t work as expected in the UI. Is it possible to calculate it directly in the load script using a flag to identify churned employees month over month?&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2025-11-12 110148.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184967iF99C42BB1EDF1721/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-11-12 110148.png" alt="Screenshot 2025-11-12 110148.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2025-11-12 110126.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184966iE6BB5B365AD829AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-11-12 110126.png" alt="Screenshot 2025-11-12 110126.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Nov 2025 05:34:24 GMT</pubDate>
    <dc:creator>sutharsan</dc:creator>
    <dc:date>2025-11-12T05:34:24Z</dc:date>
    <item>
      <title>Finding Attrition Count Month On Month</title>
      <link>https://community.qlik.com/t5/App-Development/Finding-Attrition-Count-Month-On-Month/m-p/2535860#M108577</link>
      <description>&lt;P&gt;I need to find attrition count month on month i was able to do it in Qlik measure for current month and last month i need it to for all the months like to be used in the trend chart&amp;nbsp; i used the below expression for current and last month&lt;BR /&gt;&lt;BR /&gt;=Count(DISTINCT {&amp;lt;employee_id= P({&amp;lt;date= {"&amp;gt;=$(=Date(MonthStart(AddMonths(Today(),-1)),'YYYY-MM-DD'))&amp;lt;=$(=Date(MonthEnd(AddMonths(Today(),-1)),'YYYY-MM-DD'))"}&amp;gt;} employee_id) -&lt;BR /&gt;P({&amp;lt;date= {"&amp;gt;=$(=Date(MonthStart(Today()),'YYYY-MM-DD'))&amp;lt;=$(=Date(Today(),'YYYY-MM-DD'))"}&amp;gt;} employee_id)&amp;gt;} employee_id)&lt;BR /&gt;&lt;BR /&gt;how do i do get for all the months as i have data for past 2 years&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 08:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Finding-Attrition-Count-Month-On-Month/m-p/2535860#M108577</guid>
      <dc:creator>sutharsan</dc:creator>
      <dc:date>2025-11-25T08:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Attrition Count</title>
      <link>https://community.qlik.com/t5/App-Development/Finding-Attrition-Count-Month-On-Month/m-p/2535879#M108580</link>
      <description>&lt;P&gt;Try this in script&amp;nbsp;&lt;/P&gt;&lt;P&gt;MonthYear:&lt;/P&gt;&lt;P&gt;Date(MonthStart(date), 'YYYY-MM') as MonthYear&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in UI chart expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count(DISTINCT&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; employee_id = P({&amp;lt;MonthYear = {"=$(=AddMonths(MonthYear, -1))"}&amp;gt;} employee_id)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; P({&amp;lt;MonthYear = {"=$(=MonthYear)"}&amp;gt;} employee_id)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt;} employee_id)&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 15:02:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Finding-Attrition-Count-Month-On-Month/m-p/2535879#M108580</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2025-11-11T15:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Attrition Count</title>
      <link>https://community.qlik.com/t5/App-Development/Finding-Attrition-Count-Month-On-Month/m-p/2535938#M108588</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Chanty4u,&lt;BR /&gt;&lt;BR /&gt;Thanks for the help, but it still didn’t work as expected in the UI. Is it possible to calculate it directly in the load script using a flag to identify churned employees month over month?&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2025-11-12 110148.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184967iF99C42BB1EDF1721/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-11-12 110148.png" alt="Screenshot 2025-11-12 110148.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2025-11-12 110126.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184966iE6BB5B365AD829AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-11-12 110126.png" alt="Screenshot 2025-11-12 110126.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 05:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Finding-Attrition-Count-Month-On-Month/m-p/2535938#M108588</guid>
      <dc:creator>sutharsan</dc:creator>
      <dc:date>2025-11-12T05:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Attrition Count</title>
      <link>https://community.qlik.com/t5/App-Development/Finding-Attrition-Count-Month-On-Month/m-p/2535943#M108592</link>
      <description>&lt;P&gt;try with this&lt;/P&gt;&lt;P&gt;Count(DISTINCT&lt;BR /&gt;{&amp;lt;employee_id =P({&amp;lt;Date = {"&amp;gt;=$(=Date(MonthStart(Month), 'YYYY-MM-DD'))&amp;lt;=$(=Date(MonthEnd(Month), 'YYYY-MM-DD'))"} &amp;gt;} employee_id)&lt;BR /&gt;-&lt;BR /&gt;P({&amp;lt;Date = {"&amp;gt;=$(=Date(MonthStart(AddMonths(Month, 1)), 'YYYY-MM-DD'))&amp;lt;=$(=Date(MonthEnd(AddMonths(Month, 1)), 'YYYY-MM-DD'))"} &amp;gt;} employee_id)&lt;BR /&gt;&amp;gt;}employee_id&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 05:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Finding-Attrition-Count-Month-On-Month/m-p/2535943#M108592</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2025-11-12T05:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Attrition Count Month On Month</title>
      <link>https://community.qlik.com/t5/App-Development/Finding-Attrition-Count-Month-On-Month/m-p/2537131#M108755</link>
      <description>&lt;P&gt;&lt;STRONG&gt;MONTH ON MONTH ATTRITION COUNT&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Master_Workforce:&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt;[&lt;SPAN&gt;employee_id&lt;/SPAN&gt;],&lt;BR /&gt;Date(MonthStart([DATE]), 'YYYY-MM') as Month_Year,&lt;BR /&gt;'Active' as Record_Type,&lt;BR /&gt;1 as Headcount_Count, &lt;STRONG&gt;// Counts for active staff&lt;/STRONG&gt;&lt;BR /&gt;0 as Attrition_Count /&lt;STRONG&gt;/ Active people are not attrition&lt;/STRONG&gt;&lt;BR /&gt;Resident Fact;&lt;/P&gt;&lt;P&gt;Map_Existence:&lt;BR /&gt;MAPPING LOAD DISTINCT&lt;BR /&gt;[&lt;SPAN&gt;employee_id&lt;/SPAN&gt;] &amp;amp; '|' &amp;amp; Month_Year as %Key,&lt;BR /&gt;1 as Exists&lt;BR /&gt;RESIDENT Master_Workforce;&lt;/P&gt;&lt;P&gt;Concatenate (Master_Workforce)&lt;BR /&gt;LOAD&lt;BR /&gt;[&lt;SPAN&gt;employee_id&lt;/SPAN&gt;],&lt;BR /&gt;Date(AddMonths(Month_Year, 1), 'YYYY-MM') as Month_Year,&lt;BR /&gt;'Attrition' as Record_Type,&lt;BR /&gt;0 as Headcount_Count, &lt;STRONG&gt;// They are gone, so 0 headcount&lt;/STRONG&gt;&lt;BR /&gt;1 as Attrition_Count &lt;STRONG&gt;// But they count as 1 Attrition event&lt;/STRONG&gt;&lt;BR /&gt;RESIDENT Master_Workforce&lt;BR /&gt;WHERE Record_Type = 'Active'&lt;STRONG&gt; // Only look at active people&lt;/STRONG&gt;&lt;BR /&gt;AND ApplyMap('Map_Existence', [&lt;SPAN&gt;employee_id&lt;/SPAN&gt;] &amp;amp; '|' &amp;amp; Date(AddMonths(Month_Year, 1), 'YYYY-MM'), 0) = 0&lt;BR /&gt;AND Month_Year &amp;lt; Date(MonthStart(Today()), 'YYYY-MM');&lt;BR /&gt;&lt;BR /&gt;Now use the Month_Year dimension and sum(Attrition_Count) in your dashboard which will return Month on Month attrition count and obviously you can also get attrition rate from this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 08:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Finding-Attrition-Count-Month-On-Month/m-p/2537131#M108755</guid>
      <dc:creator>sutharsan</dc:creator>
      <dc:date>2025-11-25T08:18:18Z</dc:date>
    </item>
  </channel>
</rss>

