<?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 exclude latest month from variable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52757#M782721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Chanty, Thanks for the Quick response, But, it's not working for me.&lt;/P&gt;&lt;P&gt; when I use this variable in a chart Expression it's showing 'No data to Display'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2018 06:51:19 GMT</pubDate>
    <dc:creator>ramcena306</dc:creator>
    <dc:date>2018-03-20T06:51:19Z</dc:date>
    <item>
      <title>How to exclude latest month from variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52755#M782719</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;PFA variable, I have a variable which shows 24M (Months)stock values.&lt;/P&gt;&lt;P&gt;how to adjust this variable to exclude the latest month?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708" target="_blank"&gt;stalwar1&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/218859" target="_blank"&gt;loveisfail&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/196434" target="_blank"&gt;sureshqv&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/13229" target="_blank"&gt;jontydkpi&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/265943" target="_blank"&gt;arvind1494&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/57428" target="_blank"&gt;kush141087&lt;/A&gt;‌&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/How-to-exclude-latest-month-from-variable/m-p/52755#M782719</guid>
      <dc:creator>ramcena306</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude latest month from variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52756#M782720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add this into your variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month -= {"$(=Date(MonthStart(Today()), 'Format'))"}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 06:37:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52756#M782720</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2018-03-20T06:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude latest month from variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52757#M782721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Chanty, Thanks for the Quick response, But, it's not working for me.&lt;/P&gt;&lt;P&gt; when I use this variable in a chart Expression it's showing 'No data to Display'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 06:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52757#M782721</guid>
      <dc:creator>ramcena306</dc:creator>
      <dc:date>2018-03-20T06:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude latest month from variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52758#M782722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Otherwise, I want to create a new variable to get the stock values for the latest month by using this variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 06:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52758#M782722</guid>
      <dc:creator>ramcena306</dc:creator>
      <dc:date>2018-03-20T06:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude latest month from variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52759#M782723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you using alternate state??&lt;/P&gt;&lt;P&gt;why you required scope resolution operator in your expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 06:59:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52759#M782723</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2018-03-20T06:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude latest month from variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52760#M782724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Sum({&amp;lt;Year = {"$=(max(year))"} , Month = {"$=(Date(Max(Month),'MMM'))"} &amp;gt;}Data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this to get last month sales&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 07:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52760#M782724</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-03-20T07:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude latest month from variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52761#M782726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;Yes we are using Alternate state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I have to show stock values upto&amp;nbsp; completed months only,&lt;/P&gt;&lt;P&gt;for that, if I create a second variable&amp;nbsp; or an expression to get the stock values for the latest month and then I will&amp;nbsp; substract this value from the result of first variable. Then I will get the required Output.(Because the attached variable giving current month stock values also)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 07:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52761#M782726</guid>
      <dc:creator>ramcena306</dc:creator>
      <dc:date>2018-03-20T07:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude latest month from variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52762#M782729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivesh Singh,&lt;/P&gt;&lt;P&gt;This is not my requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 07:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52762#M782729</guid>
      <dc:creator>ramcena306</dc:creator>
      <dc:date>2018-03-20T07:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude latest month from variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52763#M782731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can put this in variable, you wrote there to get lastmonth sales.right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 07:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52763#M782731</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-03-20T07:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude latest month from variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52764#M782732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivesh Singh,&lt;/P&gt;&lt;P&gt;Not Last month, to get latest month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 07:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52764#M782732</guid>
      <dc:creator>ramcena306</dc:creator>
      <dc:date>2018-03-20T07:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude latest month from variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52765#M782733</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;sum({1&amp;lt;&lt;/P&gt;&lt;P&gt;CALYEAR= {"$=(max(year))"} , CALMONTH={*}-{"$=(Date(Max(Month),'MMM'))"} &lt;/P&gt;&lt;P&gt;,PROD_CALMONTH=$::PROD_CALMONTH&lt;/P&gt;&lt;P&gt;,PROD_CALYEAR=$::PROD_CALYEAR&lt;/P&gt;&lt;P&gt;&amp;gt;}MON24)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend to use a Date filed instead of using Year and&amp;nbsp; month field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have define if you are using "Prod_Cal" month or just "cal month" fields for your analysis.&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 07:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52765#M782733</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2018-03-20T07:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude latest month from variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52766#M782734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_KPI_Stock_24M_Precalc ::&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;//basic calculation for 24 month stock based on precalculated MON24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//fields to be considered for selections&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{1&amp;lt;&lt;/P&gt;&lt;P&gt;CALMONTH=$::CALMONTH&lt;/P&gt;&lt;P&gt;,CALYEAR=$::CALYEAR&lt;/P&gt;&lt;P&gt;,PROD_CALMONTH=$::PROD_CALMONTH&lt;/P&gt;&lt;P&gt;,PROD_CALYEAR=$::PROD_CALYEAR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;-1&amp;lt;CALMONTH={"$(=Date(MonthStart(Today()), 'MM'))"},CALYEAR={"$(=Year(Today()))"}&amp;gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MON24)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 09:30:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-exclude-latest-month-from-variable/m-p/52766#M782734</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-03-20T09:30:33Z</dc:date>
    </item>
  </channel>
</rss>

