<?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 Sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-month-Sales/m-p/737070#M1072497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i am doin MAX(FMonth) it is giving me Aug&lt;/P&gt;&lt;P&gt;but when i am Doing max(FMonth-1) it is giving me 4 if max month aug is selected,&lt;/P&gt;&lt;P&gt;i thing instead of 4 it should give me july&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Aug 2014 07:41:16 GMT</pubDate>
    <dc:creator>abhaysingh</dc:creator>
    <dc:date>2014-08-08T07:41:16Z</dc:date>
    <item>
      <title>Previous month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-month-Sales/m-p/737067#M1072494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to show previous month sales.&lt;/P&gt;&lt;P&gt;i my calender i have two month,&amp;nbsp;&amp;nbsp; FMonth and Month &lt;/P&gt;&lt;P&gt;In my whole application i am following FMonth and it is working well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous month i am calcilating as&lt;/P&gt;&lt;P&gt;variable= Max(FMonth-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;calculating expression is&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;FMonth = {$(variable)}&amp;gt;}sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is giving me error,as value 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls help me .........&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 06:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-month-Sales/m-p/737067#M1072494</guid>
      <dc:creator>abhaysingh</dc:creator>
      <dc:date>2014-08-08T06:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-month-Sales/m-p/737068#M1072495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum({&amp;lt;FMonth = {'=$(=variable)'}&amp;gt;}sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;FMonth = {"=$(=variable)"}&amp;gt;}sales&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 07:03:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-month-Sales/m-p/737068#M1072495</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2014-08-08T07:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-month-Sales/m-p/737069#M1072496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum({&amp;lt;FMonth = {'=$(variable)'}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use single quote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and close opening bracket at end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Regards,&lt;/P&gt;&lt;P&gt;Vishal Waghole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 07:05:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-month-Sales/m-p/737069#M1072496</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2014-08-08T07:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-month-Sales/m-p/737070#M1072497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i am doin MAX(FMonth) it is giving me Aug&lt;/P&gt;&lt;P&gt;but when i am Doing max(FMonth-1) it is giving me 4 if max month aug is selected,&lt;/P&gt;&lt;P&gt;i thing instead of 4 it should give me july&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 07:41:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-month-Sales/m-p/737070#M1072497</guid>
      <dc:creator>abhaysingh</dc:creator>
      <dc:date>2014-08-08T07:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-month-Sales/m-p/737071#M1072498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Caluculate your previous month as like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=AddMonths(Max(FMonth),-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will give you result as Jul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Regards,&lt;/P&gt;&lt;P&gt;Vishal Waghole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 07:46:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-month-Sales/m-p/737071#M1072498</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2014-08-08T07:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Previous month Sales</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-month-Sales/m-p/737072#M1072499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This depends on how you create the field in the script. Generally, it is easier to calculate the previous month from date field. Try to redefine your variable like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable= Month(AddMonths(Max(Datefield), -1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then your expression =sum({&amp;lt;FMonth = {'$(variable)'}&amp;gt;}sales)&amp;nbsp; should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 07:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-month-Sales/m-p/737072#M1072499</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-08-08T07:59:04Z</dc:date>
    </item>
  </channel>
</rss>

