<?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 Calculation Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-Help/m-p/742250#M265040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know why I am having such difficulty with this but I thought I would finally ask for some help as I am sure there is a simple solution. I am struggling with how to use sum(total...) and sum(all...) and aggr so maybe that is the key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADJ_HRS = an individual's capacity for the month (hours) from a pool (they could be in multiple pools for a split % of their time)&lt;/P&gt;&lt;P&gt;ALLOC_HRS = # hours an individual is allocated to a project from a pool (they could be in multiple pools for a split % of their time)&lt;/P&gt;&lt;P&gt;ACT_HRS = # of hours an individual booked on their timesheet&lt;/P&gt;&lt;P&gt;MONTH_CAP = Total # of working hours in the month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data was all at the same granularity, I would think a simple FTE Capacity Calculation would be sum(ADJ_HRS)/sum(MONTH_CAP). Unfortunately, this is not the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the expression to sum up the selected user's ADJ_CAP across multiple rows while only taking one instance of the MONTH_CAP per month selected? If there are several people selected vs 1, the sum(month_cap) should not change if the time period remains the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="100" style="border: 1px solid rgb(0, 0, 0); width: 769px; height: 100px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Pool &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;FTE Capacity&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Allocated FTEs&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Actual FTEs&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt; sum(ADJ_HRS)/sum(MONTH_CAP)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt; sum(ALLOC_HRS)/sum(MONTH_CAP)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;sum(ACT_HRS)/sum(MONTH_CAP)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Cassandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2014 21:28:18 GMT</pubDate>
    <dc:creator>cbaqir</dc:creator>
    <dc:date>2014-11-13T21:28:18Z</dc:date>
    <item>
      <title>Calculation Help</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Help/m-p/742250#M265040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know why I am having such difficulty with this but I thought I would finally ask for some help as I am sure there is a simple solution. I am struggling with how to use sum(total...) and sum(all...) and aggr so maybe that is the key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADJ_HRS = an individual's capacity for the month (hours) from a pool (they could be in multiple pools for a split % of their time)&lt;/P&gt;&lt;P&gt;ALLOC_HRS = # hours an individual is allocated to a project from a pool (they could be in multiple pools for a split % of their time)&lt;/P&gt;&lt;P&gt;ACT_HRS = # of hours an individual booked on their timesheet&lt;/P&gt;&lt;P&gt;MONTH_CAP = Total # of working hours in the month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data was all at the same granularity, I would think a simple FTE Capacity Calculation would be sum(ADJ_HRS)/sum(MONTH_CAP). Unfortunately, this is not the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the expression to sum up the selected user's ADJ_CAP across multiple rows while only taking one instance of the MONTH_CAP per month selected? If there are several people selected vs 1, the sum(month_cap) should not change if the time period remains the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="100" style="border: 1px solid rgb(0, 0, 0); width: 769px; height: 100px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Pool &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;FTE Capacity&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Allocated FTEs&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Actual FTEs&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt; sum(ADJ_HRS)/sum(MONTH_CAP)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt; sum(ALLOC_HRS)/sum(MONTH_CAP)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;sum(ACT_HRS)/sum(MONTH_CAP)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Cassandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 21:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Help/m-p/742250#M265040</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2014-11-13T21:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Help</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Help/m-p/742251#M265041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without some real data to play around with, I can only make a guess. Perhaps &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;sum(ADJ_HRS)/only(MONTH_CAP)&lt;/EM&gt; will work. If not, please post an example document that demonstrates the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 09:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Help/m-p/742251#M265041</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-14T09:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Help</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Help/m-p/742252#M265042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure how to post a QVW given my data sources... but can you give me an explanation on only()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying something new...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a calendar table that has date and MONTH_CAP:&lt;/P&gt;&lt;P&gt;10/01/2014 184&lt;/P&gt;&lt;P&gt;10/02/2014 184&lt;/P&gt;&lt;P&gt;... 10/31/2014 184&lt;/P&gt;&lt;P&gt;11/01/2014 144&lt;/P&gt;&lt;P&gt;... 11/30/2014 144&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my FACT table, I have several rows that show DATE, ALLOC_HRS, ADJ_CAP and ACT_HRS. These hours would need to be summed up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE, ALLOC_HRS, ADJ_CAP and ACT_HRS&lt;/P&gt;&lt;P&gt;Person A 10/01/2014, 100, 176, 110&lt;/P&gt;&lt;P&gt;Person A 11/01/2014, 100, 136, 120&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output for Person A for October:&lt;/P&gt;&lt;P&gt;FTE Capacity:&lt;STRONG&gt; sum(ADJ_CAP)/only(MONTH_CAP)? &lt;/STRONG&gt;176/184= .96 FTE&lt;/P&gt;&lt;P&gt;FTE Alloc: &lt;STRONG&gt;sum(ALLOC_HRS)/only(MONTH_CAP)?&lt;/STRONG&gt; 100/184= .54 FTE&lt;/P&gt;&lt;P&gt;FTE Actual:&amp;nbsp; &lt;STRONG&gt;sum(ACT_HRS)/only(MONTH_CAP)?&lt;/STRONG&gt; 110/184= .6 FTE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output for Person A for October and November:&lt;/P&gt;&lt;P&gt;FTE Capacity: &lt;STRONG&gt;sum(ADJ_CAP)/sum(MONTH_CAP)?&lt;/STRONG&gt; 312/328 = .96 FTE&lt;/P&gt;&lt;P&gt;FTE Alloc: 200/328 = .61 FTE&lt;/P&gt;&lt;P&gt;FTE Actual:&amp;nbsp; 230/328 = .7 FTE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 19:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Help/m-p/742252#M265042</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2014-11-14T19:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Help</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Help/m-p/742253#M265043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this document: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-1290" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Nov 2014 08:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Help/m-p/742253#M265043</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-11-15T08:53:41Z</dc:date>
    </item>
  </channel>
</rss>

