<?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: I need help with a multi year expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/I-need-help-with-a-multi-year-expression/m-p/358383#M492904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached file. If you choose 2011-Dez, 2012-Jan, 2012-Feb in the GDate list box, you get the GQTY for 2010-Dez, 2011-Jan, 2011-Feb date.&lt;/P&gt;&lt;P&gt; If you choose 2011-Nov, 2011-Dez, 2012-Jan in the GDate list box, you get the GQTY for 2010-Nov, 2010-Dez, 2011-Jan date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is what you need! See expression in straight table chart to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;giakoum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2012 07:45:33 GMT</pubDate>
    <dc:creator>giakoum</dc:creator>
    <dc:date>2012-06-19T07:45:33Z</dc:date>
    <item>
      <title>I need help with a multi year expression</title>
      <link>https://community.qlik.com/t5/QlikView/I-need-help-with-a-multi-year-expression/m-p/358380#M492901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I like to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like to build a pivot table with a expression about multi year. &lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;P&gt;Actually Year:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dez 2011+Jan 2012+Feb 2012 (that is no problem) vs &lt;/P&gt;&lt;P&gt;Last Year:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dez 2010+Jan 2011+Feb 2011 (that ist my problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I build a pivot table with 2 dimensions and a expression for the actually year like "&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%DATUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(vDatenstand)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ABSATZ_DIREKT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;My current selection is:&lt;/P&gt;&lt;P&gt;Jahr_Monat_IST = 2011-Dez, 2012-Jan, 2012-Feb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is a idea for the "last year" expression. Can I get the selection and subtract 1 year?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try different ways but nothing works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Michel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 06:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-need-help-with-a-multi-year-expression/m-p/358380#M492901</guid>
      <dc:creator />
      <dc:date>2012-06-19T06:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with a expression</title>
      <link>https://community.qlik.com/t5/QlikView/I-need-help-with-a-multi-year-expression/m-p/358381#M492902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have used a variable (Variable1) to store your selection but you can use the field name :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;(left(Variable1,4) - 1)&lt;/P&gt;&lt;P&gt;&amp;amp; Mid(Variable1,5,6) &lt;/P&gt;&lt;P&gt;&amp;amp; (Mid(Variable1,index(Variable1,',',1)+2,4)&amp;nbsp; - 1)&lt;/P&gt;&lt;P&gt;&amp;amp; Mid(Variable1,index(Variable1,',',1)+6,6)&lt;/P&gt;&lt;P&gt;&amp;amp; (Mid(Variable1,index(Variable1,',',2)+2,4) -1)&lt;/P&gt;&lt;P&gt;&amp;amp; Right(Variable1,4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not very good practice though... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 06:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-need-help-with-a-multi-year-expression/m-p/358381#M492902</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-06-19T06:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with a multi year expression</title>
      <link>https://community.qlik.com/t5/QlikView/I-need-help-with-a-multi-year-expression/m-p/358382#M492903</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;Hm I try it but it doesn´t works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I work with the calendar? I have 2 fields.&lt;/P&gt;&lt;P&gt;Jahr_Monat_IST and&lt;/P&gt;&lt;P&gt;Jahr_Monat_VJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set my current selection, I see the field: Jahr_Monat_IST = 2011-Dez, 2012-Jan, 2012-Feb in green.&lt;/P&gt;&lt;P&gt;So I like try to use the white "selection" Jahr_Monat_VJ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe like this: sum({$&amp;lt;Jahr_Monat_IST={"=$(=Jahr_Monat_VJ)"}&amp;gt;} Absatz_Direkt)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 07:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-need-help-with-a-multi-year-expression/m-p/358382#M492903</guid>
      <dc:creator />
      <dc:date>2012-06-19T07:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with a multi year expression</title>
      <link>https://community.qlik.com/t5/QlikView/I-need-help-with-a-multi-year-expression/m-p/358383#M492904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached file. If you choose 2011-Dez, 2012-Jan, 2012-Feb in the GDate list box, you get the GQTY for 2010-Dez, 2011-Jan, 2011-Feb date.&lt;/P&gt;&lt;P&gt; If you choose 2011-Nov, 2011-Dez, 2012-Jan in the GDate list box, you get the GQTY for 2010-Nov, 2010-Dez, 2011-Jan date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is what you need! See expression in straight table chart to understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;giakoum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 07:45:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-need-help-with-a-multi-year-expression/m-p/358383#M492904</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-06-19T07:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with a multi year expression</title>
      <link>https://community.qlik.com/t5/QlikView/I-need-help-with-a-multi-year-expression/m-p/358384#M492905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great...... it works. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 11:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-need-help-with-a-multi-year-expression/m-p/358384#M492905</guid>
      <dc:creator />
      <dc:date>2012-06-19T11:35:37Z</dc:date>
    </item>
  </channel>
</rss>

