<?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 months value not getting correctly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31842#M780400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is same .&lt;/P&gt;&lt;P&gt;For current month Avg I am writing as&lt;/P&gt;&lt;P&gt;current month= avg({&amp;lt;[Month Counter]={'$(=MAX([Month Counter]))'}&amp;gt;} xxx)&lt;/P&gt;&lt;P&gt;for previous month I am writing as&lt;/P&gt;&lt;P&gt;Previous month =avg({1&amp;lt;[Month Counter]={'$(vPreviousMonth)'}&amp;gt;} xxx)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now when I choose current month as march it gives me current value 126.3933&amp;nbsp; and for FEB 126.76706&lt;/P&gt;&lt;P&gt;But when I choose month as feb the current value is 125.9241 instead of 126.76706&lt;/P&gt;&lt;P&gt;In this case the data is not matching .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Mar 2018 11:58:08 GMT</pubDate>
    <dc:creator>ashis</dc:creator>
    <dc:date>2018-03-29T11:58:08Z</dc:date>
    <item>
      <title>Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31836#M780394</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 a field in my master calendar call Month Counter , it is define as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) * 12 + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month Counter] (combination of Year and Month)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;I have created variable PreviousMonth as &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month Counter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) -1 &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Now if I want to get average of xxx of the previous month I put it in the expression as &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month Counter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(vPreviousMonth)' }&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;xxx&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;This is giving me wrong result , if I write the expression as &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month Counter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(vPreviousMonth)' }&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;xxx&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; , I get null value.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Just to test my month counter I took two text boxes and put expression as &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;current month = &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month Counter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;previous month =&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month Counter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) -1 &lt;/SPAN&gt;&lt;/SPAN&gt; it gives correct output though.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Any idea where I am doing wrong.&lt;/SPAN&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/Previous-months-value-not-getting-correctly/m-p/31836#M780394</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31837#M780395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide the sample values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 11:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31837#M780395</guid>
      <dc:creator>arjakumar</dc:creator>
      <dc:date>2018-03-29T11:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31838#M780396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For let say if I select Mar 18 and current value is&amp;nbsp; 130 then &lt;/P&gt;&lt;P&gt; Feb'18 as 128&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Previous month &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month Counter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(vPreviousMonth)' }&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;xxx&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; expression is giving some different value than 128 which is incorrect.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 11:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31838#M780396</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2018-03-29T11:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31839#M780397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about one of these?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Avg({1&amp;lt;[Month Counter] = {'&lt;SPAN style="color: #ff0000;"&gt;$(=&lt;/SPAN&gt;$(vPreviousMonth)&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;'}&amp;gt;} xxx)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Avg({1&amp;lt;[Month Counter] = {'&lt;SPAN style="color: #ff0000;"&gt;$(=&lt;/SPAN&gt;vPreviousMonth&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;'}&amp;gt;} xxx)&lt;/STRONG&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 11:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31839#M780397</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-29T11:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31840#M780398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Please take out the single quotes ('') and try&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Avg({1&amp;lt;[Month Counter] = {&lt;SPAN style="color: #ff0000;"&gt;$(=&lt;/SPAN&gt;vPreviousMonth&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;}&amp;gt;} xxx)&lt;/STRONG&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 11:50:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31840#M780398</guid>
      <dc:creator>arjakumar</dc:creator>
      <dc:date>2018-03-29T11:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31841#M780399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do single quotes need to be taken out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 11:56:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31841#M780399</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-29T11:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31842#M780400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is same .&lt;/P&gt;&lt;P&gt;For current month Avg I am writing as&lt;/P&gt;&lt;P&gt;current month= avg({&amp;lt;[Month Counter]={'$(=MAX([Month Counter]))'}&amp;gt;} xxx)&lt;/P&gt;&lt;P&gt;for previous month I am writing as&lt;/P&gt;&lt;P&gt;Previous month =avg({1&amp;lt;[Month Counter]={'$(vPreviousMonth)'}&amp;gt;} xxx)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now when I choose current month as march it gives me current value 126.3933&amp;nbsp; and for FEB 126.76706&lt;/P&gt;&lt;P&gt;But when I choose month as feb the current value is 125.9241 instead of 126.76706&lt;/P&gt;&lt;P&gt;In this case the data is not matching .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 11:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31842#M780400</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2018-03-29T11:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31843#M780401</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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=Avg({1&amp;lt;[Month Counter] = {"=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;$(=$(&lt;/SPAN&gt;vPreviousMonth&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;))"&lt;/SPAN&gt;}&amp;gt;} xxx)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-js-liking-control" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f2f2f2;"&gt;&lt;SPAN class="acclaim-container" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="acclaim-like-container js-acclaim-container font-color-meta-light" data-can-like="true" data-likes="0" data-showicon="false" data-type="mini" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #a9a9a9;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 11:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31843#M780401</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2018-03-29T11:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31844#M780402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a sample you would be able to share to look at this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 12:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31844#M780402</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-29T12:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31845#M780403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 12:01:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31845#M780403</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2018-03-29T12:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31846#M780404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried but same result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 12:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31846#M780404</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2018-03-29T12:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31847#M780405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What value you get if you put &lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6667px;"&gt;'$(vPreviousMonth)'in a text box?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 14:29:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31847#M780405</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-03-29T14:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31848#M780406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; avg({&amp;lt;[Month Counter]={'$(=MAX([Month Counter])-1)'}&amp;gt;} xxx)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 14:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31848#M780406</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-03-29T14:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31849#M780407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sasidhar,&lt;/P&gt;&lt;P&gt;If I use the following syntax&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica;"&gt;avg({&amp;lt;[Month Counter]={'$(=MAX([Month Counter])-1)'}&amp;gt;} xxx)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica;"&gt; I get null value. however I was using same syntax only difference is &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica;"&gt;avg({1&amp;lt;[Month Counter]={'$(=MAX([Month Counter])-1)'}&amp;gt;} xxx) , then it gives me value. But this value is not correct .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 15:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31849#M780407</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2018-03-29T15:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31850#M780408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Sunny,&lt;/P&gt;&lt;P class=""&gt;My current month value I compared with excel it is correct but the previous month calculation is not correct.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Is the formula wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 16:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31850#M780408</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2018-03-29T16:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31851#M780409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;I get numerical value. As it is combination of year and month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 16:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31851#M780409</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2018-03-29T16:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31852#M780410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't think so... but I don't really know what you have &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 16:03:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31852#M780410</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-29T16:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31853#M780411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What other selections do you have? Should you be using "1" in the set analysis?&lt;/P&gt;&lt;P&gt;If you have any other selections, other than the date - then Current Month and Prev month expressions are looking at different population.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the selection of date/month is driven by a different field - may just ignoring that selection in the set expression is a better way to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 17:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31853#M780411</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2018-03-29T17:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31854#M780412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;So than how do I calculate previous month . I do have another selection criteria in the filter.&lt;/P&gt;&lt;P class=""&gt;I need to calculate previous month as well as previous to previous month.&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Could you please suggest what should I use in the set analysis .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 16:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31854#M780412</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2018-04-01T16:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Previous months value not getting correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31855#M780413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;I understand why I am getting wrong value for previous month.&lt;/P&gt;&lt;P&gt;Because I am using this 1 in the set analysis so it is considering all the record set instead of my current selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month Counter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(vPreviousMonth)' }&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;xxx&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;current month = &lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month Counter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;previous month =&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month Counter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) -1 &lt;/SPAN&gt;&lt;/SPAN&gt; it gives correct output though.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;However If I remove 1 from the set analysis and modify the expression as &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month Counter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(vPreviousMonth)' }&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;xxx&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; , then I get same value as I get for current month that is &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month Counter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'=max([Month Counter]) '}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ReportTimeInSeconds&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Do you have any idea why it is giving the same value or anything i am missing here.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 05:24:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-months-value-not-getting-correctly/m-p/31855#M780413</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2018-04-02T05:24:06Z</dc:date>
    </item>
  </channel>
</rss>

