<?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 Set analysis expression syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-syntax/m-p/247621#M500111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Georgina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example below is used to get Year To Date Last Year.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CAL_YEAR_WEEK=, MONTH=, QUARTER=, CAL_DATE = {"&amp;lt;=$(=date(max(addmonths(CAL_DATE,-12))))&amp;gt;=$(=date(max(yearstart(addmonths(CAL_DATE,-12)))))"}&amp;gt;} SALES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensure that you have told the set expression to ignore selections in other date fields (, Year=, ) to ensure you get the correct syntax too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 May 2011 15:17:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-05-27T15:17:53Z</dc:date>
    <item>
      <title>Set analysis expression syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-syntax/m-p/247620#M500110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks - I hope you can help me &lt;/P&gt;&lt;P&gt;In my table showing counts of applications to date, I want to add another showing applications up to same day last year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a variable v_LastAppYear, as&amp;nbsp; Daystart(AddMonths([DM_Refresh_Date], -12)) works fine in a text box and displays&lt;/P&gt;&lt;P&gt;27/05/2010 00:00:00&lt;/P&gt;&lt;P&gt;My application dates are of the form&lt;/P&gt;&lt;P&gt;09/12/2009 00:00:00&lt;/P&gt;&lt;P&gt;which looks identical to me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My syntax is&lt;/P&gt;&lt;P&gt;=Count ({&amp;lt; [Application Date]= {$(='&amp;lt; v_LastAppYear')} &amp;gt;} Application)&amp;nbsp; &lt;/P&gt;&lt;P&gt;which quite obviously doesn't work because (I'm guessing) I need to qualify the date. But with what? and how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 15:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-syntax/m-p/247620#M500110</guid>
      <dc:creator>georgina_spary</dc:creator>
      <dc:date>2011-05-27T15:06:42Z</dc:date>
    </item>
    <item>
      <title>Set analysis expression syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-syntax/m-p/247621#M500111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Georgina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example below is used to get Year To Date Last Year.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CAL_YEAR_WEEK=, MONTH=, QUARTER=, CAL_DATE = {"&amp;lt;=$(=date(max(addmonths(CAL_DATE,-12))))&amp;gt;=$(=date(max(yearstart(addmonths(CAL_DATE,-12)))))"}&amp;gt;} SALES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensure that you have told the set expression to ignore selections in other date fields (, Year=, ) to ensure you get the correct syntax too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 15:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-syntax/m-p/247621#M500111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-27T15:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-syntax/m-p/247622#M500112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the first Date Example you wrote is obviously in the format DD/MM/YYYY, I can assume the second one is also DD/MM/YYYY... I would just advise to verify if it is not MM/DD/YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After verifying that, you could try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=Count ({&amp;lt; [Application Date]= {"&amp;lt;='$(v_LastAppYear)'")} &amp;gt;} Application) &lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double quotes indicate a search string, and in this case we are "searching" all the dates prior to the date in your variable ( "&amp;lt;=" ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 15:20:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-syntax/m-p/247622#M500112</guid>
      <dc:creator>mike_garcia</dc:creator>
      <dc:date>2011-05-27T15:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-syntax/m-p/247623#M500113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;And another tip: head over to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://iqlik.wordpress.com"&gt;http://iqlik.wordpress.com&lt;/A&gt;&lt;SPAN&gt; to find a guide on the use of set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 15:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-syntax/m-p/247623#M500113</guid>
      <dc:creator>mike_garcia</dc:creator>
      <dc:date>2011-05-27T15:22:00Z</dc:date>
    </item>
    <item>
      <title>Set analysis expression syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-syntax/m-p/247624#M500114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count ({&amp;lt; [Application Date]= {"&amp;lt;=$(v_LastAppYear)"} &amp;gt;} Application) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or like this =Count ({&amp;lt; [Application Date]= {"&amp;lt;='$(v_LastAppYear)'"} &amp;gt;} Application) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 15:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-syntax/m-p/247624#M500114</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-05-27T15:23:03Z</dc:date>
    </item>
    <item>
      <title>Set analysis expression syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-syntax/m-p/247625#M500115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hurrah that first suggestion worked - thanks very much daniel. Also thanks to everyone else for some really good ideas which helped a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 16:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-syntax/m-p/247625#M500115</guid>
      <dc:creator>georgina_spary</dc:creator>
      <dc:date>2011-05-27T16:09:17Z</dc:date>
    </item>
  </channel>
</rss>

