<?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 vs previous month issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-month-vs-previous-month-issue/m-p/70960#M771846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting the month selection by-pass in set analysis in aggr(), like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Previous:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit;"&gt;=Sum(Aggr(&lt;SPAN style="color: #ff00ff;"&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; font-weight: inherit;"&gt; &lt;EM style="font-weight: inherit;"&gt;[Month Name]&lt;/EM&gt;&lt;/EM&gt;&lt;SPAN style="color: #ff00ff;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;/STRONG&gt; Count({&amp;lt;&lt;EM style="font-weight: inherit;"&gt;[Month Name]&lt;/EM&gt;= {'$(=MonthName(AddMonths(Max([Date]),-1)))'},&lt;EM style="font-weight: inherit;"&gt;Product = {"*"}-{' '}&lt;/EM&gt;&amp;gt;} Distinct id), &lt;EM style="font-weight: inherit;"&gt;[Month Name]&lt;/EM&gt;,&lt;SPAN style="color: #000000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Product&lt;/SPAN&gt;))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2018 06:39:42 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2018-05-23T06:39:42Z</dc:date>
    <item>
      <title>Current month vs previous month issue</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-vs-previous-month-issue/m-p/70957#M771843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please help me on below issue.&lt;/P&gt;&lt;P&gt;I have used below expressions for current and previous month kpis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Current:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;=Sum(Aggr(Count({&amp;lt;[Month Name]= {'$(=MonthName(Max([Date])))'}, Product = {"*"}-{' '}&amp;gt;} Distinct id), &lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Month Name]&lt;/EM&gt;,&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Product&lt;/SPAN&gt;))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;STRONG&gt;Previous:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;=Sum(Aggr(Count({&amp;lt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Month Name]&lt;/EM&gt;= {'$(=MonthName(AddMonths(Max([Date]),-1)))'},&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Product = {"*"}-{' '}&lt;/EM&gt;&amp;gt;} Distinct id), &lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Month Name]&lt;/EM&gt;,&lt;EM style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Product&lt;/EM&gt;))&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;By default its showing the results correctly&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;IMG __jive_id="203052" alt="default.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/203052_default.png" style="height: 144px; width: 620px;" /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;When I have selected april previous kpi changed to zero&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;IMG __jive_id="203053" alt="selections.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/203053_selections.png" style="height: 164px; width: 620px;" /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;Please help me on this.&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;Thanks in advance&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&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/Current-month-vs-previous-month-issue/m-p/70957#M771843</guid>
      <dc:creator>mahitham</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Current month vs previous month issue</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-vs-previous-month-issue/m-p/70958#M771844</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;it's I think because you make a selection &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so max(date) is april, and there's notthing selected for max(date) - 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with {1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to select all without taking account of selection for month-1&lt;/P&gt;&lt;P&gt;&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, 22 May 2018 11:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-month-vs-previous-month-issue/m-p/70958#M771844</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-05-22T11:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Current month vs previous month issue</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-vs-previous-month-issue/m-p/70959#M771845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/198252"&gt;sasiparupudi1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/13229"&gt;jontydkpi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/108195"&gt;jyothish8807&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Could you please suggest any way to resolve the above issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 06:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-month-vs-previous-month-issue/m-p/70959#M771845</guid>
      <dc:creator>mahitham</dc:creator>
      <dc:date>2018-05-23T06:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Current month vs previous month issue</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-vs-previous-month-issue/m-p/70960#M771846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try putting the month selection by-pass in set analysis in aggr(), like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Previous:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit;"&gt;=Sum(Aggr(&lt;SPAN style="color: #ff00ff;"&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; font-weight: inherit;"&gt; &lt;EM style="font-weight: inherit;"&gt;[Month Name]&lt;/EM&gt;&lt;/EM&gt;&lt;SPAN style="color: #ff00ff;"&gt;&amp;gt;}&lt;/SPAN&gt;&lt;/STRONG&gt; Count({&amp;lt;&lt;EM style="font-weight: inherit;"&gt;[Month Name]&lt;/EM&gt;= {'$(=MonthName(AddMonths(Max([Date]),-1)))'},&lt;EM style="font-weight: inherit;"&gt;Product = {"*"}-{' '}&lt;/EM&gt;&amp;gt;} Distinct id), &lt;EM style="font-weight: inherit;"&gt;[Month Name]&lt;/EM&gt;,&lt;SPAN style="color: #000000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Product&lt;/SPAN&gt;))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;EM style="font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 06:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-month-vs-previous-month-issue/m-p/70960#M771846</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-05-23T06:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Current month vs previous month issue</title>
      <link>https://community.qlik.com/t5/QlikView/Current-month-vs-previous-month-issue/m-p/70961#M771847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression looks correct to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be try to see the output of "&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;=MonthName(AddMonths(Max([Date]),-1))" &lt;/EM&gt;&lt;/EM&gt;or create a variable for max Month name and previous month name and use in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else you can try to bypass the monthname field as suggested by &lt;A href="https://community.qlik.com/qlik-users/26418"&gt;tresesco&lt;/A&gt;‌.&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Br,&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;KC&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 04:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-month-vs-previous-month-issue/m-p/70961#M771847</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2018-05-24T04:54:36Z</dc:date>
    </item>
  </channel>
</rss>

