<?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 and AGGR in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883619#M308177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to show Actual PTO hours separately from Actual hours so my set analysis for Actual hours should exclude hours where the TASK_NAME = PTO and the Actual PTO hours should only reflect hours in which TASK_NAME = PTO. Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2015 22:38:46 GMT</pubDate>
    <dc:creator>cbaqir</dc:creator>
    <dc:date>2015-07-15T22:38:46Z</dc:date>
    <item>
      <title>Set Analysis and AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883614#M308172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any idea why this works just fine: &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TASK_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'PTO'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ACT_HRS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MONTH_CAP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FISCAL_MONTH_YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this doesn't?&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TASK_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={'PTO'}&amp;gt;}ACT_HRS)/sum( aggr(max(MONTH_CAP),FISCAL_MONTH_YEAR)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difference is the inclusion/exclusion of the PTO task (= vs -=)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 20:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883614#M308172</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-07-15T20:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883615#M308173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QV does show a syntax error (it's a bug), but it should still work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also write it like this (with a - after the $):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({$-&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;TASK_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={'PTO'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;ACT_HRS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 20:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883615#M308173</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2015-07-15T20:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883616#M308174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Nicole. You are my savior today. The calcs aren't displaying correctly in my graph when I use the aggr statement with the exclusion. I must have a missing ( or something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 20:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883616#M308174</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-07-15T20:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883617#M308175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see anything missing in your expressions.&amp;nbsp; Unfortunately, without seeing the data, it's hard to determine what's going wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 20:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883617#M308175</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2015-07-15T20:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883618#M308176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to remove PTO from the existing TASK_NAME selections or are you trying for NOT PTO?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 22:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883618#M308176</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-07-15T22:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883619#M308177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to show Actual PTO hours separately from Actual hours so my set analysis for Actual hours should exclude hours where the TASK_NAME = PTO and the Actual PTO hours should only reflect hours in which TASK_NAME = PTO. Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 22:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883619#M308177</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-07-15T22:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883620#M308178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if you have TASK_NAMEs of &lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;PTO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the user selects "B", either directly or indirectly, the -PTO expression should aggregate B only, or A &amp;amp; B?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you expand on "isn't working"? Nulls, zeros, results too large or too small?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 23:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883620#M308178</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-07-15T23:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883621#M308179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The divisor is used to calculate full time equivalent employees and should be the number of working hours in that time period (if there are 160 hours in 1 month and the time frame is one month, the divisor should be 160. If there are 160 in Jan and Feb, the divisor should be 320)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Non-PTO hours, this works: &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TASK_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=PTO)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}ACT_HRS) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;However, when I add the divisor, it returns a null result: &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TASK_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=PTO)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}ACT_HRS)/sum( aggr(max(MONTH_CAP),FISCAL_MONTH_YEAR))&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Same thing for the other 2 expressions.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 15:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883621#M308179</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-07-16T15:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883622#M308180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do you need the Flag in Dimension?&lt;/P&gt;&lt;P&gt;Then, may be try to add the Flag field in Aggregation for Actual PTO&amp;nbsp; like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({$&amp;lt;TASK_NAME={'PTO'}&amp;gt;} ACT_HRS)/sum( aggr(max(MONTH_CAP),FISCAL_MONTH_YEAR,Flag)) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result should be look like below&lt;/P&gt;&lt;P&gt;&lt;IMG alt="comm1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/93116_comm1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 16:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883622#M308180</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-07-16T16:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883623#M308181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you trying to add the expression?&amp;nbsp; When I put it in a text box, it returns a result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2015 01:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883623#M308181</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2015-07-19T01:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883624#M308182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the problem is the granularity of the dimensions, although I haven't been able to sort out a solution. The calculated Dim against TRX_Date produces two different aggregations of MONTH-CAP/ I don't see the problem if you use &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FISCAL_MONTH_YEAR &lt;/STRONG&gt;as the Dim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2015 17:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883624#M308182</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-07-19T17:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883625#M308183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am adding the expression within the Expressions tab in the chart. You are right that I also get a value in a text box. I think I was missing the FLAG dimension in the expression,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 16:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-AGGR/m-p/883625#M308183</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2015-07-22T16:44:45Z</dc:date>
    </item>
  </channel>
</rss>

