<?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: Aggr Function - Help Needed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Function-Help-Needed/m-p/1571380#M442155</link>
    <description>&lt;P&gt;That seems to work... How&amp;nbsp;is it&amp;nbsp;accounting for the fact that the factor varies by team?&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2019 12:39:03 GMT</pubDate>
    <dc:creator>tschullo</dc:creator>
    <dc:date>2019-04-19T12:39:03Z</dc:date>
    <item>
      <title>Aggr Function - Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function-Help-Needed/m-p/1571272#M442149</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 544px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10582iEE0CF6300368E3CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am trying to display the planned hours by quarter against available hours where the available hours are based on&amp;nbsp;(40 hour week x 52 weeks)/4 = 520.&amp;nbsp; We then take that number and lookup the resource count by Team and multiply the 520 by that. Additionally, since team members work on things other than audits, there is a factor assigned by team that is used as a final multiplier as shown in the above data chart.&lt;/P&gt;&lt;P&gt;The issue is that in the bar graph, I need to calculate the time available by aggregating the product of all these factors based on team and any filters that might be set limiting which team we are looking at,&lt;/P&gt;&lt;P&gt;The expression I wrote which is not working is: =Aggr(Sum(Sum(QtrWorkHours)*RscCnt*Factor),Team) as well as =Aggr(Sum(QtrWorkHours*RscCnt*Factor),QtrWorkHours,Team).&lt;/P&gt;&lt;P&gt;The Planned Hours bar chart expression is just: Sum(PlannedHrs)&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Here is the script for some sample data:&lt;/P&gt;&lt;P&gt;AuditData:&lt;BR /&gt;load * inline [&lt;BR /&gt;AuditID, AuditDesc,&amp;nbsp;Qtr,&amp;nbsp;PlannedHrs&lt;BR /&gt;101,&amp;nbsp;Audit 101,&amp;nbsp;2019Q2,&amp;nbsp;50&lt;BR /&gt;102,&amp;nbsp;Audit 102,&amp;nbsp;2019Q2,&amp;nbsp;70&lt;BR /&gt;103,&amp;nbsp;Audit 103,&amp;nbsp;2019Q4,&amp;nbsp;500&lt;BR /&gt;104,&amp;nbsp;Audit 104,&amp;nbsp;2019Q2,&amp;nbsp;250&lt;BR /&gt;105,&amp;nbsp;Audit 105,&amp;nbsp;2019Q3,&amp;nbsp;150&lt;BR /&gt;106,&amp;nbsp;Audit 106,&amp;nbsp;2019Q2,&amp;nbsp;520&lt;BR /&gt;107,&amp;nbsp;Audit 107,&amp;nbsp;2019Q2,&amp;nbsp;450&lt;BR /&gt;108,&amp;nbsp;Audit 108,&amp;nbsp;2019Q3,&amp;nbsp;150&lt;BR /&gt;109,&amp;nbsp;Audit 109,&amp;nbsp;2019Q4,&amp;nbsp;250&lt;BR /&gt;110,&amp;nbsp;Audit 110,&amp;nbsp;2019Q3,&amp;nbsp;150&lt;BR /&gt;111,&amp;nbsp;Audit 111,&amp;nbsp;2019Q4,&amp;nbsp;550&lt;BR /&gt;] ;&lt;/P&gt;&lt;P&gt;AnalyticsTeam:&lt;BR /&gt;load * inline [&lt;BR /&gt;AuditID, Team&lt;BR /&gt;101,&amp;nbsp;UK&lt;BR /&gt;102,&amp;nbsp;US&lt;BR /&gt;102,&amp;nbsp;UK&lt;BR /&gt;103,&amp;nbsp;HK&lt;BR /&gt;104,&amp;nbsp;HK&lt;BR /&gt;105,&amp;nbsp;US&lt;BR /&gt;105,&amp;nbsp;UK&lt;BR /&gt;105,&amp;nbsp;HK&lt;BR /&gt;106,&amp;nbsp;UK&lt;BR /&gt;107,&amp;nbsp;HK&lt;BR /&gt;108,&amp;nbsp;HK&lt;BR /&gt;109,&amp;nbsp;UK&lt;BR /&gt;110,&amp;nbsp;HK&lt;BR /&gt;111,&amp;nbsp;HK&lt;BR /&gt;] ;&lt;/P&gt;&lt;P&gt;QtrHrs:&lt;BR /&gt;load * inline [&lt;BR /&gt;Qtr, QtrWorkHours&lt;BR /&gt;2019Q1,&amp;nbsp;520&lt;BR /&gt;2019Q2,&amp;nbsp;520&lt;BR /&gt;2019Q3,&amp;nbsp;520&lt;BR /&gt;2019Q4,&amp;nbsp;520&lt;BR /&gt;] ;&lt;/P&gt;&lt;P&gt;TeamMakeup:&lt;BR /&gt;load * inline [&lt;BR /&gt;Team, RscCnt,&amp;nbsp;Factor&lt;BR /&gt;US,&amp;nbsp;&amp;nbsp;7,&amp;nbsp;&amp;nbsp;.45&lt;BR /&gt;UK,&amp;nbsp;&amp;nbsp;8,&amp;nbsp;&amp;nbsp;.45&lt;BR /&gt;HK,&amp;nbsp;&amp;nbsp;9,&amp;nbsp;&amp;nbsp;.65&lt;BR /&gt;] ;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function-Help-Needed/m-p/1571272#M442149</guid>
      <dc:creator>tschullo</dc:creator>
      <dc:date>2024-11-16T03:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function - Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function-Help-Needed/m-p/1571283#M442150</link>
      <description>&lt;P&gt;Sum(Aggr(Sum(RscCnt*Factor)*Avg(QtrWorkHours), Qtr))&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 03:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function-Help-Needed/m-p/1571283#M442150</guid>
      <dc:creator>felipe_dutra</dc:creator>
      <dc:date>2019-04-19T03:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function - Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function-Help-Needed/m-p/1571380#M442155</link>
      <description>&lt;P&gt;That seems to work... How&amp;nbsp;is it&amp;nbsp;accounting for the fact that the factor varies by team?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 12:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function-Help-Needed/m-p/1571380#M442155</guid>
      <dc:creator>tschullo</dc:creator>
      <dc:date>2019-04-19T12:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function - Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function-Help-Needed/m-p/1571470#M442161</link>
      <description>&lt;TABLE border="1" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Team&lt;/TD&gt;&lt;TD&gt;RscCnt&lt;/TD&gt;&lt;TD&gt;Factor&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;RscCnt*Factor&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;US&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;0.45&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;3.15&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;UK&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;0.45&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;3.6&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;HK&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;0.65&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;5.85&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(RscCnt*Factor) = 3.15 + 3.6 + 5.85 = 12.6&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2019 01:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function-Help-Needed/m-p/1571470#M442161</guid>
      <dc:creator>felipe_dutra</dc:creator>
      <dc:date>2019-04-20T01:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Function - Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Function-Help-Needed/m-p/1571717#M442173</link>
      <description>&lt;P&gt;When I added it to my dashboard, I found that I did have to specify Team as another group by field:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum(Aggr(Sum(RscCnt*Factor)*Avg(QtrWorkHours), Qtr, Team))&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 13:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Function-Help-Needed/m-p/1571717#M442173</guid>
      <dc:creator>tschullo</dc:creator>
      <dc:date>2019-04-22T13:51:32Z</dc:date>
    </item>
  </channel>
</rss>

