<?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: Getting previous month data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-previous-month-data/m-p/1303874#M831285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps using the Peek function to get the previous month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jun 2017 05:39:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-19T05:39:31Z</dc:date>
    <item>
      <title>Getting previous month data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-previous-month-data/m-p/1303871#M831278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I having data like below&lt;/P&gt;&lt;P&gt;31-May&lt;/P&gt;&lt;P&gt;30-Apr&lt;/P&gt;&lt;P&gt;31-Mar&lt;/P&gt;&lt;P&gt;28-FEB&lt;/P&gt;&lt;P&gt;31-Jan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I need to show the bar chart based on previous month only by default. I dont have date wise data and having only month end level only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-previous-month-data/m-p/1303871#M831278</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting previous month data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-previous-month-data/m-p/1303872#M831280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Date = {"$(=Date(Floor(MonthEnd(Max(Date), -1)), 'DD-MMM'))"}&amp;gt;}Measure)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 15:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-previous-month-data/m-p/1303872#M831280</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-16T15:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting previous month data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-previous-month-data/m-p/1303873#M831282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny's expression should work but you should consider creating a variable and then referencing that variable in set analysis. That way you can re-use this in other charts or elsewhere in the app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another quick tip is to create a universal calendar so that you can look at previous month only (instead of a specific date) but that's not necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create a variable, I would do this in script as: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vLastMonth = &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date(Floor(MonthEnd(Max(Date), -1)), 'DD-MMM');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then in your expression you can simply reference this value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum ( {&amp;lt;Date = {'$(vLastMonth)')}&amp;gt;} Measure)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jun 2017 01:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-previous-month-data/m-p/1303873#M831282</guid>
      <dc:creator>jwbadger3</dc:creator>
      <dc:date>2017-06-17T01:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting previous month data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-previous-month-data/m-p/1303874#M831285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps using the Peek function to get the previous month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 05:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-previous-month-data/m-p/1303874#M831285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-19T05:39:31Z</dc:date>
    </item>
  </channel>
</rss>

