<?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: Expression / Set Analysis assistance in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Expression-Set-Analysis-assistance/m-p/2505717#M104015</link>
    <description>&lt;P&gt;Hi!&lt;BR /&gt;what if you count:&lt;/P&gt;
&lt;P&gt;firstly employes who were employed at the beginning of the selected SFiscal Year and employees who are still employed at the end of the period?&lt;/P&gt;
&lt;P&gt;employees who were already employed before or during the selected SFiscal Year&lt;/P&gt;
&lt;P&gt;Count(DISTINCT {&amp;lt; SFiscalYear =, FFiscalYear = &amp;gt;} LINK_Employee)&lt;/P&gt;
&lt;P&gt;employees who still have EmployeeStatus = "Employee", meaning they haven’t left&lt;/P&gt;
&lt;P&gt;Count(DISTINCT {&amp;lt; EmployeeStatus = {"Employee"}, SFiscalYear = &amp;gt;} LINK_Employee)&lt;/P&gt;
&lt;P&gt;retention formula would be&lt;/P&gt;
&lt;P&gt;Count(DISTINCT {&amp;lt; EmployeeStatus = {"Employee"}, SFiscalYear = &amp;gt;} LINK_Employee)&lt;BR /&gt;/&lt;BR /&gt;Count(DISTINCT {&amp;lt; SFiscalYear =, FFiscalYear = &amp;gt;} LINK_Employee)&lt;/P&gt;
&lt;P&gt;if correct by selecting SFiscal Year should correctly count both new hires and existing employees still employed while employees who left during or after the period should be excluded from the numerator&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="ae_app" data-nosnippet=""&gt;&lt;!--
        Layout, Style or Voice Helpers
    --&gt;
&lt;DIV id="ae_helpers" class="ae-module" style="display: none;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;!--
        Compliance
    --&gt;
&lt;DIV id="ae_compliance" class="ae-module" style="display: none;"&gt;&lt;!-- For autoSmartRem addNewWindowWarnings div is referenced in an aria-describedby --&gt;
&lt;DIV id="audioeye_new_window_message" style="display: none;"&gt;Opens in new window&lt;/DIV&gt;
&lt;DIV id="audioeye_pdf_message" style="display: none;"&gt;PDF Download&lt;/DIV&gt;
&lt;DIV id="audioeye_word_message" style="display: none;"&gt;Word Download&lt;/DIV&gt;
&lt;DIV id="audioeye_excel_message" style="display: none;"&gt;Excel Download&lt;/DIV&gt;
&lt;DIV id="audioeye_powerpoint_message" style="display: none;"&gt;PowerPoint Download&lt;/DIV&gt;
&lt;DIV id="audioeye_document_message" style="display: none;"&gt;Document Download&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;!--
        Versioning Control Panel if versioning = true !
    --&gt; &lt;!--
        Launcher
    --&gt;  &lt;!-- Toolbar --&gt;  &lt;!--
        Site Menu
    --&gt;  &lt;!--
        Generic Aria Live message container
    --&gt;
&lt;DIV id="ae_enabled_messages" class="ae-blurb-noaudio" aria-relevant="additions" aria-live="assertive"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;!-- Symbol definitions --&gt;    &lt;/DIV&gt;
&lt;!-- end #ae_app --&gt;</description>
    <pubDate>Thu, 13 Feb 2025 09:32:38 GMT</pubDate>
    <dc:creator>diegozecchini</dc:creator>
    <dc:date>2025-02-13T09:32:38Z</dc:date>
    <item>
      <title>Expression / Set Analysis assistance</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-Set-Analysis-assistance/m-p/2505639#M103986</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;Had an issue raised with our retention app and at a loss as to how to formulate the fix.&lt;/P&gt;
