<?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: Set analysis in  Chart with special requirement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-Chart-with-special-requirement/m-p/1800776#M64895</link>
    <description>&lt;P&gt;Hi, have you tried without the count?:&amp;nbsp;&lt;SPAN&gt;Sum(TOTAL &amp;lt;[Audit ID]&amp;gt; {&amp;lt;Team=&amp;gt;} [Hrs Spent])-Sum([Hrs Spent])&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Apr 2021 06:38:01 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2021-04-20T06:38:01Z</dc:date>
    <item>
      <title>Set analysis in  Chart with special requirement</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-Chart-with-special-requirement/m-p/1800177#M64826</link>
      <description>&lt;P&gt;I have a bar chart with one dimensions: Audit ID&amp;nbsp;&lt;/P&gt;&lt;P&gt;For measures, I have:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;an expression for total hours spent for each phase of the audit, i.e. Planning, Fieldwork, Reporting&lt;UL&gt;&lt;LI&gt;Sum({&amp;lt;Phase={'Planning'}&amp;gt;} [Hrs Spent])&lt;/LI&gt;&lt;LI&gt;Sum({&amp;lt;Phase={'Fieldwork'}&amp;gt;} [Hrs Spent])&lt;/LI&gt;&lt;LI&gt;Sum({&amp;lt;Phase={'Reporting'}&amp;gt;} [Hrs Spent])&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;an expression that shows the time remaining on the budget for the project (regardless of phase)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Since more than one team can work on an audit, the issue I'm trying to address is that my current calculation&amp;nbsp;for time remaining is:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[Hrs remaining] - Sum( [Hrs Spent])&lt;/P&gt;&lt;P&gt;This does not account for the fact that if an audit has two teams on it, and the user selects one of those teams, it will calculate the remaining time as if only one team has worked on the audit.&amp;nbsp; So for example if the budget is 150 hrs, and each tean has worked 50 hrs, there are 50 hours remaining.&amp;nbsp; But if I select team 1, the remaining comes up as 100 hrs.&lt;/P&gt;&lt;P&gt;To solve this I want to add a new expression that is the time spent by all other teams on this audit (50) and then revise my remaining time formula to be:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[Hrs remaining] - (Sum( [Hrs Spent&amp;lt;by selected team&amp;gt;]) +&amp;nbsp;&amp;nbsp;Sum( [Hrs Spent]&amp;lt;by other teams&amp;gt;))&lt;/P&gt;&lt;P&gt;My issue is that I can't seem to figure out the set analysis required to produce the time spent by other teams.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tschullo_0-1618590131831.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53169iED1F2D12ABEE489C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tschullo_0-1618590131831.png" alt="tschullo_0-1618590131831.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 21:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-Chart-with-special-requirement/m-p/1800177#M64826</guid>
      <dc:creator>tschullo</dc:creator>
      <dc:date>2021-04-16T21:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in  Chart with special requirement</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-Chart-with-special-requirement/m-p/1800259#M64836</link>
      <description>&lt;P&gt;Hi you can try with:&amp;nbsp;&lt;SPAN&gt;Sum(TOTAL &amp;lt;[Audit ID]&amp;gt; {&amp;lt;Team=&amp;gt;} [Hrs Spent])-Sum([Hrs Spent]).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp;{&amp;lt;Team=&amp;gt;} to ignore selections in team&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- TOTAL to ignore Team dimension&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This will return the total hours for an auditId, substracting the hours from the team in the dimension should give you the hours dedicated by other teams.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maybe you nee an If enclosing everything so when you select a tem it doesn't show all the others, not tested, maybe not needed but it can be something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If(Count(Team),Sum(TOTAL &amp;lt;[Audit ID]&amp;gt; {&amp;lt;Team=&amp;gt;} [Hrs Spent])-Sum([Hrs Spent]))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2021 08:14:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-Chart-with-special-requirement/m-p/1800259#M64836</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-04-17T08:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in  Chart with special requirement</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-Chart-with-special-requirement/m-p/1800497#M64860</link>
      <description>&lt;P&gt;Thanks! That worked perfectly!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 13:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-Chart-with-special-requirement/m-p/1800497#M64860</guid>
      <dc:creator>tschullo</dc:creator>
      <dc:date>2021-04-19T13:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in  Chart with special requirement</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-Chart-with-special-requirement/m-p/1800545#M64864</link>
      <description>&lt;P&gt;Ruben,&lt;/P&gt;&lt;P&gt;In my use case, the Team is not part of the chart (it's really a bar chart by Audit)&lt;BR /&gt;However if the user selects a team from a filter, the Other Team Time gets set to zero.&lt;/P&gt;&lt;P&gt;Any ideas how to overcome that?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 15:06:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-Chart-with-special-requirement/m-p/1800545#M64864</guid>
      <dc:creator>tschullo</dc:creator>
      <dc:date>2021-04-19T15:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in  Chart with special requirement</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-Chart-with-special-requirement/m-p/1800776#M64895</link>
      <description>&lt;P&gt;Hi, have you tried without the count?:&amp;nbsp;&lt;SPAN&gt;Sum(TOTAL &amp;lt;[Audit ID]&amp;gt; {&amp;lt;Team=&amp;gt;} [Hrs Spent])-Sum([Hrs Spent])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 06:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-Chart-with-special-requirement/m-p/1800776#M64895</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-04-20T06:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in  Chart with special requirement</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-Chart-with-special-requirement/m-p/1800890#M64905</link>
      <description>&lt;P&gt;I actually never included the count&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 11:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-Chart-with-special-requirement/m-p/1800890#M64905</guid>
      <dc:creator>tschullo</dc:creator>
      <dc:date>2021-04-20T11:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in  Chart with special requirement</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-Chart-with-special-requirement/m-p/1800918#M64908</link>
      <description>&lt;P&gt;I would need a sample to check, I did a simple one and it seems to work but you should have something different.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 12:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-Chart-with-special-requirement/m-p/1800918#M64908</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-04-20T12:57:05Z</dc:date>
    </item>
  </channel>
</rss>

