<?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: Use function in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-function-in-set-analysis/m-p/479374#M179092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, that's a function I did not know about. Very interesting!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still, there seems to be a flaw. When taking a closer look at incident internal id 0910-0106.&lt;/P&gt;&lt;P&gt;27/05/2013 is indeed the first record that has external notes created more than 3months ago, but there are records present with a more recent log holding external notes.&lt;/P&gt;&lt;P&gt;Don't want the record to be listed in my table if there are more recent logs with external notes.&lt;/P&gt;&lt;P&gt;Don't know if I make myself clear. Maybe a picture will help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qvissue2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/46171_qvissue2.png" style="width: 620px; height: 324px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Sep 2013 09:57:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-04T09:57:41Z</dc:date>
    <item>
      <title>Use function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-function-in-set-analysis/m-p/479368#M179086</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;Is it possible to use a function in set analysis like the one below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #ff6600;"&gt;aggr(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;EM&gt;date(max({$&amp;lt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;EM&gt;[Incident Log External Notes]-={''},&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;EM&gt;&lt;STRONG&gt;num(AddMonths([Incident Log Effective Date],3))&amp;lt;num(today())&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;EM&gt;&amp;gt; } &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #ff6600;"&gt;num([Incident Log Effective Date])),'DD/MM/YYYY'),[Incident Internal Id])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #ff6600;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #000000;"&gt;For some reason my query does not display any rows with the part in &lt;STRONG&gt;bold&lt;/STRONG&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #000000;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #000000;"&gt;Goal: display incident records where the field &lt;/EM&gt;&lt;EM style=": ; color: #000000;"&gt;'Incident Log External Notes' is not empty for a log of an incident AND&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #000000;"&gt;the last available incident log (which has an external note) is older than 3 months.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #000000;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #000000;"&gt;Attached the QV document.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #000000;"&gt;Regards,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #ff6600;"&gt;&lt;SPAN style="color: #000000;"&gt;Maarten&lt;/SPAN&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 08:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-function-in-set-analysis/m-p/479368#M179086</guid>
      <dc:creator />
      <dc:date>2013-09-04T08:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-function-in-set-analysis/m-p/479369#M179087</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;Is this what you want ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(&lt;/P&gt;&lt;P&gt;date(max({$&amp;lt;&lt;/P&gt;&lt;P&gt;[Incident External Notes]-={''},&lt;/P&gt;&lt;P&gt;[Incident Log Effective Date]={"&amp;lt;=$(=MakeDate(Year(today()),Month(today())-3,Day(today())))"}&lt;/P&gt;&lt;P&gt;&amp;gt; } &lt;/P&gt;&lt;P&gt;num([Incident Log Effective Date])),'DD/MM/YYYY'),[Incident Internal Id])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 08:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-function-in-set-analysis/m-p/479369#M179087</guid>
      <dc:creator>fabienmd</dc:creator>
      <dc:date>2013-09-04T08:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Use function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-function-in-set-analysis/m-p/479370#M179088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(&lt;/P&gt;&lt;P&gt;date(max({&amp;lt;[Incident External Notes]={'*'},&lt;/P&gt;&lt;P&gt;[Incident Log Effective Date]={'&amp;lt;$(=date(addmonths(today(),-3)))'}&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;num([Incident Log Effective Date])),'DD/MM/YYYY'),[Incident Internal Id])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 08:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-function-in-set-analysis/m-p/479370#M179088</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-04T08:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-function-in-set-analysis/m-p/479371#M179089</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;this expression gives you incident with external notes older than 3 month :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only({$&amp;lt;[Incident Log Effective Date]={"&amp;lt;=$(=AddMonths(Max([Incident Log Effective Date]),-3))"}&amp;gt;}[Incident External Notes])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use it in your straight table you must add a column Date, incident ID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 08:47:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-function-in-set-analysis/m-p/479371#M179089</guid>
      <dc:creator>christophebrault</dc:creator>
      <dc:date>2013-09-04T08:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Use function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-function-in-set-analysis/m-p/479372#M179090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Fabien, G Wassenaar, Christophe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your quick answers! Really appriciated.&lt;/P&gt;&lt;P&gt;I've tried all solutions and they all seem correct for what was the original issue.&lt;/P&gt;&lt;P&gt;Still two questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Is it correct that on the left hand side (the field) no functions can be used? (I see everybody only manipulates the right-hand side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Any idea why for incident internal id 0910-0354 I don't get the correct date? (there are others too...). I suppose it has to do with some other part of my logic. I was expecting to see 23/10/2009 and not 22/05/2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qvissue.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/46169_qvissue.png" style="width: 620px; height: 115px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Maarten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 09:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-function-in-set-analysis/m-p/479372#M179090</guid>
      <dc:creator />
      <dc:date>2013-09-04T09:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-function-in-set-analysis/m-p/479373#M179091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Yes, only fields are allowed on the left hand side in set modifiers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You didn't use an aggregation function for Incident External Notes. In that case QV applies the only() function which will only return a value if there is only one value. If you use maxstring([Incident External Notes]) you'll see that there are in fact notes for that date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 09:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-function-in-set-analysis/m-p/479373#M179091</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-04T09:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Use function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Use-function-in-set-analysis/m-p/479374#M179092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, that's a function I did not know about. Very interesting!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still, there seems to be a flaw. When taking a closer look at incident internal id 0910-0106.&lt;/P&gt;&lt;P&gt;27/05/2013 is indeed the first record that has external notes created more than 3months ago, but there are records present with a more recent log holding external notes.&lt;/P&gt;&lt;P&gt;Don't want the record to be listed in my table if there are more recent logs with external notes.&lt;/P&gt;&lt;P&gt;Don't know if I make myself clear. Maybe a picture will help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qvissue2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/46171_qvissue2.png" style="width: 620px; height: 324px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 09:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-function-in-set-analysis/m-p/479374#M179092</guid>
      <dc:creator />
      <dc:date>2013-09-04T09:57:41Z</dc:date>
    </item>
  </channel>
</rss>

