<?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 function inside set analysis inside another set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/function-inside-set-analysis-inside-another-set-analysis/m-p/290638#M107915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to have something like this:&lt;/P&gt;&lt;P&gt;count({&amp;lt;DATE1={"=aggr(max({&amp;lt;DATE1={"=Date(Max({&amp;lt;DATA_TYPE={"DataType1"}&amp;gt;} DATE1))"}&amp;gt;} DATE1),YEAR)"}&amp;gt;}DATE1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need this to get the maximum date of a certain data type for a given year. &lt;/P&gt;&lt;P&gt;My problem is I have "" inside another set of "" and it messes the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any escape character to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2012 15:41:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-19T15:41:29Z</dc:date>
    <item>
      <title>function inside set analysis inside another set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/function-inside-set-analysis-inside-another-set-analysis/m-p/290638#M107915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to have something like this:&lt;/P&gt;&lt;P&gt;count({&amp;lt;DATE1={"=aggr(max({&amp;lt;DATE1={"=Date(Max({&amp;lt;DATA_TYPE={"DataType1"}&amp;gt;} DATE1))"}&amp;gt;} DATE1),YEAR)"}&amp;gt;}DATE1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need this to get the maximum date of a certain data type for a given year. &lt;/P&gt;&lt;P&gt;My problem is I have "" inside another set of "" and it messes the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any escape character to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 15:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/function-inside-set-analysis-inside-another-set-analysis/m-p/290638#M107915</guid>
      <dc:creator />
      <dc:date>2012-01-19T15:41:29Z</dc:date>
    </item>
    <item>
      <title>function inside set analysis inside another set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/function-inside-set-analysis-inside-another-set-analysis/m-p/290639#M107916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use variables as workaround ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 16:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/function-inside-set-analysis-inside-another-set-analysis/m-p/290639#M107916</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2012-01-19T16:05:50Z</dc:date>
    </item>
    <item>
      <title>function inside set analysis inside another set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/function-inside-set-analysis-inside-another-set-analysis/m-p/290640#M107917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am little confused by your second search expression, shouldn't something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;DATA_TYPE={DataType1}, DATE1={"=aggr(max({&amp;lt;DATA_TYPE={DataType1}&amp;gt;} DATE1) ,YEAR)"}&amp;gt;} DATE1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not be enough?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 16:20:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/function-inside-set-analysis-inside-another-set-analysis/m-p/290640#M107917</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-19T16:20:14Z</dc:date>
    </item>
    <item>
      <title>function inside set analysis inside another set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/function-inside-set-analysis-inside-another-set-analysis/m-p/290641#M107918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 16:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/function-inside-set-analysis-inside-another-set-analysis/m-p/290641#M107918</guid>
      <dc:creator />
      <dc:date>2012-01-19T16:23:21Z</dc:date>
    </item>
    <item>
      <title>function inside set analysis inside another set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/function-inside-set-analysis-inside-another-set-analysis/m-p/290642#M107919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if the No is for me or swuehl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a variable vDataType1Date:&lt;/P&gt;&lt;P&gt;=Date(Max({&amp;lt;DATA_TYPE={"DataType1"}&amp;gt;} DATE1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then a variable vYearDateMax:&lt;/P&gt;&lt;P&gt;=aggr(max({&amp;lt;DATE1={"$(vDataType1Date)"}&amp;gt;} DATE1),YEAR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here is your expression:&lt;/P&gt;&lt;P&gt;=count({&amp;lt;DATE1={"$(vYearDateMax)"}&amp;gt;}DATE1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just do it by step to take care of date format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 07:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/function-inside-set-analysis-inside-another-set-analysis/m-p/290642#M107919</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2012-01-20T07:45:54Z</dc:date>
    </item>
  </channel>
</rss>

