<?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 HR use case: IntervalMatch &amp;amp; nested aggregations in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/HR-use-case-IntervalMatch-amp-nested-aggregations/m-p/1677133#M51486</link>
    <description>&lt;P&gt;Hi folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a typical HR use case with employee’ job contract times (employed from till)&amp;nbsp; and missing times (from till).&lt;/P&gt;
&lt;P&gt;Thanks to intervalmatch recommendations of Henric Cronström (HIC) it was possible to solve the 1&lt;SUP&gt;st&lt;/SUP&gt; main requirement (calculate and show only those employees which did not miss in selected month).&lt;/P&gt;
&lt;P&gt;Now the 2&lt;SUP&gt;nd&lt;/SUP&gt; main requirement is: taking care of weekends and public holidays to calculate how many days per month each employee&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;must work&lt;/LI&gt;
&lt;LI&gt;actually worked&lt;/LI&gt;
&lt;LI&gt;actually missed.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;What I managed so far:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;How many days per month an employee must work
&lt;UL&gt;
&lt;LI&gt;Solution: all NetWorkDays of selected month – Public Holidays&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;If employee did not miss in selected month (i.e. he/she missed somewhere in the past or never missed at all)
&lt;UL&gt;
&lt;LI&gt;Solution: all NetWorkDays of selected month – Public Holidays&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Example_A (please see attached pdf)&lt;/STRONG&gt;
&lt;UL&gt;
&lt;LI&gt;in this case missing days are null, which is fine&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV id="tinyMceEditordid_8" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;Currently my difficulty is:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;If employee has only 1 missing period in selected month
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Example_B (please see attached pdf)&lt;/STRONG&gt;
&lt;UL&gt;
&lt;LI&gt;in this case missing days = 3 (because 4.01.2020 was Saturday).&lt;/LI&gt;
&lt;LI&gt;Works fine if
&lt;UL&gt;
&lt;LI&gt;ONLY one row with missing times per employee is available in selected month&lt;/LI&gt;
&lt;LI&gt;And missing time period ends within the 1st week&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;If employee has more than 1 missing period in selected month (i.e. there are several rows with missing times per employee in selected month)
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Example_C (please see attached pdf)&lt;/STRONG&gt;
&lt;DIV id="tinyMceEditordid_10" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Example_D (please see attached pdf)&lt;/STRONG&gt;
&lt;DIV id="tinyMceEditordid_11" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Any help is more than appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Denis&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 21:38:40 GMT</pubDate>
    <dc:creator>did</dc:creator>
    <dc:date>2021-12-20T21:38:40Z</dc:date>
    <item>
      <title>HR use case: IntervalMatch &amp; nested aggregations</title>
      <link>https://community.qlik.com/t5/App-Development/HR-use-case-IntervalMatch-amp-nested-aggregations/m-p/1677133#M51486</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a typical HR use case with employee’ job contract times (employed from till)&amp;nbsp; and missing times (from till).&lt;/P&gt;
&lt;P&gt;Thanks to intervalmatch recommendations of Henric Cronström (HIC) it was possible to solve the 1&lt;SUP&gt;st&lt;/SUP&gt; main requirement (calculate and show only those employees which did not miss in selected month).&lt;/P&gt;
&lt;P&gt;Now the 2&lt;SUP&gt;nd&lt;/SUP&gt; main requirement is: taking care of weekends and public holidays to calculate how many days per month each employee&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;must work&lt;/LI&gt;
&lt;LI&gt;actually worked&lt;/LI&gt;
&lt;LI&gt;actually missed.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;What I managed so far:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;How many days per month an employee must work
&lt;UL&gt;
&lt;LI&gt;Solution: all NetWorkDays of selected month – Public Holidays&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;If employee did not miss in selected month (i.e. he/she missed somewhere in the past or never missed at all)
&lt;UL&gt;
&lt;LI&gt;Solution: all NetWorkDays of selected month – Public Holidays&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Example_A (please see attached pdf)&lt;/STRONG&gt;
&lt;UL&gt;
&lt;LI&gt;in this case missing days are null, which is fine&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV id="tinyMceEditordid_8" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;Currently my difficulty is:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;If employee has only 1 missing period in selected month
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Example_B (please see attached pdf)&lt;/STRONG&gt;
&lt;UL&gt;
&lt;LI&gt;in this case missing days = 3 (because 4.01.2020 was Saturday).&lt;/LI&gt;
&lt;LI&gt;Works fine if
&lt;UL&gt;
&lt;LI&gt;ONLY one row with missing times per employee is available in selected month&lt;/LI&gt;
&lt;LI&gt;And missing time period ends within the 1st week&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;If employee has more than 1 missing period in selected month (i.e. there are several rows with missing times per employee in selected month)
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Example_C (please see attached pdf)&lt;/STRONG&gt;
&lt;DIV id="tinyMceEditordid_10" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Example_D (please see attached pdf)&lt;/STRONG&gt;
&lt;DIV id="tinyMceEditordid_11" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Any help is more than appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Denis&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/HR-use-case-IntervalMatch-amp-nested-aggregations/m-p/1677133#M51486</guid>
      <dc:creator>did</dc:creator>
      <dc:date>2021-12-20T21:38:40Z</dc:date>
    </item>
  </channel>
</rss>

