<?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: Using YEAR function in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-YEAR-function-in-Set-Analysis/m-p/603849#M223136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manish is correct. If you want to avoid that and use it in expression, write this&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; font-size: 12.727272033691406px;"&gt;COUNT({$&amp;lt;INT_ACTIVITY_CLASS_INDEX={0},INT_USER_LISTING_ID={2},SEARCH_INDEX={1}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;year(INT_DATE)=2014,&lt;/SPAN&gt;INT_ACTIVITY_ID))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2014 12:49:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-05T12:49:19Z</dc:date>
    <item>
      <title>Using YEAR function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YEAR-function-in-Set-Analysis/m-p/603847#M223134</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'm trying to use the Year function in Set Analysis in the following context, but no data are returned. Could anyone advise where I'm going wrong? The formula works normally until I introduce the fourth 'year(INT_DATE)={2014}' condition. I have tried enclosing '2014' in single and double quotes with no luck (when the formula is working as it is, the '2014' will likely be replaced by a variable):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; COUNT({$&amp;lt;INT_ACTIVITY_CLASS_INDEX={0},INT_USER_LISTING_ID={2},SEARCH_INDEX={1}, year(INT_DATE)={2014}&amp;gt;} INT_ACTIVITY_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks. &lt;/P&gt;&lt;P&gt; Gavin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 12:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YEAR-function-in-Set-Analysis/m-p/603847#M223134</guid>
      <dc:creator />
      <dc:date>2014-03-05T12:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using YEAR function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YEAR-function-in-Set-Analysis/m-p/603848#M223135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use year(INT_DATE).... it should not be a function but should be a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GO to your script and create one more line&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; font-size: 12.800000190734863px;"&gt;year(INT_DATE) as Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&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; font-size: 12.800000190734863px;"&gt;and now use &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&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; font-size: 12.800000190734863px;"&gt;Year = {2014} or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;Year = {'2014'}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 12:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YEAR-function-in-Set-Analysis/m-p/603848#M223135</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-05T12:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using YEAR function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YEAR-function-in-Set-Analysis/m-p/603849#M223136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manish is correct. If you want to avoid that and use it in expression, write this&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; font-size: 12.727272033691406px;"&gt;COUNT({$&amp;lt;INT_ACTIVITY_CLASS_INDEX={0},INT_USER_LISTING_ID={2},SEARCH_INDEX={1}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;year(INT_DATE)=2014,&lt;/SPAN&gt;INT_ACTIVITY_ID))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 12:49:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YEAR-function-in-Set-Analysis/m-p/603849#M223136</guid>
      <dc:creator />
      <dc:date>2014-03-05T12:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using YEAR function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YEAR-function-in-Set-Analysis/m-p/603850#M223137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 13:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YEAR-function-in-Set-Analysis/m-p/603850#M223137</guid>
      <dc:creator />
      <dc:date>2014-03-05T13:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using YEAR function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YEAR-function-in-Set-Analysis/m-p/603851#M223138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a question, I have a filed - Open Date Time and this field format is as follows:&lt;/P&gt;&lt;P&gt;DD/MM/YYY HH:MM:SS&lt;/P&gt;&lt;P&gt;I would like to be able&amp;nbsp; to create, in my script, a YEAR() function referring to this field and gathering per year....&lt;/P&gt;&lt;P&gt;Anyone has an idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nelson.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 13:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YEAR-function-in-Set-Analysis/m-p/603851#M223138</guid>
      <dc:creator>2908nmadao</dc:creator>
      <dc:date>2015-01-22T13:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using YEAR function in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-YEAR-function-in-Set-Analysis/m-p/603852#M223139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a question, I have a filed - Open Date Time and this field format is as follows:&lt;/P&gt;&lt;P&gt;DD/MM/YYY HH:MM:SS&lt;/P&gt;&lt;P&gt;I would like to be able to create, in my script, a YEAR() function referring to this field and gathering per year....&lt;/P&gt;&lt;P&gt;Anyone has an idea?&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nelson.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 13:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-YEAR-function-in-Set-Analysis/m-p/603852#M223139</guid>
      <dc:creator>2908nmadao</dc:creator>
      <dc:date>2015-01-22T13:52:40Z</dc:date>
    </item>
  </channel>
</rss>

