<?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 Unable to restrict Month in Aggr function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unable-to-restrict-Month-in-Aggr-function/m-p/1173998#M381265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created below expression which will provide AVG of score using AGGR, I am trying to restrict the AGGR for initial 4 Months, but its not working,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= alt(num(Avg(Aggr((If((((sum({&amp;lt;MonthNum-={1,2,3,4},GlobalGroup = {'Software Services Operations'}&amp;gt;}[Direct Billable Utilization])/&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum({&amp;lt;MonthNum-={1,2,3,4},GlobalGroup = {'Software Services Operations'}&amp;gt;}[Standard Work Hours]))&amp;gt;= &lt;/P&gt;&lt;P&gt;&amp;nbsp; (If(GetSelectedCount(Geomarket)&amp;gt;0 ,Sum(Distinct DBUGMTarget%SW)/GetSelectedCount(Geomarket),If(GetSelectedCount(Area)&amp;gt;0,Sum(Distinct DBUAreaTarget%SW)/GetSelectedCount(Area),0.68)))) and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((sum({&amp;lt;MonthNum-={1,2,3,4},MM_CompliantStatus={1},GlobalGroup = {'Software Services Operations'}&amp;gt;}TT_RegularHoursBooked)/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;MonthNum-={1,2,3,4},Metric={'MM'},GlobalGroup = {'Software Services Operations'}&amp;gt;}StandardWorkDay))&amp;gt;=0.7) and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((sum({&amp;lt;MonthNum-={1,2,3,4},ME_CompliantStatus={1},GlobalGroup = {'Software Services Operations'}&amp;gt;}TT_RegularHoursBooked)/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;MonthNum-={1,2,3,4},GlobalGroup = {'Software Services Operations'}&amp;gt;}StandardWorkDay))&amp;gt;=0.97)), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10, 0)),MonthNum)),'#,##0.0'),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I select Month as 5,6 it shows correct result but when I select 1 to 6 Months, it shows wrong result, ideally it should show only 5,6 as we have restricted for 1 to 4 but unfortunately its doing AGGR on 6 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on priority is highly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raaj...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jul 2016 10:01:20 GMT</pubDate>
    <dc:creator>raajgote</dc:creator>
    <dc:date>2016-07-05T10:01:20Z</dc:date>
    <item>
      <title>Unable to restrict Month in Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-restrict-Month-in-Aggr-function/m-p/1173998#M381265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created below expression which will provide AVG of score using AGGR, I am trying to restrict the AGGR for initial 4 Months, but its not working,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= alt(num(Avg(Aggr((If((((sum({&amp;lt;MonthNum-={1,2,3,4},GlobalGroup = {'Software Services Operations'}&amp;gt;}[Direct Billable Utilization])/&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum({&amp;lt;MonthNum-={1,2,3,4},GlobalGroup = {'Software Services Operations'}&amp;gt;}[Standard Work Hours]))&amp;gt;= &lt;/P&gt;&lt;P&gt;&amp;nbsp; (If(GetSelectedCount(Geomarket)&amp;gt;0 ,Sum(Distinct DBUGMTarget%SW)/GetSelectedCount(Geomarket),If(GetSelectedCount(Area)&amp;gt;0,Sum(Distinct DBUAreaTarget%SW)/GetSelectedCount(Area),0.68)))) and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((sum({&amp;lt;MonthNum-={1,2,3,4},MM_CompliantStatus={1},GlobalGroup = {'Software Services Operations'}&amp;gt;}TT_RegularHoursBooked)/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;MonthNum-={1,2,3,4},Metric={'MM'},GlobalGroup = {'Software Services Operations'}&amp;gt;}StandardWorkDay))&amp;gt;=0.7) and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((sum({&amp;lt;MonthNum-={1,2,3,4},ME_CompliantStatus={1},GlobalGroup = {'Software Services Operations'}&amp;gt;}TT_RegularHoursBooked)/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;MonthNum-={1,2,3,4},GlobalGroup = {'Software Services Operations'}&amp;gt;}StandardWorkDay))&amp;gt;=0.97)), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10, 0)),MonthNum)),'#,##0.0'),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I select Month as 5,6 it shows correct result but when I select 1 to 6 Months, it shows wrong result, ideally it should show only 5,6 as we have restricted for 1 to 4 but unfortunately its doing AGGR on 6 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on priority is highly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raaj...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 10:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-restrict-Month-in-Aggr-function/m-p/1173998#M381265</guid>
      <dc:creator>raajgote</dc:creator>
      <dc:date>2016-07-05T10:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to restrict Month in Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-restrict-Month-in-Aggr-function/m-p/1173999#M381266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to check individual expression where it is going wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 11:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-restrict-Month-in-Aggr-function/m-p/1173999#M381266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-05T11:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to restrict Month in Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-restrict-Month-in-Aggr-function/m-p/1174000#M381267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need a year dimension here..&lt;/P&gt;&lt;P&gt;ex&lt;/P&gt;&lt;P&gt;alt(num(Avg(Aggr((If((((sum({&amp;lt;MonthNum-={1,2,3,4},&lt;STRONG&gt;Year={2016}&lt;/STRONG&gt;,GlobalGroup = {'Software Services Operations'}&amp;gt;}[Direct Billable Utilization])/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 11:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-restrict-Month-in-Aggr-function/m-p/1174000#M381267</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2016-07-05T11:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to restrict Month in Aggr function</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-restrict-Month-in-Aggr-function/m-p/1174001#M381268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all for quick response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already checked individual expression and issue is there in below expression,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;(If(GetSelectedCount(Geomarket)&amp;gt;0 ,Sum(Distinct DBUGMTarget%SW)/GetSelectedCount(Geomarket),If(GetSelectedCount(Area)&amp;gt;0,Sum(Distinct DBUAreaTarget%SW)/GetSelectedCount(Area),0.68))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-size: 13px; line-height: 1.5em;"&gt;Instead of dynamic expression which is &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; line-height: 19.5px;"&gt;ultimately resulting into single value, when we add static value, it will give correct result.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Raaj... &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 12:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-restrict-Month-in-Aggr-function/m-p/1174001#M381268</guid>
      <dc:creator>raajgote</dc:creator>
      <dc:date>2016-07-05T12:10:30Z</dc:date>
    </item>
  </channel>
</rss>