&lt;P&gt;The intended use to is to measure staff retention, however, the existing version of the app when filtered, displays inaccurate information. I'm not really sure what the intention was, it doesn't make much sense, anyway, I digress.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have, from our Time Management software, a list of employees and their status' -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If Status = *Employee* they are 'Employed', otherwise they are 'Leaver'&lt;/P&gt;
&lt;P&gt;Below is the data model.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oggy172_0-1739379514119.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177501i7FED86C690633566/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oggy172_0-1739379514119.png" alt="Oggy172_0-1739379514119.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;There are filters for FFiscal Year (Finished Fiscal Year) and SFiscal Year (Starting Fiscal Year).&lt;/P&gt;
&lt;P&gt;We have a chart to show retention %&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oggy172_1-1739379736955.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177503i89C639B3B5260D84/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oggy172_1-1739379736955.png" alt="Oggy172_1-1739379736955.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Naturally when an FFiscal Year is selected, retention is 0% - I don't think we can get away from that, as we'd be filtering on Finish Date.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However if we select SFiscal Year, we get the correct number of employees that are still employed (Great!) but it doesn't factor in those that are STILL employed, that started before the selected SFiscal Year.&lt;/P&gt;
&lt;P&gt;Existing expressions are simply&lt;/P&gt;
&lt;P&gt;=Count(Distinct(LINK_Employee))&lt;/P&gt;
&lt;P&gt;=Count(distinct {&amp;lt;EmployeeStatus={"*Employee*"}&amp;gt;}LINK_Employee)&lt;/P&gt;
&lt;P&gt;Count(distinct {&amp;lt;EmployeeStatus={"*Employee*"}&amp;gt;}LINK_Employee) / Count(distinct LINK_Employee)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any guidance greatly appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 17:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-Set-Analysis-assistance/m-p/2505639#M103986</guid>
      <dc:creator>Oggy172</dc:creator>
      <dc:date>2025-02-12T17:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Expression / Set Analysis assistance</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-Set-Analysis-assistance/m-p/2505647#M103988</link>
      <description>&lt;P&gt;Modify like&amp;nbsp; this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count(DISTINCT {&amp;lt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; EmployeeStatus={"*Employee*"},&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; SFiscalYear=,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; StartDate={"&amp;lt;= $(=Max(SFiscalYear))"}&lt;/P&gt;
&lt;P&gt;&amp;gt;} LINK_Employe&lt;SPAN&gt;e)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 18:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-Set-Analysis-assistance/m-p/2505647#M103988</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2025-02-12T18:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Expression / Set Analysis assistance</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-Set-Analysis-assistance/m-p/2505716#M104014</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49432"&gt;@Chanty4u&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That doesn't appear to work. The SFiscalYear is actually [SFiscal Year]&lt;/P&gt;
&lt;P&gt;However, the expression Editor doesn;t return the max date&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count(DISTINCT {&amp;lt;  

    EmployeeStatus={"*Employee*"},  

    [SFiscal Year]=, 

    StartDate={"&amp;lt;= $(=Max([SFiscal Year]))"}

&amp;gt;} LINK_Employee)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oggy172_0-1739438538713.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177508iC4C424100163B70D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oggy172_0-1739438538713.png" alt="Oggy172_0-1739438538713.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="ae_app" data-nosnippet=""&gt;&lt;!--
        Layout, Style or Voice Helpers
    --&gt;
&lt;DIV id="ae_helpers" class="ae-module" style="display: none;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;!--
        Compliance
    --&gt;
&lt;DIV id="ae_compliance" class="ae-module" style="display: none;"&gt;&lt;!-- For autoSmartRem addNewWindowWarnings div is referenced in an aria-describedby --&gt;
&lt;DIV id="audioeye_new_window_message" style="display: none;"&gt;Opens in new window&lt;/DIV&gt;
&lt;DIV id="audioeye_pdf_message" style="display: none;"&gt;PDF Download&lt;/DIV&gt;
&lt;DIV id="audioeye_word_message" style="display: none;"&gt;Word Download&lt;/DIV&gt;
&lt;DIV id="audioeye_excel_message" style="display: none;"&gt;Excel Download&lt;/DIV&gt;
&lt;DIV id="audioeye_powerpoint_message" style="display: none;"&gt;PowerPoint Download&lt;/DIV&gt;
&lt;DIV id="audioeye_document_message" style="display: none;"&gt;Document Download&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;!--
        Versioning Control Panel if versioning = true !
    --&gt; &lt;!--
        Launcher
    --&gt;  &lt;!-- Toolbar --&gt;  &lt;!--
        Site Menu
    --&gt;  &lt;!--
        Generic Aria Live message container
    --&gt;
