<?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 select Previous month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-select-Previous-month/m-p/1079090#M935904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that Convert(date, Full_date) converted your varchar values into correct dates?&lt;/P&gt;&lt;P&gt;Perhaps you can post a small Qlikview that demonstrates the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Feb 2016 11:26:52 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-02-21T11:26:52Z</dc:date>
    <item>
      <title>How to select Previous month</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Previous-month/m-p/1079089#M935903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my SQL server database i have a field called Full_date. It is varchar(8) type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to use this field in my QV application, i used Convert(date, Full_date) to convert into date data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, i made a date, month, year fields using the above field.&lt;/P&gt;&lt;P&gt;Month(Fulldate) as Month,&lt;/P&gt;&lt;P&gt;Year(Fulldate) as Year,&lt;/P&gt;&lt;P&gt;Day(Fulldate) as Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the Pivot table to show the current month sales, Previous month sales, current month target and previous month target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My selections as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First i am selecting the Year, then ;month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i select month, the report should should show both current month and previous month sales and target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i use code "Month(Num(Month)-1)" is giving "Dec" month on the current selected month is "Feb". Actually it should give month "Jan" as my previous month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in selecting the earlier month.&lt;/P&gt;&lt;P&gt;if i select "Jan" it should show "Dec"&lt;/P&gt;&lt;P&gt;if i select "Mar" it should show "Feb"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Feb 2016 05:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Previous-month/m-p/1079089#M935903</guid>
      <dc:creator>konidena</dc:creator>
      <dc:date>2016-02-21T05:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to select Previous month</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Previous-month/m-p/1079090#M935904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that Convert(date, Full_date) converted your varchar values into correct dates?&lt;/P&gt;&lt;P&gt;Perhaps you can post a small Qlikview that demonstrates the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Feb 2016 11:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Previous-month/m-p/1079090#M935904</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-21T11:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to select Previous month</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-select-Previous-month/m-p/1079091#M935905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post sample data .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Feb 2016 12:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-select-Previous-month/m-p/1079091#M935905</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-21T12:45:57Z</dc:date>
    </item>
  </channel>
</rss>

