<?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: Function within a set analysis expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Function-within-a-set-analysis-expression/m-p/385416#M143948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Sep 2012 09:11:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-07T09:11:46Z</dc:date>
    <item>
      <title>Function within a set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Function-within-a-set-analysis-expression/m-p/385414#M143946</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;I want to be able to print total number of IDs my table for the latest month. &lt;/P&gt;&lt;P&gt;To retrieve the latest month I use MaxString([CreationDate]) which gives me the correct month in format '2012-03'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to use it in my set analysis expression it does not work, it comes out null:&lt;/P&gt;&lt;P&gt;(This is put in a texbox)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count( {$&amp;lt;CreationDate = {$(=MaxString(CreationDate))} &amp;gt;} [E_ID]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can use the following expression and it works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count( {$&amp;lt;CreationDate = {'2012-03'} &amp;gt;} [E_ID]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm pretty sure I just dont know the syntax... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mikael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 08:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-within-a-set-analysis-expression/m-p/385414#M143946</guid>
      <dc:creator />
      <dc:date>2012-09-07T08:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Function within a set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Function-within-a-set-analysis-expression/m-p/385415#M143947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;=count( {$&amp;lt;CreationDate = {"$(=MaxString(CreationDate))"} &amp;gt;} [E_ID]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;or u can store maxstring(date) in a variable and use that variable, that can also help u&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 08:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-within-a-set-analysis-expression/m-p/385415#M143947</guid>
      <dc:creator>rajni_batra</dc:creator>
      <dc:date>2012-09-07T08:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Function within a set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Function-within-a-set-analysis-expression/m-p/385416#M143948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 09:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-within-a-set-analysis-expression/m-p/385416#M143948</guid>
      <dc:creator />
      <dc:date>2012-09-07T09:11:46Z</dc:date>
    </item>
  </channel>
</rss>

