<?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: Question about a measure that needs to be set for certain employees only in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Question-about-a-measure-that-needs-to-be-set-for-certain/m-p/2455058#M98383</link>
    <description>&lt;P&gt;in the denominator you need to use the total&lt;BR /&gt;for example:&lt;BR /&gt;count(employee) / count(total {&amp;lt;employee=&amp;gt;}employee)&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2024 08:18:34 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2024-05-22T08:18:34Z</dc:date>
    <item>
      <title>Question about a measure that needs to be set for certain employees only</title>
      <link>https://community.qlik.com/t5/App-Development/Question-about-a-measure-that-needs-to-be-set-for-certain/m-p/2455007#M98374</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have written a post about this question recently, but I am currently stuck once more. I can't understand how set analysis works in this case, because despite having inserted into the measure what I am looking for and having told the measure to use the set analysis over each function that needs it, the results do not match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See screenshots below, when I don't select any employee, the measure 'Team Measure' works fine:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alespooletto_0-1716359312836.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166571iF10F88F3154A2E07/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alespooletto_0-1716359312836.png" alt="alespooletto_0-1716359312836.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, when I select an employee, the measure suddenly turns to the same output as the employee selected:&amp;nbsp;&lt;/P&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="alespooletto_1-1716359353610.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166572i05D21470B13CA9A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alespooletto_1-1716359353610.png" alt="alespooletto_1-1716359353610.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the measure I am currently using:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// All Other Employees Measure
Sum(
    Aggr(
        {&amp;lt; Employee= &amp;gt;}  // Ignore selection of Employee
        Count({&amp;lt; ACTION_CODE = {'LABOR_OFF'} &amp;gt;} distinct MainSFC) * Time_Product,
        MainSFC, Employee
    )
)
/
(
Sum(
    Aggr(
        {&amp;lt; Employee= &amp;gt;}  // Ignore selection of Employee
        Count(distinct WorkingDay) * 7.5 * 60,
        Employee
    )
)
    -
	Sum(Absence) * 60

)&lt;/LI-CODE&gt;
&lt;P&gt;Can someone please help me figure out what I am doing wrong?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 06:30:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Question-about-a-measure-that-needs-to-be-set-for-certain/m-p/2455007#M98374</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-05-22T06:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Question about a measure that needs to be set for certain employees only</title>
      <link>https://community.qlik.com/t5/App-Development/Question-about-a-measure-that-needs-to-be-set-for-certain/m-p/2455058#M98383</link>
      <description>&lt;P&gt;in the denominator you need to use the total&lt;BR /&gt;for example:&lt;BR /&gt;count(employee) / count(total {&amp;lt;employee=&amp;gt;}employee)&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 08:18:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Question-about-a-measure-that-needs-to-be-set-for-certain/m-p/2455058#M98383</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2024-05-22T08:18:34Z</dc:date>
    </item>
  </channel>
</rss>

