<?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: How do I get the previous MonthYear on a chart? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-previous-MonthYear-on-a-chart/m-p/467231#M1154921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The text box gives me what I want no problem, it's the expression in the chart where I can't get it to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2013 09:50:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-25T09:50:10Z</dc:date>
    <item>
      <title>How do I get the previous MonthYear on a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-previous-MonthYear-on-a-chart/m-p/467229#M1154918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for helping me get the current MonthYear on the chart. I thought that getting the previous MonthYear would be quite straighforward once getting the current one was established, but it isn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is the MonthYear from one year ago that I'm trying to get and I'm putting it in the second column of the aggr pivot table next to the current MonthYear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have managed to get the previous MonthYear to show in a text box, but if I put that exact formula inside quotes in the expression then I just get zeroes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out why this isn't working. Anybody know why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 09:34:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-previous-MonthYear-on-a-chart/m-p/467229#M1154918</guid>
      <dc:creator />
      <dc:date>2013-02-25T09:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the previous MonthYear on a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-previous-MonthYear-on-a-chart/m-p/467230#M1154919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Inthe text box you can get previous month as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=(Date(monthstart(max(Date)-365) -1, 'MMM-YYYY') )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 09:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-previous-MonthYear-on-a-chart/m-p/467230#M1154919</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2013-02-25T09:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the previous MonthYear on a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-previous-MonthYear-on-a-chart/m-p/467231#M1154921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The text box gives me what I want no problem, it's the expression in the chart where I can't get it to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 09:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-previous-MonthYear-on-a-chart/m-p/467231#M1154921</guid>
      <dc:creator />
      <dc:date>2013-02-25T09:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the previous MonthYear on a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-previous-MonthYear-on-a-chart/m-p/467232#M1154923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apart from a couple of syntax errors, you also have to undo the Year and Month filters, to have values for the last year in your expression. Try this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;MonthYear = {'$(=Date(monthstart(max(Date)-365), 'MMM-YYYY'))'}, Year=, Month=&amp;gt;} LineSalesAmount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Juan Gerardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 10:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-previous-MonthYear-on-a-chart/m-p/467232#M1154923</guid>
      <dc:creator />
      <dc:date>2013-02-25T10:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the previous MonthYear on a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-previous-MonthYear-on-a-chart/m-p/467233#M1154925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 10:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-previous-MonthYear-on-a-chart/m-p/467233#M1154925</guid>
      <dc:creator />
      <dc:date>2013-02-25T10:17:45Z</dc:date>
    </item>
  </channel>
</rss>

