<?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: Aggregation and Set anaylsis question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893469#M311066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PS, I am editing this and I have just realized what you meant by your example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Faiq,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am understanding correctly, you only want to count student names when max(exam taken date) &amp;lt; 1/15/2015. If so, please see the below screenshot:&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/92031_Capture.PNG" style="height: 263px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;You also need to aggregate by exam taken date and student name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2015 00:59:33 GMT</pubDate>
    <dc:creator>sinanozdemir</dc:creator>
    <dc:date>2015-07-07T00:59:33Z</dc:date>
    <item>
      <title>Aggregation and Set anaylsis question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893466#M311063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The requirement is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count the students who took the exam before Jan 15, 2015 and populate a grid as shown at the bottom of the image. How can I do this double aggregation like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(Max(Exam Taken Date),Student Name) and then count for exam dimension. The Student Name dimension will&lt;/P&gt;&lt;P&gt;not show in the final grid. See below the last grid in the image. Please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="capture.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92009_capture.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 20:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893466#M311063</guid>
      <dc:creator />
      <dc:date>2015-07-06T20:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation and Set anaylsis question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893467#M311064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Faiq,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the screenshot showing the set analysis:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92008_Capture.PNG" style="height: 217px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 20:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893467#M311064</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-06T20:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation and Set anaylsis question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893468#M311065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks this start in the right direction but I did not explain the example well. In fact each student will have multiple attempts for that exam so I have to check in max (exam taken date) for each student is less than Jan 15, then count those students. See the image below.. I hope this explains it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="capture.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92021_capture.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 21:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893468#M311065</guid>
      <dc:creator />
      <dc:date>2015-07-06T21:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation and Set anaylsis question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893469#M311066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PS, I am editing this and I have just realized what you meant by your example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Faiq,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am understanding correctly, you only want to count student names when max(exam taken date) &amp;lt; 1/15/2015. If so, please see the below screenshot:&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/92031_Capture.PNG" style="height: 263px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;You also need to aggregate by exam taken date and student name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 00:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893469#M311066</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-07T00:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation and Set anaylsis question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893470#M311067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect !!! It works... But I have a question on how this is constructed...&lt;/P&gt;&lt;P&gt;I fully understand how double aggregation and below comparison is working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(Max(Date([Exam Taken Date])),[Student Name],Exam)&amp;lt;'1/15/2015'" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how does the below comparison works when exam taken date = the aggregation code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Exam Taken Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=Aggr(Max(Date([Exam Taken Date])),[Student Name],Exam)&amp;lt;'1/15/2015'"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 15:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893470#M311067</guid>
      <dc:creator />
      <dc:date>2015-07-07T15:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation and Set anaylsis question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893471#M311068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Faiq,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with double quotes in the set analysis, you are basically returning a list of dates that are less than 1/15/2015 so in our example, exam taken date looks at each one of the dates that are returned by the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set analysis is similar to WHERE clause in SQL which returns an array of items/values/attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it explains.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 16:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893471#M311068</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-07T16:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation and Set anaylsis question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893472#M311069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks that helps a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an other question if you do not mind as you are an expert of set analysis.&lt;/P&gt;&lt;P&gt;I am trying to count a column where max_of_activity_date&amp;nbsp; has null values which are highlighted in yellow in my data and it is not working. Here is my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({$&amp;lt;Max_Of_Activity_Date={"=len(trim(Max_Of_Activity_Date))=0"}&amp;gt;} Project_Lead_GUID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="capture.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92173_capture.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 20:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893472#M311069</guid>
      <dc:creator />
      <dc:date>2015-07-07T20:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation and Set anaylsis question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893473#M311070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Faiq,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am no expert yet, but thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Count({&lt;STRONG style="color: #ff0000;"&gt;1-&lt;/STRONG&gt;&amp;lt;Max_Of_Activity_Date={"&lt;STRONG style="color: #ff0000;"&gt;*&lt;/STRONG&gt;"}&amp;gt;} Project_Lead_GUID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should give you all the null counts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 20:42:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893473#M311070</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-07T20:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation and Set anaylsis question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893474#M311071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It did the count correct but also forced for the other dimension values to show in the grid so now the grid is ignoring other selections on the screen...Hmmm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 20:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893474#M311071</guid>
      <dc:creator />
      <dc:date>2015-07-07T20:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation and Set anaylsis question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893475#M311072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, that behavior happens because it basically deducts anything with valid value from the whole application which gives you the null values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you send me a screenshot of what you see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 21:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893475#M311072</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-07T21:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation and Set anaylsis question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893476#M311073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you can try to handle NULL values in the load script which I personally think is less confusing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to mimic your dataset above:&lt;/P&gt;&lt;P&gt;There are two records with NULL values&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/92187_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;And then in the load script, I put the below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92186_Capture2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Now, set analysis is cleaner than before and less confusing, I think:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture3.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/92188_Capture3.PNG" style="height: 209px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 22:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893476#M311073</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-07-07T22:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation and Set anaylsis question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893477#M311074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how about count(if(isnull (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Max_Of_Activity_Date),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Project_Lead_GUID))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Project_Lead_GUID has duplicate records, use distinct, so that wud be: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;count(distinct(if(isnull (&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Max_Of_Activity_Date),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Project_Lead_GUID)))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2015 03:56:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-and-Set-anaylsis-question/m-p/893477#M311074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-08T03:56:55Z</dc:date>
    </item>
  </channel>
</rss>

