<?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: One year earlier than selected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/One-year-earlier-than-selected/m-p/899012#M312733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I've tried adding it everywhere and it's not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2015 08:59:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-25T08:59:46Z</dc:date>
    <item>
      <title>One year earlier than selected</title>
      <link>https://community.qlik.com/t5/QlikView/One-year-earlier-than-selected/m-p/899008#M312729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I've got a problem and I have no idea how to solve it - I'm trying to do it for a few hours and still nothing.&lt;/P&gt;&lt;P&gt;I've got dates:&lt;/P&gt;&lt;P&gt;ORDER_DATE&lt;/P&gt;&lt;P&gt;ORDER_DATE_MONTH&lt;/P&gt;&lt;P&gt;ORDER_DATE_YEAR&lt;/P&gt;&lt;P&gt;It's one and the same date, but month and year are made for me to be able to choose month and year separately.&lt;/P&gt;&lt;P&gt;Now - I want to make something like this:&lt;/P&gt;&lt;P&gt;IF(ORDER_DATE_MONTH &amp;lt;= MAX(ORDER_DATE_MONTH) and ORDER_DATE_MONTH &amp;gt;= MIN(ORDER_DATE_MONTH) and ORDER_DATE_YEAR = $(vMaxMonth), SUM(ORDER_QTY), 0)&lt;/P&gt;&lt;P&gt;where vMaxMonth is:&lt;/P&gt;&lt;P&gt;num(MAX(ORDER_DATE_YEAR))&lt;/P&gt;&lt;P&gt;and it works. But when i try to add '-1' to vMaxMonth, it all crashes.&lt;/P&gt;&lt;P&gt;I want to have selected year minus one, but nothing's working.&lt;/P&gt;&lt;P&gt;Have you got any idea how to make it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 08:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-year-earlier-than-selected/m-p/899008#M312729</guid>
      <dc:creator />
      <dc:date>2015-06-25T08:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: One year earlier than selected</title>
      <link>https://community.qlik.com/t5/QlikView/One-year-earlier-than-selected/m-p/899009#M312730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you adding the -1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;....NTH) and ORDER_DATE_YEAR = ($(vMaxMonth) - 1),.... &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: 13px;"&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: 13px;"&gt;Or here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vMaxMonth = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;num(MAX(ORDER_DATE_YEAR) - 1)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 08:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-year-earlier-than-selected/m-p/899009#M312730</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-06-25T08:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: One year earlier than selected</title>
      <link>https://community.qlik.com/t5/QlikView/One-year-earlier-than-selected/m-p/899010#M312731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For Testing purpose, you will take one more variable like vVar1 = $(vMaxMonth) - 1 and verify this variable is showing correct value or not. if it is showing correct value then use this new variable.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 08:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-year-earlier-than-selected/m-p/899010#M312731</guid>
      <dc:creator>jsingh71</dc:creator>
      <dc:date>2015-06-25T08:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: One year earlier than selected</title>
      <link>https://community.qlik.com/t5/QlikView/One-year-earlier-than-selected/m-p/899011#M312732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Variable shows good value, but at the table, the condition about year isn't fulfilled (months are ok) and it shows value from 'else'. When I've got actual value (without minus one) everything's fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 08:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-year-earlier-than-selected/m-p/899011#M312732</guid>
      <dc:creator />
      <dc:date>2015-06-25T08:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: One year earlier than selected</title>
      <link>https://community.qlik.com/t5/QlikView/One-year-earlier-than-selected/m-p/899012#M312733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I've tried adding it everywhere and it's not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 08:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/One-year-earlier-than-selected/m-p/899012#M312733</guid>
      <dc:creator />
      <dc:date>2015-06-25T08:59:46Z</dc:date>
    </item>
  </channel>
</rss>

