<?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: Filter after Set Analysis in AGGR function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191344#M882326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see sample app attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yuvir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2016 05:31:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-09-29T05:31:20Z</dc:date>
    <item>
      <title>Filter after Set Analysis in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191340#M882322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlikview Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table with the calculated dimension of:&lt;/P&gt;&lt;P&gt;=Aggr(FirstSortedValue({&amp;lt;LogType={2}&amp;gt;}[process status],-communicationQueueLogId),CommunicationQueueId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And an expression of:&lt;/P&gt;&lt;P&gt;COUNT({&amp;lt;LogType={2}&amp;gt;}DISTINCT &lt;SPAN style="font-size: 13.3333px;"&gt;CommunicationQueueId&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This straight table works as expected with the correct results. I would like to add a filter after that expression has been calculated.&lt;/P&gt;&lt;P&gt;So, the calculated dimension and expression must evaluate to a certain result, and then after that has been evaluated, apply a certain filter.I have tried the obvious things like adding that condition in my set analysis or as a filter but the results are incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible? I want to add where [process status]='Done'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yuvir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191340#M882322</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filter after Set Analysis in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191341#M882323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand what you are looking for? You want that first the expression evaluates to something and then apply another filter? Can you may be elaborate a little?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 18:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191341#M882323</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-28T18:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filter after Set Analysis in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191342#M882324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The use case is as follows:&lt;/P&gt;&lt;P&gt;I am using the AGGR function together with the FirstSortedValue function to determine the latest status of an application.This works perfectly. What i need to further break this down into is a count of applications where the latest status is 'Done'.&lt;/P&gt;&lt;P&gt;So what Qlikview is doing currently, is looking for the latest 'Done' status on an application rather than finding all the applications latest status first and then finding only the ones where the latest is 'Done'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the value i get when i do not specify the 'Done' status in the set analysis(The correct value):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/139097_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the value i get when i specify the 'Done' status in the set analysis(The wrong value)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/139098_Capture2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;This is my calculated dimension:&lt;/P&gt;&lt;P&gt;=Aggr(FirstSortedValue({&amp;lt;LogType={2},[process status]={'Done'}&amp;gt;}[process status],-communicationQueueLogId),CommunicationQueueId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my Expression:&lt;/P&gt;&lt;P&gt;COUNT({&amp;lt;LogType={2}&amp;gt;}DISTINCT &lt;SPAN style="font-size: 13.3333px;"&gt;CommunicationQueueId&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yuvir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 01:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191342#M882324</guid>
      <dc:creator />
      <dc:date>2016-09-29T01:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Filter after Set Analysis in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191343#M882325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u share sample data along with output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Nagarjun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 02:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191343#M882325</guid>
      <dc:creator>nagarjuna_kotha</dc:creator>
      <dc:date>2016-09-29T02:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filter after Set Analysis in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191344#M882326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see sample app attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yuvir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 05:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191344#M882326</guid>
      <dc:creator />
      <dc:date>2016-09-29T05:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filter after Set Analysis in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191345#M882327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this the goal?&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/139210_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr(FirstSortedValue({&amp;lt;LogType={2}&amp;gt;}[process status],-communicationQueueLogId),CommunicationQueueId)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;LogType={2}, [process status] = {'Done'}&amp;gt;}DISTINCT $(ident))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 19:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191345#M882327</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-29T19:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filter after Set Analysis in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191346#M882328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the solution above, this does not give the desired results.&lt;/P&gt;&lt;P&gt;The desired results should be 'Done' 13818 only, all the other statuses must be ignored.&lt;/P&gt;&lt;P&gt;It is returning the other values because those records were previously in a 'Done' status but have now progressed beyond that. I only want what is Done currently i.e 13818.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yuvir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 20:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191346#M882328</guid>
      <dc:creator />
      <dc:date>2016-09-29T20:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filter after Set Analysis in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191347#M882329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Aggr(FirstSortedValue({&amp;lt;LogType={2}&amp;gt;}[process status],-communicationQueueLogId),CommunicationQueueId) = 'Done', Count({&amp;lt;LogType={2}, [process status] = {'Done'}&amp;gt;}DISTINCT $(ident)))&lt;/STRONG&gt;&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/139226_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 21:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191347#M882329</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-29T21:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Filter after Set Analysis in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191348#M882330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works like a charm! thanks a million Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 21:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191348#M882330</guid>
      <dc:creator />
      <dc:date>2016-09-29T21:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filter after Set Analysis in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191349#M882331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or maybe add the condition to the calculated dimension and use a simplified expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(If(FirstSortedValue({&amp;lt;LogType={2}&amp;gt;}[process status],-communicationQueueLogId)= 'Done','Done'),CommunicationQueueId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(DISTINCT $(ident))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;or just use a text box &lt;/P&gt;&lt;P&gt;='Done: ' &amp;amp;&lt;/P&gt;&lt;P&gt;Sum(Aggr(If(FirstSortedValue({&amp;lt;LogType={2}&amp;gt;}[process status],-communicationQueueLogId)= 'Done',1),CommunicationQueueId))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 21:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191349#M882331</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-09-29T21:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filter after Set Analysis in AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191350#M882332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys. really appreciate the help, saved me a lot of time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 06:29:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-after-Set-Analysis-in-AGGR-function/m-p/1191350#M882332</guid>
      <dc:creator />
      <dc:date>2016-09-30T06:29:31Z</dc:date>
    </item>
  </channel>
</rss>

