<?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: Get Current month and previous month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-Current-month-and-previous-month/m-p/32140#M5425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your requirement is clear and classic but this should be done in restitution part inside expressions depending what you need to calculate using set analysis&lt;/P&gt;&lt;P&gt;please have a look at this: &lt;A href="https://community.qlik.com/thread/188833"&gt;Set Analysis Current Month vs Previous Month&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else precise your data and what you need to calculate, sum, count...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2018 07:38:51 GMT</pubDate>
    <dc:creator>kfoudhaily</dc:creator>
    <dc:date>2018-06-15T07:38:51Z</dc:date>
    <item>
      <title>Get Current month and previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Current-month-and-previous-month/m-p/32139#M5424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I need help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I want to calculate current month and previous month. Eg. Suppose all data is selected then values show current month(May) data and previous month(April) data, and if user click on April month filter then variable need to show current month as April and previous month as March. Hope you understand the requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 06:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Current-month-and-previous-month/m-p/32139#M5424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-15T06:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get Current month and previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Current-month-and-previous-month/m-p/32140#M5425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your requirement is clear and classic but this should be done in restitution part inside expressions depending what you need to calculate using set analysis&lt;/P&gt;&lt;P&gt;please have a look at this: &lt;A href="https://community.qlik.com/thread/188833"&gt;Set Analysis Current Month vs Previous Month&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else precise your data and what you need to calculate, sum, count...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 07:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Current-month-and-previous-month/m-p/32140#M5425</guid>
      <dc:creator>kfoudhaily</dc:creator>
      <dc:date>2018-06-15T07:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get Current month and previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Current-month-and-previous-month/m-p/32141#M5426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create this variable on load script:&lt;/P&gt;&lt;P&gt;et vPriorMonth&amp;nbsp; = '=month(addmonths(max(GasDay),-1))';&lt;/P&gt;&lt;P&gt;let vPriorMonthYear = '=Year(addmonths(max(GasDay),-1))';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I used this for finding the last month charges&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;Year={'$(vPriorMonthYear)'},Month={'$(vPriorMonth)'}&amp;gt;} SalesValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 07:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Current-month-and-previous-month/m-p/32141#M5426</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2018-06-15T07:44:50Z</dc:date>
    </item>
  </channel>
</rss>

