<?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 Prev YTD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Prev-YTD/m-p/568990#M1105577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This expression is "nearly" working, expect that it only gives me last Feb and not Jan &amp;amp; Feb?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;SUM&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt;={'$(vPriorYear)'},&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={'$(vMaxMonth)'}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Sales&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any idea what I need to change?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2014 13:15:25 GMT</pubDate>
    <dc:creator>dmac1971</dc:creator>
    <dc:date>2014-03-27T13:15:25Z</dc:date>
    <item>
      <title>Prev YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prev-YTD/m-p/568990#M1105577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This expression is "nearly" working, expect that it only gives me last Feb and not Jan &amp;amp; Feb?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;SUM&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt;={'$(vPriorYear)'},&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={'$(vMaxMonth)'}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;Sales&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any idea what I need to change?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 13:15:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prev-YTD/m-p/568990#M1105577</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2014-03-27T13:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Prev YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prev-YTD/m-p/568991#M1105578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Writing Month={'$(vMaxMonth)'} means it will show the last month, you might want to change that &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Lucas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 13:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prev-YTD/m-p/568991#M1105578</guid>
      <dc:creator />
      <dc:date>2014-03-27T13:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Prev YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prev-YTD/m-p/568992#M1105579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;SUM&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Year&lt;/SPAN&gt;={'$(vPriorYear)'},&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Month&lt;/SPAN&gt;={'&amp;lt;=$(vMaxMonth)'}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Sales&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 13:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prev-YTD/m-p/568992#M1105579</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2014-03-27T13:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Prev YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prev-YTD/m-p/568993#M1105580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For some reason changing to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff; font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;SUM&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000; font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;Year&lt;/SPAN&gt;={'$(vPriorYear)'},&lt;SPAN style="color: #800000; font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;Month&lt;/SPAN&gt;={'&amp;lt;=$(vMaxMonth)'}&amp;gt;} &lt;SPAN style="color: #800000; font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;Sales&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gives me 0, I had tried this before.&amp;nbsp; Maybe its how I am setting up the variable?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #999999;"&gt;&lt;EM style="font-size: 12pt;"&gt;vMaxMonth&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; = Month&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Transaction Date]&lt;/SPAN&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 13:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prev-YTD/m-p/568993#M1105580</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2014-03-27T13:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Prev YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prev-YTD/m-p/568994#M1105581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Setting vMaxMonth to Month(max([Transaction Date])) means you will get 1 month, try making another variable v2ndLastMonth = Month(max([Transaction Date])-1) and then adding it into your set analysis. This will give you the last month and the second-last month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 13:47:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prev-YTD/m-p/568994#M1105581</guid>
      <dc:creator />
      <dc:date>2014-03-27T13:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Prev YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Prev-YTD/m-p/568995#M1105582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is either (have not had chance to test....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) the &amp;lt;= quote are in the wrong place:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;SUM&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Year&lt;/SPAN&gt;={'$(vPriorYear)'},&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Month&lt;/SPAN&gt;={&amp;lt;='$(vMaxMonth)'}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Sales&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) You need to use double quotes to get the expression to evaluate in the brackets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;SUM&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Year&lt;/SPAN&gt;={"$(vPriorYear)"},&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Month&lt;/SPAN&gt;={"&amp;lt;=$(vMaxMonth)"}&amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Sales&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 14:20:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Prev-YTD/m-p/568995#M1105582</guid>
      <dc:creator>DavidFoster1</dc:creator>
      <dc:date>2014-03-27T14:20:17Z</dc:date>
    </item>
  </channel>
</rss>

