<?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: Complicated AGGR in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321526#M515266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DEFECT_STATUS_MAP = {'Closed'}&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;Aggr(If(Max(DEFECT_STATUS_START_DATE)-Min(DEFECT_STATUS_START_DATE)&amp;gt;1,1,0), DEFECT_ID,FISCAL_YEAR))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;DEFECT_ID = {"=Count(DISTINCT {&amp;lt;&lt;STRONG style=": ; color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DEFECT_STATUS_MAP = {'Closed'}&lt;/STRONG&gt;&amp;gt;} &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;DEFECT_ID) &amp;gt; 0"}&lt;/STRONG&gt;&amp;gt;}&lt;/SPAN&gt;Aggr(If(Max(DEFECT_STATUS_START_DATE)-Min(DEFECT_STATUS_START_DATE)&amp;gt;1,1,0), DEFECT_ID,FISCAL_YEAR))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jun 2017 19:42:32 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-06-06T19:42:32Z</dc:date>
    <item>
      <title>Complicated AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321513#M515253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I only want to include rows in which &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;DEFECT_STATUS_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_STATUS_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;1 &lt;/SPAN&gt; for both the calculation of my Avg # days and the count of DEFECT_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Avg # days is using a denominator of the total count of DEFECT_IDs instead of just those in which&amp;nbsp; &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;DEFECT_STATUS_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_STATUS_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;1 &lt;/SPAN&gt;. As you can see, if 10-13 is selected for the month and the Statuses selected are New and Approved, the Avg # days shows 8 but (27+12)/2 which should be 19.5. It's including those DEFECT_IDs where &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;DEFECT_STATUS_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_STATUS_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;lt;1. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&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;DEFECT_STATUS_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_STATUS_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;1,&lt;/SPAN&gt;&lt;SPAN style="; color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vAvgDays)&lt;/EM&gt;&lt;/STRONG&gt;&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;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #808080;"&gt;&lt;STRONG&gt;&lt;EM&gt;vAvgDays&lt;/EM&gt;&lt;/STRONG&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;DEFECT_STATUS_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)- &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_STATUS_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) ) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=Count(DEFECT_STATUS_MAP) = GetSelectedCount(DEFECT_STATUS_MAP)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Same question on the # of defects. It shows 1 when there should be 2 in this case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks all!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;A href="https://community.qlik.com/qlik-users/244336"&gt;scottford&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 15:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321513#M515253</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2017-06-06T15:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321514#M515254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Cassandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct me if I understood it wrong,&lt;/P&gt;&lt;P&gt;but if you need the value to be 39, just let your vAvgDays variable be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=SUM(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Max(DEFECT_STATUS_START_DATE)- Min(DEFECT_STATUS_START_DATE)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ,DEFECT_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the following:&lt;/P&gt;&lt;P&gt;1) Your number, with the function you defined on the vAvgDays&lt;/P&gt;&lt;P&gt;2) Same expression withouth the denominator (as I pasted above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the table has both of them as expressions (just added the 2) expression to the table you aldready had).&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="165931" alt="Sample.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/165931_Sample.png" style="height: 138px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sample2.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/165965_Sample2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Felipe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 16:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321514#M515254</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2017-06-06T16:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321515#M515255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want the average so 39/2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 16:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321515#M515255</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2017-06-06T16:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321516#M515256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking for the right count, Felip, not the sum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 16:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321516#M515256</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2017-06-06T16:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321517#M515257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 16:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321517#M515257</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2017-06-06T16:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321518#M515258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg(Aggr(if(max(DEFECT_STATUS_START_DATE)-min(DEFECT_STATUS_START_DATE)&amp;gt;1,$(vAvgDays)), MONTH_1, DEFECT_ID))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 16:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321518#M515258</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-06T16:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321519#M515259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you select Oct 2013, That doesn't seem to give me any value for Avg # days and also what about the Count formula?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&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;DEFECT_STATUS_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_STATUS_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;1,1,0) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 17:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321519#M515259</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2017-06-06T17:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321520#M515260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where on the sheet do I select that value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/165969_Capture.PNG" style="height: 251px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 17:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321520#M515260</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-06T17:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321521#M515261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like it's already showing only October in your screenshot but you can select it in the straight table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 17:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321521#M515261</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2017-06-06T17:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321522#M515262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if it is already selected, I see 19 in the chart next to it... isn't that what you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/165974_Capture.PNG" style="height: 235px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 17:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321522#M515262</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-06T17:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321523#M515263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, and for the count to match the table and show 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 17:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321523#M515263</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2017-06-06T17:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321524#M515264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(If(Max(DEFECT_STATUS_START_DATE)-Min(DEFECT_STATUS_START_DATE)&amp;gt;1,1,0), DEFECT_ID, MONTH_1))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 17:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321524#M515264</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-06T17:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321525#M515265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks as always Sunny!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I add the syntax to say specifically to return a count of DEFECT_STATUS_MAP = Closed DEFECT_ID to this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;If&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;DEFECT_STATUS_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_STATUS_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;1,1,0), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FISCAL_YEAR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 19:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321525#M515265</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2017-06-06T19:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321526#M515266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DEFECT_STATUS_MAP = {'Closed'}&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;Aggr(If(Max(DEFECT_STATUS_START_DATE)-Min(DEFECT_STATUS_START_DATE)&amp;gt;1,1,0), DEFECT_ID,FISCAL_YEAR))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;DEFECT_ID = {"=Count(DISTINCT {&amp;lt;&lt;STRONG style=": ; color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DEFECT_STATUS_MAP = {'Closed'}&lt;/STRONG&gt;&amp;gt;} &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;DEFECT_ID) &amp;gt; 0"}&lt;/STRONG&gt;&amp;gt;}&lt;/SPAN&gt;Aggr(If(Max(DEFECT_STATUS_START_DATE)-Min(DEFECT_STATUS_START_DATE)&amp;gt;1,1,0), DEFECT_ID,FISCAL_YEAR))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 19:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-AGGR/m-p/1321526#M515266</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-06T19:42:32Z</dc:date>
    </item>
  </channel>
</rss>

