<?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 Help Please in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687553#M249111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count({$&amp;lt;[EventActionDueDate] = (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[EventActionDueDate] -&lt;/SPAN&gt;&amp;nbsp; {'*'}) + {"&amp;lt;=$(=Today())"}&amp;gt;} [EventActionTranID])&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;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;Hope this helps you.&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;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;Regards,&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;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Oct 2014 06:59:49 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2014-10-24T06:59:49Z</dc:date>
    <item>
      <title>Set Analysis Help Please</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687547#M249105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Just getting started with set analysis and getting stuck on using built in functions can someone please set me in the right direction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to Count the number of records where&lt;/P&gt;&lt;P&gt;[EventActionDueDate] &amp;lt; today() and [EventActionCompleted] is blank or null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried several variations of this to solve the fist half of the expression but no luck yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count ({$&amp;lt;[EventActionDueDate] &amp;lt;= {"$(=today())"}&amp;gt;} [EventActionTranID] )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 06:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687547#M249105</guid>
      <dc:creator />
      <dc:date>2014-10-24T06:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Please</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687548#M249106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming the date format of EventActionDueDate is the default for your system (ie the same as that returned by Today()), then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[EventActionDueDate] = {"&amp;lt;=$(=Today())"}&amp;gt;} [EventActionTranID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 06:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687548#M249106</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-10-24T06:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Please</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687549#M249107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That does indeed return a value but it only solves the first half of the problem &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;[EventActionDueDate] &amp;lt; today()&lt;/STRONG&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;Unfortunately &lt;/SPAN&gt;I have no idea how to go about solving the second half&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[EventActionDueDate] &amp;lt; today() &lt;STRONG&gt;and [EventActionCompletedDate] is blank or null.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 06:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687549#M249107</guid>
      <dc:creator />
      <dc:date>2014-10-24T06:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Please</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687550#M249108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's uniquely ill-suited for set analysis, because as far as I know, there is no surefire way to get a set of all records where a field is null (Field={} does not work, if I'm wrong, I'll be glad to be shown wrong! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;). If you can make sure (during the data load) that the missing date is always an empty string, but never null, then it is reasonably simple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count({$&amp;lt;[EventActionDueDate] = {"&amp;lt;=$(=Today())"}, [EventActionCompletedDate={''}]&amp;gt;} [EventActionTranID])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 06:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687550#M249108</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2014-10-24T06:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Please</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687551#M249109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My suggestions is that you create a new field in the script where you assaign blank or null values a date, ie 20991231. But you can test and se if Count({&amp;lt;[EventActionDueDate] = {"*"} &amp;gt;} EventActionTranID excludes blank o null?&amp;nbsp; &lt;/P&gt;&lt;P&gt;In that case maybe count({&amp;lt; EventActionDueDate = {"*"} &amp;gt;*&amp;lt;&amp;nbsp; and Jonathans expression&amp;nbsp; &amp;gt;} EventActionTranID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 06:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687551#M249109</guid>
      <dc:creator />
      <dc:date>2014-10-24T06:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Please</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687552#M249110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[EventActionDueDate] = {"&amp;lt;=$(=Today())"},[EventActionCompletedDate]={''}&amp;gt;} [EventActionTranID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[EventActionDueDate] = {"&amp;lt;=$(=Today())"},[EventActionCompletedDate]-={*}&amp;gt;} [EventActionTranID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 06:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687552#M249110</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-10-24T06:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Please</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687553#M249111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count({$&amp;lt;[EventActionDueDate] = (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[EventActionDueDate] -&lt;/SPAN&gt;&amp;nbsp; {'*'}) + {"&amp;lt;=$(=Today())"}&amp;gt;} [EventActionTranID])&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;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;Hope this helps you.&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;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;Regards,&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;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 06:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687553#M249111</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-10-24T06:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Please</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687554#M249112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tested it a bit, and I think this should work without changing nulls to a value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count({$&amp;lt;[EventActionDueDate] = {"&amp;lt;=$(=Today())"}&amp;gt;*-$&amp;lt;[EventActionCompletedDate]={"*"}&amp;gt;} [EventActionTranID])&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;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;Explanation: You can't define a set for all records where field is null, the same as you can't select a null value. So things like this: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[EventActionCompletedDate]=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[EventActionCompletedDate]-&lt;/SPAN&gt;{"*"} won't work. But you can define a set of all records where a field is not null (that's &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$&amp;lt;[EventActionCompletedDate]={"*"}&amp;gt;&lt;/SPAN&gt;), then get its complement, so, a set of records where a field will be null (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;-$&amp;lt;[EventActionCompletedDate]={"*"}&amp;gt;&lt;/SPAN&gt;), and finally, get an intersection of this set with a set of records which satisfy your condition for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;EventActionDueDate.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 07:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687554#M249112</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2014-10-24T07:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Please</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687555#M249113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanks for all the suggestions. Just to close this thread off the final solution was to add some conditional expressions in the load script to create an [EventActionStatus] field. See bellow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(NOT ISNULL(EventActionCompletionDate),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(EventActionCompletionDate &amp;gt; EventActionDueDate, 'Late', 'Ontime'),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(EventActionDueDate &amp;lt; today(), 'Overdue', 'Outstanding')) as EventActionStatus,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(ISNULL(EventActionCompletionDate) AND EventActionDueDate &amp;lt; Today(), Round(Today() - EventActionDueDate)) as OverdueDays,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This had the effect of flagging Null fields during load thus removing the need for the set analysis to handle potential Null's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 07:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687555#M249113</guid>
      <dc:creator />
      <dc:date>2014-10-29T07:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Please</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687556#M249114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Getting the flags for nulls in script is better approach then handling it in front end using set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 07:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Please/m-p/687556#M249114</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-10-29T07:21:34Z</dc:date>
    </item>
  </channel>
</rss>

