<?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: Enabling the expression only for the current year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Enabling-the-expression-only-for-the-current-year/m-p/346693#M128268</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 think it's not possible to remove your count expression only for some years. If you use an expression in a pivot chart, it must be used for all dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can calculate count() only for present year and show null() for other years.&lt;/P&gt;&lt;P&gt;Write this :&lt;/P&gt;&lt;P&gt;if([Processed Year]=year(today()), count(Name))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really want to achieve that, use a simple tab and write an expression for each year :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2012 :&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Processed Year]={$(=Max([Processed Year]))}&amp;gt;}Sal)&lt;/P&gt;&lt;P&gt;2011:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Processed Year]={$(=Max([Processed Year])-1)}&amp;gt;}Sal)&lt;/P&gt;&lt;P&gt;2010 :&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Processed Year]={$(=Max([Processed Year])-2)}&amp;gt;}Sal)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2012 12:30:23 GMT</pubDate>
    <dc:creator>christophebrault</dc:creator>
    <dc:date>2012-06-11T12:30:23Z</dc:date>
    <item>
      <title>Enabling the expression only for the current year</title>
      <link>https://community.qlik.com/t5/QlikView/Enabling-the-expression-only-for-the-current-year/m-p/346692#M128267</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;&lt;/P&gt;&lt;P&gt;In a Pivot Table we have given two expression and it is showing for all the years. We want to dispaly the second expression only for the current year (i.e 2012). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any option of doing this. (other than going with the calculated dimension)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the sample copy of QVW for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sijo Joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 12:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enabling-the-expression-only-for-the-current-year/m-p/346692#M128267</guid>
      <dc:creator />
      <dc:date>2012-06-11T12:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling the expression only for the current year</title>
      <link>https://community.qlik.com/t5/QlikView/Enabling-the-expression-only-for-the-current-year/m-p/346693#M128268</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 think it's not possible to remove your count expression only for some years. If you use an expression in a pivot chart, it must be used for all dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can calculate count() only for present year and show null() for other years.&lt;/P&gt;&lt;P&gt;Write this :&lt;/P&gt;&lt;P&gt;if([Processed Year]=year(today()), count(Name))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really want to achieve that, use a simple tab and write an expression for each year :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2012 :&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Processed Year]={$(=Max([Processed Year]))}&amp;gt;}Sal)&lt;/P&gt;&lt;P&gt;2011:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Processed Year]={$(=Max([Processed Year])-1)}&amp;gt;}Sal)&lt;/P&gt;&lt;P&gt;2010 :&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Processed Year]={$(=Max([Processed Year])-2)}&amp;gt;}Sal)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 12:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Enabling-the-expression-only-for-the-current-year/m-p/346693#M128268</guid>
      <dc:creator>christophebrault</dc:creator>
      <dc:date>2012-06-11T12:30:23Z</dc:date>
    </item>
  </channel>
</rss>

