<?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: Previous Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464524#M490810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only thing to note with the attached example is that the year may be confusing... For example, if you select Jan, the past month will be Dec, but it would be for the same year unless you specify otherwise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2012 16:27:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-03T16:27:27Z</dc:date>
    <item>
      <title>Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464522#M490808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ppl!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ived created a variable called vPreviousMonth =month(addmonths(max(Date_Clean),-1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a straight table which shows current month i have selected (ive made that) and then i want the previous table to show previous month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. If i am in November i also want to see October - If i am in July, i also want to see June..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i make that expression? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression for currentmonth looks like this: &lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Month=, Year=,2012={'&amp;gt;=$(=MonthStart(Max(2012)))&amp;lt;=$(=Max(2012))'}&amp;gt;}BuyPriceRealized)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know if that expression is correct if not i would also like to know how the "right" way is to do it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ALOT!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 15:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464522#M490808</guid>
      <dc:creator />
      <dc:date>2012-10-03T15:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464523#M490809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have only founded soulution where they use TODAY, -1 or -2 etc etc.. But i dont want it to be hardcoded &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; As you can see my currentmonth is not hardcoded and changes every time i select a new month &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 16:22:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464523#M490809</guid>
      <dc:creator />
      <dc:date>2012-10-03T16:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464524#M490810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only thing to note with the attached example is that the year may be confusing... For example, if you select Jan, the past month will be Dec, but it would be for the same year unless you specify otherwise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 16:27:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464524#M490810</guid>
      <dc:creator />
      <dc:date>2012-10-03T16:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464525#M490811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let us take example u have month field name( jan, feb, mar.......dec for year 2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so u can create a variabe&amp;nbsp; vmonth = Month&lt;/P&gt;&lt;P&gt;and in the expression &lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Month={ '$(vmonth)'}, Year=2012)'}&amp;gt;}BuyPriceRealized)&amp;nbsp; this will show the month u have selected for year 2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for previous year calculation&amp;nbsp; i would suggest take the month number and convert into previous month number and then convert into&amp;nbsp; month name in the expression..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 16:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464525#M490811</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2012-10-03T16:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464526#M490812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats okay cause i only have one year. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 16:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464526#M490812</guid>
      <dc:creator />
      <dc:date>2012-10-03T16:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464527#M490813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But i already have current month i am in. I only need previous month &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 16:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464527#M490813</guid>
      <dc:creator />
      <dc:date>2012-10-03T16:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464528#M490814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody else who have an suggestion? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 10:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464528#M490814</guid>
      <dc:creator />
      <dc:date>2012-10-04T10:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464529#M490815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your expression does not work e:/ But anyhow ived already made currentmonth &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Can u explain what u mean by converting? or give me an example - It should be previousmonth not previousyearmonth &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;Thanks in advanced! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 11:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464529#M490815</guid>
      <dc:creator />
      <dc:date>2012-10-04T11:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464530#M490816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why Not Use MonthYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCurrMonth== Max(MonthYear)&lt;/P&gt;&lt;P&gt;vPrevMonth==Date(addmonths(Max(MonthYear),-1),'MMM-YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and In Label Left(vCurrMonth,3) and Left(vPrevMonth,3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 13:20:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464530#M490816</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-10-04T13:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464531#M490817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;So i create a variable called vCurrMonth and a variable called vPrevMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;What do i write in my expressions then for my straight table? Just the Variable???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 13:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464531#M490817</guid>
      <dc:creator />
      <dc:date>2012-10-04T13:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464532#M490818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no change required in expression&lt;/P&gt;&lt;P&gt;see below code&lt;/P&gt;&lt;P&gt;first expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Month={"$(vCurrMonth)"}&amp;gt;}Volume)&lt;/P&gt;&lt;P&gt;second expression&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Month={"$(vLastMonth)"}&amp;gt;}Volume)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;third expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Column(1)-Column(2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 13:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464532#M490818</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-10-04T13:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464533#M490819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is monthYear ? Should i make a variable called month year also???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 13:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464533#M490819</guid>
      <dc:creator />
      <dc:date>2012-10-04T13:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464534#M490820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its a field available in your application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 13:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464534#M490820</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-10-04T13:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464535#M490821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm - i dont see it anywhere???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 13:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464535#M490821</guid>
      <dc:creator />
      <dc:date>2012-10-04T13:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464536#M490822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IS it because i only have Personal edition ATM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 13:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464536#M490822</guid>
      <dc:creator />
      <dc:date>2012-10-04T13:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464537#M490823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have date field in script then make it as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month(Date)&amp;amp;'-'&amp;amp;Year(Date) as MonthYear &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 14:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464537#M490823</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-10-04T14:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464538#M490824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont have any scripts - I made my DATE dimension in the data warehouse (ssis) - i have not created a MasterCalendar.... Do i need to do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 14:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464538#M490824</guid>
      <dc:creator />
      <dc:date>2012-10-04T14:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464539#M490825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so u have only month dimension? dont you have any dimenion related year, date, something like that...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 19:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464539#M490825</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2012-10-04T19:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464540#M490826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No i have a DateDimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Date dimension includes: Days, Month, Years, Quarter, Weeks and so on....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a row called Month_Name which includes january,feburary and so on... I try to use that one but it doesnt work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 06:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464540#M490826</guid>
      <dc:creator />
      <dc:date>2012-10-05T06:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Month</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464541#M490828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i cant it to work - i think its something about my timestamps ? Yours are in // - The strange think is when i make vCurrMonth i can see my months when selecting - but i cant see any sum...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i make a listbox with the date as dimension and sum on my byprice it works perfectly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have i forgotten to change something somewhere???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 12:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Month/m-p/464541#M490828</guid>
      <dc:creator />
      <dc:date>2012-10-05T12:32:46Z</dc:date>
    </item>
  </channel>
</rss>

