<?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 How to insert filter last 2 yr into my expression ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-insert-filter-last-2-yr-into-my-expression/m-p/614456#M546266</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;&lt;/P&gt;&lt;P&gt;I want to add filter for display Current year and Previous year only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression (A)&amp;nbsp; is :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;money(&lt;/P&gt;&lt;P&gt;Sum(sales/$(Columndim89)/1000)&lt;/P&gt;&lt;P&gt;, $(vMoneyFormatK))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For filter last 2 year , the code is :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year={"&amp;gt;$(=year(today())-2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Question is how to insert the above to Expression (A) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2014 13:54:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-07T13:54:10Z</dc:date>
    <item>
      <title>How to insert filter last 2 yr into my expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-insert-filter-last-2-yr-into-my-expression/m-p/614456#M546266</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;&lt;/P&gt;&lt;P&gt;I want to add filter for display Current year and Previous year only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression (A)&amp;nbsp; is :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;money(&lt;/P&gt;&lt;P&gt;Sum(sales/$(Columndim89)/1000)&lt;/P&gt;&lt;P&gt;, $(vMoneyFormatK))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For filter last 2 year , the code is :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year={"&amp;gt;$(=year(today())-2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Question is how to insert the above to Expression (A) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 13:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-insert-filter-last-2-yr-into-my-expression/m-p/614456#M546266</guid>
      <dc:creator />
      <dc:date>2014-03-07T13:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert filter last 2 yr into my expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-insert-filter-last-2-yr-into-my-expression/m-p/614457#M546267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;money(&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum(&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;{&amp;lt;Year={'&amp;gt;$(=year(today())-2)'}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sales/$(Columndim89)/1000)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, $(vMoneyFormatK))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 13:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-insert-filter-last-2-yr-into-my-expression/m-p/614457#M546267</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-03-07T13:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert filter last 2 yr into my expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-insert-filter-last-2-yr-into-my-expression/m-p/614458#M546268</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;Forget to explain my Objective. my chart now display many year sales line. i want to make it display current year and previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enclosed is my QV doc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 13:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-insert-filter-last-2-yr-into-my-expression/m-p/614458#M546268</guid>
      <dc:creator />
      <dc:date>2014-03-07T13:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert filter last 2 yr into my expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-insert-filter-last-2-yr-into-my-expression/m-p/614459#M546269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;money(Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(Year&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;year(today())-2&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;,sales,0)/$(Columndim89)/1000), $(vMoneyFormatK))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or in this way&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;money(Sum(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{$ &amp;lt;Year={'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;gt;$(=year(today())-2)'&lt;/SPAN&gt;}&amp;gt; }&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sales)/$(Columndim89)/1000), $(vMoneyFormatK))&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 13:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-insert-filter-last-2-yr-into-my-expression/m-p/614459#M546269</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-07T13:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert filter last 2 yr into my expression ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-insert-filter-last-2-yr-into-my-expression/m-p/614460#M546270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your Year Dimension to Calculated Dimension as below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(Year = Year(Today()) or Year = Year(Today())-1, Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to tick Suppress When Value is NULL..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 14:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-insert-filter-last-2-yr-into-my-expression/m-p/614460#M546270</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-07T14:05:17Z</dc:date>
    </item>
  </channel>
</rss>

