<?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 Why my set analysis is not working for all my group ? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Why-my-set-analysis-is-not-working-for-all-my-group/m-p/2459788#M98734</link>
    <description>&lt;P&gt;Hello, 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;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;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;&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;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) * Avg_Time,
        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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone please help me figure out what I am doing wrong?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2024 08:27:57 GMT</pubDate>
    <dc:creator>alespooletto</dc:creator>
    <dc:date>2024-06-06T08:27:57Z</dc:date>
    <item>
      <title>Why my set analysis is not working for all my group ?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-my-set-analysis-is-not-working-for-all-my-group/m-p/2459788#M98734</link>
      <description>&lt;P&gt;Hello, 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;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;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;&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;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) * Avg_Time,
        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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone please help me figure out what I am doing wrong?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 08:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-my-set-analysis-is-not-working-for-all-my-group/m-p/2459788#M98734</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-06-06T08:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why my set analysis is not working for all my group ?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-my-set-analysis-is-not-working-for-all-my-group/m-p/2459802#M98737</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/253882"&gt;@alespooletto&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Check with this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sum(&lt;BR /&gt;Aggr(&lt;BR /&gt;Count({&amp;lt; ACTION_CODE = {'LABOR_OFF'}, Employee= &amp;gt;} distinct MainSFC) * Avg_Time,&lt;BR /&gt;MainSFC, Employee&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;/&lt;BR /&gt;(&lt;BR /&gt;Sum(&lt;BR /&gt;Aggr(&lt;BR /&gt;Count({&amp;lt; Employee= &amp;gt;} distinct WorkingDay) * 7.5 * 60,&lt;BR /&gt;Employee&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;- Sum(Absence) * 60&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;***Hope this resolve your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the issue is solved please mark the answer with Accept as Solution &amp;amp; like it.***&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 08:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-my-set-analysis-is-not-working-for-all-my-group/m-p/2459802#M98737</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2024-06-06T08:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why my set analysis is not working for all my group ?</title>
      <link>https://community.qlik.com/t5/App-Development/Why-my-set-analysis-is-not-working-for-all-my-group/m-p/2459940#M98758</link>
      <description>&lt;P&gt;Thank you so much, unfortunately this measure as it is does not show me any values. Thanks for the help though, I am struggling to understand set analysis&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 14:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Why-my-set-analysis-is-not-working-for-all-my-group/m-p/2459940#M98758</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-06-06T14:30:20Z</dc:date>
    </item>
  </channel>
</rss>