&lt;DIV id="ae_enabled_messages" class="ae-blurb-noaudio" aria-relevant="additions" aria-live="assertive"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;!-- Symbol definitions --&gt;    &lt;/DIV&gt;
&lt;!-- end #ae_app --&gt;</description>
      <pubDate>Thu, 13 Feb 2025 09:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-Set-Analysis-assistance/m-p/2505716#M104014</guid>
      <dc:creator>Oggy172</dc:creator>
      <dc:date>2025-02-13T09:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expression / Set Analysis assistance</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-Set-Analysis-assistance/m-p/2505717#M104015</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;what if you count:&lt;/P&gt;
&lt;P&gt;firstly employes who were employed at the beginning of the selected SFiscal Year and employees who are still employed at the end of the period?&lt;/P&gt;
&lt;P&gt;employees who were already employed before or during the selected SFiscal Year&lt;/P&gt;
&lt;P&gt;Count(DISTINCT {&amp;lt; SFiscalYear =, FFiscalYear = &amp;gt;} LINK_Employee)&lt;/P&gt;
&lt;P&gt;employees who still have EmployeeStatus = "Employee", meaning they haven’t left&lt;/P&gt;
&lt;P&gt;Count(DISTINCT {&amp;lt; EmployeeStatus = {"Employee"}, SFiscalYear = &amp;gt;} LINK_Employee)&lt;/P&gt;
&lt;P&gt;retention formula would be&lt;/P&gt;
&lt;P&gt;Count(DISTINCT {&amp;lt; EmployeeStatus = {"Employee"}, SFiscalYear = &amp;gt;} LINK_Employee)&lt;BR /&gt;/&lt;BR /&gt;Count(DISTINCT {&amp;lt; SFiscalYear =, FFiscalYear = &amp;gt;} LINK_Employee)&lt;/P&gt;
&lt;P&gt;if correct by selecting SFiscal Year should correctly count both new hires and existing employees still employed while employees who left during or after the period should be excluded from the numerator&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="ae_app" data-nosnippet=""&gt;&lt;!--
        Layout, Style or Voice Helpers
    --&gt;
&lt;DIV id="ae_helpers" class="ae-module" style="display: none;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;!--
        Compliance
    --&gt;
&lt;DIV id="ae_compliance" class="ae-module" style="display: none;"&gt;&lt;!-- For autoSmartRem addNewWindowWarnings div is referenced in an aria-describedby --&gt;
&lt;DIV id="audioeye_new_window_message" style="display: none;"&gt;Opens in new window&lt;/DIV&gt;
&lt;DIV id="audioeye_pdf_message" style="display: none;"&gt;PDF Download&lt;/DIV&gt;
&lt;DIV id="audioeye_word_message" style="display: none;"&gt;Word Download&lt;/DIV&gt;
&lt;DIV id="audioeye_excel_message" style="display: none;"&gt;Excel Download&lt;/DIV&gt;
&lt;DIV id="audioeye_powerpoint_message" style="display: none;"&gt;PowerPoint Download&lt;/DIV&gt;
&lt;DIV id="audioeye_document_message" style="display: none;"&gt;Document Download&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;!--
        Versioning Control Panel if versioning = true !
    --&gt; &lt;!--
        Launcher
    --&gt;  &lt;!-- Toolbar --&gt;  &lt;!--
        Site Menu
    --&gt;  &lt;!--
        Generic Aria Live message container
    --&gt;
&lt;DIV id="ae_enabled_messages" class="ae-blurb-noaudio" aria-relevant="additions" aria-live="assertive"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;!-- Symbol definitions --&gt;    &lt;/DIV&gt;
&lt;!-- end #ae_app --&gt;</description>
      <pubDate>Thu, 13 Feb 2025 09:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-Set-Analysis-assistance/m-p/2505717#M104015</guid>
      <dc:creator>diegozecchini</dc:creator>
      <dc:date>2025-02-13T09:32:38Z</dc:date>
    </item>
  </channel>
</rss>

