<?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: Current month and previous month values are getting same in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-month-and-previous-month-values-are-getting-same/m-p/38587#M780917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try in double quotes once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;avg({&amp;lt;[Month Counter]={"$(=MAX([Month Counter]))"}&amp;gt;} xxx)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2018 09:28:18 GMT</pubDate>
    <dc:creator>shiveshsingh</dc:creator>
    <dc:date>2018-04-02T09:28:18Z</dc:date>
    <item>
      <title>Current month and previous month values are getting same</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-and-previous-month-values-are-getting-same/m-p/38582#M780912</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;In my data model, I have month and year combination field as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year(Date) * 12 + num(Month(Date)) as [Month Counter], I want to calculate current month vs previous month values. So I have two expression as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;current month&lt;BR /&gt;avg({&amp;lt;[Month Counter]={'$(=MAX([Month Counter]))'}&amp;gt;} xxx)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;previous month&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;avg({&amp;lt;[Month Counter]={'$(vPreviousMonthCounter)'}&amp;gt;} xxx)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vPreviousMonthCounter as&lt;/P&gt;&lt;P&gt;vPreviousMonthCounter=max([Month Counter]) -1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the values for current and previous month are getting same, however it is not correct . Is my expression wrong or do I need to use it in different way.&lt;/P&gt;&lt;P&gt;Please suggest.&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/Current-month-and-previous-month-values-are-getting-same/m-p/38582#M780912</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Current month and previous month values are getting same</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-and-previous-month-values-are-getting-same/m-p/38583#M780913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the value of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=MAX([Month Counter] and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vPreviousMonthCounter&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 06:11:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-month-and-previous-month-values-are-getting-same/m-p/38583#M780913</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-04-02T06:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Current month and previous month values are getting same</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-and-previous-month-values-are-getting-same/m-p/38584#M780914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;MAX([Month Counter] &lt;/SPAN&gt; returns 24219 , that is March and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vPreviousMonthCounter&lt;/SPAN&gt; returns 24218 that is Feb.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 06:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-month-and-previous-month-values-are-getting-same/m-p/38584#M780914</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2018-04-02T06:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Current month and previous month values are getting same</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-and-previous-month-values-are-getting-same/m-p/38585#M780915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use max(month) and max(month)-1 as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 06:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-month-and-previous-month-values-are-getting-same/m-p/38585#M780915</guid>
      <dc:creator>poojashribanger</dc:creator>
      <dc:date>2018-04-02T06:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Current month and previous month values are getting same</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-and-previous-month-values-are-getting-same/m-p/38586#M780916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use this expression for previous month&lt;/P&gt;&lt;P&gt;sum({&amp;lt;DT_LCL={"$(=date(max(DT_LCL)-1))"}&amp;gt;}CHRN_CT)&lt;/P&gt;&lt;P&gt;you can use this for max(month)&lt;/P&gt;&lt;P&gt;sum({&amp;lt;DT_LCL={"$(=date(max(DT_LCL)))"}&amp;gt;}CHRN_CT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 06:53:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-month-and-previous-month-values-are-getting-same/m-p/38586#M780916</guid>
      <dc:creator>poojashribanger</dc:creator>
      <dc:date>2018-04-02T06:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Current month and previous month values are getting same</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-and-previous-month-values-are-getting-same/m-p/38587#M780917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try in double quotes once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;avg({&amp;lt;[Month Counter]={"$(=MAX([Month Counter]))"}&amp;gt;} xxx)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 09:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-month-and-previous-month-values-are-getting-same/m-p/38587#M780917</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-04-02T09:28:18Z</dc:date>
    </item>
  </channel>
</rss>

