<?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 to show previous month. help please. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-help-please/m-p/504106#M692858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably easiest if you use some variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable vPrevMonth: =date(addmonths(date#(TRANS_YEARMONTH,'YYYY-MM'),-1),'YYYY-MM')&lt;/P&gt;&lt;P&gt;expression: sum( {$&amp;lt;MONTH=,YEAR=,TRANS_YEARMONTH={'$(vPrevMonth)'},FS={'Sales',"Discount*"} &amp;gt;} DIFF )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make things easier you can use Qlikview Components to create a calendar for you and get a lot of handy set modifiers (like previous month) for free. See &lt;A _jive_internal="true" href="https://community.qlik.com/thread/66717" style="font-size: 12px; color: #007fc0; font-family: Arial;"&gt;Tutorial - Using Common Date Dimensions and Shared Calendars&lt;/A&gt; for more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Jul 2013 09:50:37 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-07-21T09:50:37Z</dc:date>
    <item>
      <title>How to show previous month. help please.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-help-please/m-p/504105#M692857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to show value of previous month. but i can't get it and i try follow by forums in qlikview community for this case but it dosen't work.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;anyone help me please.&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jul 2013 08:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-help-please/m-p/504105#M692857</guid>
      <dc:creator />
      <dc:date>2013-07-21T08:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to show previous month. help please.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-help-please/m-p/504106#M692858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably easiest if you use some variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable vPrevMonth: =date(addmonths(date#(TRANS_YEARMONTH,'YYYY-MM'),-1),'YYYY-MM')&lt;/P&gt;&lt;P&gt;expression: sum( {$&amp;lt;MONTH=,YEAR=,TRANS_YEARMONTH={'$(vPrevMonth)'},FS={'Sales',"Discount*"} &amp;gt;} DIFF )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make things easier you can use Qlikview Components to create a calendar for you and get a lot of handy set modifiers (like previous month) for free. See &lt;A _jive_internal="true" href="https://community.qlik.com/thread/66717" style="font-size: 12px; color: #007fc0; font-family: Arial;"&gt;Tutorial - Using Common Date Dimensions and Shared Calendars&lt;/A&gt; for more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jul 2013 09:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-help-please/m-p/504106#M692858</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-21T09:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to show previous month. help please.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-help-please/m-p/504107#M692859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jul 2013 14:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-previous-month-help-please/m-p/504107#M692859</guid>
      <dc:creator />
      <dc:date>2013-07-21T14:38:50Z</dc:date>
    </item>
  </channel>
</rss>

