<?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 Turnover rate with a balance table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Turnover-rate-with-a-balance-table/m-p/1741470#M56777</link>
    <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I've got a balance table with staff log, like the following stricture:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Employee name&lt;/LI&gt;&lt;LI&gt;Date&lt;/LI&gt;&lt;LI&gt;Country&lt;/LI&gt;&lt;LI&gt;Department&lt;/LI&gt;&lt;LI&gt;Position&lt;/LI&gt;&lt;LI&gt;Balance (-1 if the employee was dismissed, +1 if hired)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The data structure allows showing the headcount dynamics as a columns chart using country, department, position as dimensions. In addition, we calculate the turnover rate by the classical formula (begin+end)/2 / # of dismissed. All works fine until users select a particular period (e.g., clicking on the chart where the Month/Year dimension is used as an X-axis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is in calculating the begin qty which requires to take sum of all Balance values considering all selections except for the Year/Date, but before the current dimension value in the chart. e.g., when the chart shows data by a month/year every month will have different begin qty which should be considered.&lt;/P&gt;&lt;P&gt;I understand I should use a compound set expression for this measure, but your advice would save me a lot of time.&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;</description>
    <pubDate>Sun, 06 Sep 2020 08:17:05 GMT</pubDate>
    <dc:creator>Mike44</dc:creator>
    <dc:date>2020-09-06T08:17:05Z</dc:date>
    <item>
      <title>Turnover rate with a balance table</title>
      <link>https://community.qlik.com/t5/App-Development/Turnover-rate-with-a-balance-table/m-p/1741470#M56777</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I've got a balance table with staff log, like the following stricture:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Employee name&lt;/LI&gt;&lt;LI&gt;Date&lt;/LI&gt;&lt;LI&gt;Country&lt;/LI&gt;&lt;LI&gt;Department&lt;/LI&gt;&lt;LI&gt;Position&lt;/LI&gt;&lt;LI&gt;Balance (-1 if the employee was dismissed, +1 if hired)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The data structure allows showing the headcount dynamics as a columns chart using country, department, position as dimensions. In addition, we calculate the turnover rate by the classical formula (begin+end)/2 / # of dismissed. All works fine until users select a particular period (e.g., clicking on the chart where the Month/Year dimension is used as an X-axis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is in calculating the begin qty which requires to take sum of all Balance values considering all selections except for the Year/Date, but before the current dimension value in the chart. e.g., when the chart shows data by a month/year every month will have different begin qty which should be considered.&lt;/P&gt;&lt;P&gt;I understand I should use a compound set expression for this measure, but your advice would save me a lot of time.&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sun, 06 Sep 2020 08:17:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Turnover-rate-with-a-balance-table/m-p/1741470#M56777</guid>
      <dc:creator>Mike44</dc:creator>
      <dc:date>2020-09-06T08:17:05Z</dc:date>
    </item>
  </channel>
</rss>

