<?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 vs Previous Month expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878974#M306838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This doesn't remotely answer your question, but in the future, you might want to consider using a Timeline table.&amp;nbsp; It will really make such calculations like this easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2015 12:47:15 GMT</pubDate>
    <dc:creator>JustinDallas</dc:creator>
    <dc:date>2015-05-05T12:47:15Z</dc:date>
    <item>
      <title>Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878966#M306830</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;I have an a table like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="525"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="154"&gt;Months&lt;/TD&gt;&lt;TD class="xl70" colspan="3" style="border-right: .5pt solid black; border-left: none;" width="371"&gt;Jan&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17"&gt;Business Group&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none;"&gt;FTE&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Headcount&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Current Month vs Previous Months&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;107.3&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;117&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;5.35&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none;"&gt;c&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;57.82&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;74&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17" style="border-top: none;"&gt;d&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;49.99&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression is: Count(Employee)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know how to write an expression for calculation of difference Month vs Previous month. For example February vs January?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used an expression like: &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Count(Employee)- before(Count(Employee) but it shows me null when a selection of month is made.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 11:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878966#M306830</guid>
      <dc:creator />
      <dc:date>2015-05-05T11:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878967#M306831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Month isn't one of your dimension in the chart it seems, why don't you use set analysis to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=(Count({&amp;lt;MonthYear = {"$(=MonthName(AddMonths(Max(MonthYear), - 1)))"}&amp;gt;} Employee)/&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Count({&amp;lt;MontName(MonthYear = {"$(=Max(MonthYear)))"}&amp;gt;} Employee)) - 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: MonthYear is a field that will be created in your load script using MonthName() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 12:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878967#M306831</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-05T12:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878968#M306832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it's not working &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 12:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878968#M306832</guid>
      <dc:creator />
      <dc:date>2015-05-05T12:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878969#M306833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a sample. The field names you are using and formats you have might look differently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 12:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878969#M306833</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-05T12:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878970#M306834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;Create the variables:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;STRONG&gt;vMax_Date =&lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;),'DD/MM/YYYY') &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;STRONG&gt;vMin_Date =&lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Min&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;),'DD/MM/YYYY') &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;STRONG style="color: #800000;"&gt;v_MTD_Start=&lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Monthstart&lt;/SPAN&gt;(&lt;EM style=": ; color: #808080;"&gt;vMax_Date&lt;/EM&gt;),'DD/MM/YYYY') &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;STRONG style=": ; color: #800000;"&gt;v_MTD_End=&lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;((&lt;EM style=": ; color: #808080;"&gt;vMax_Date&lt;/EM&gt;),'DD/MM/YYYY') &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;STRONG style=": ; color: #800000;"&gt;v_MTD_LY_Start=&lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;MonthStart&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;AddMonths&lt;/SPAN&gt;(&lt;EM style=": ; color: #808080;"&gt;vMax_Date&lt;/EM&gt;,-1)),'DD/MM/YYYY') &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;STRONG style=": ; color: #800000;"&gt;v_MTD_LY_End=&lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;((&lt;SPAN style="color: #0000ff;"&gt;AddMonths&lt;/SPAN&gt;(&lt;EM style=": ; color: #808080;"&gt;vMax_Date&lt;/EM&gt;,-1)),'DD/MM/YYYY') &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"&gt;&lt;STRONG&gt;then, the expression in text box:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;='Current Month: ' &amp;amp; &lt;SPAN style="color: #0000ff;"&gt;Num&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;( {&amp;lt;&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt; ={&lt;SPAN style="color: #800000;"&gt;"&amp;gt;=$(=v_MTD_Start)&amp;lt;=$(=v_MTD_End)"&lt;/SPAN&gt;} &amp;gt;} &lt;SPAN style="color: #800000;"&gt;[Employee]&lt;/SPAN&gt;),'###0') &lt;BR /&gt; &amp;amp; &lt;SPAN style="color: #0000ff;"&gt;chr&lt;/SPAN&gt;(10)&lt;BR /&gt; &amp;amp; &lt;BR /&gt; 'Last Month: '&amp;amp; &lt;SPAN style="color: #0000ff;"&gt;Num&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;( {&amp;lt;&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;=,&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt; ={&lt;SPAN style="color: #800000;"&gt;"&amp;gt;=$(=v_MTD_LY_Start)&amp;lt;=$(=v_MTD_LY_End)"&lt;/SPAN&gt;} &amp;gt;} &lt;SPAN style="color: #800000;"&gt;[&lt;SPAN style="color: #800000;"&gt;Employee&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt;),'###0')&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;&lt;SPAN&gt;&lt;STRONG&gt;or break both the expressions and use as two expression in table chart&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 12:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878970#M306834</guid>
      <dc:creator />
      <dc:date>2015-05-05T12:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878971#M306835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, it's not what is required&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 12:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878971#M306835</guid>
      <dc:creator />
      <dc:date>2015-05-05T12:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878972#M306836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now if someone selects February in Month list-box, then it will give the counts related to Feb in current month and&lt;/P&gt;&lt;P&gt;counts related to Jan in previous month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 12:33:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878972#M306836</guid>
      <dc:creator />
      <dc:date>2015-05-05T12:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878973#M306837</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 Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;hope this helps you:-&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;Count(Employee)- (Count(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt;MonthYear = {"$(=MonthName(AddMonths(Max(MonthYear), - 1)))"}&amp;gt;} &lt;/STRONG&gt;Employee) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;Mohammad&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 12:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878973#M306837</guid>
      <dc:creator>mohammadkhatimi</dc:creator>
      <dc:date>2015-05-05T12:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878974#M306838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This doesn't remotely answer your question, but in the future, you might want to consider using a Timeline table.&amp;nbsp; It will really make such calculations like this easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 12:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878974#M306838</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2015-05-05T12:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878975#M306839</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;CM:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year = {$(=only(Year) - $(=if(only(Month) = 1, 1, 0)))}, Month = {$(=month(MonthYear))}&amp;gt;} LineSalesAmount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PM:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year = {$(=only(Year) - $(=if(only(Month) = 1, 1, 0)))}, Month = {$(=month(addmonths(MonthYear, -1)))}&amp;gt;} LineSalesAmount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 13:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878975#M306839</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-05-05T13:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878976#M306840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately this doesnt work either &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; Nobody knows how to calculate this difference?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 13:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878976#M306840</guid>
      <dc:creator />
      <dc:date>2015-05-05T13:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878977#M306841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My first dimension is Business group, and the second one is 'Months'. I dont have MonthYear or Year or anything else&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 13:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878977#M306841</guid>
      <dc:creator />
      <dc:date>2015-05-05T13:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878978#M306842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/Ladydi92"&gt;Diana&lt;/A&gt;‌ we all are providing you the solution based on what we think your fields, formats etc may look like. This is the best we probably can do without looking at your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 13:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878978#M306842</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-05T13:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878979#M306843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;try some thing like below&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(${&amp;lt;Month={$(=max(Month))}&amp;gt;}employee)-count({&amp;lt;Month={$(=Max(Month)-1)}&amp;gt;}employee)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 13:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878979#M306843</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2015-05-05T13:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878980#M306844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Month is one of your dimensions then I wouldn't probably use set analysis. Above/Below function if a straight table or After/Before function if pivot table (and months are laid out horizontally) will be required. But again the ideal solution can only be provided if and when you can provide some data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 13:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878980#M306844</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-05T13:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878981#M306845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a monthend dateID use it in the set analysis expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;DateID={$(=max(DateID))},Month=&amp;gt;}employee) - &lt;SPAN style="font-size: 13.3333330154419px;"&gt;count({&amp;lt;DateID={$(=max(DateID)-1)},Month=&amp;gt;}employee)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 13:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878981#M306845</guid>
      <dc:creator>santhoo_san</dc:creator>
      <dc:date>2015-05-05T13:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878982#M306846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create 2 variables. (Ctrl + Alt + V --&amp;gt; Add)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxMonth = Month(Max(YourDateField))&lt;/P&gt;&lt;P&gt;vMaxMonthPrior = Month(addmonths(Max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;YourDateField&lt;/SPAN&gt;),-1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your graph, create these expressions:&lt;/P&gt;&lt;P&gt;1st Exp for Selected Month =Count({&amp;lt;Month ={'$(vMaxMonth)'}&amp;gt;} Employee) &lt;/P&gt;&lt;P&gt;2nd Exp for Prior Month of selected = &lt;SPAN style="font-size: 13.3333330154419px;"&gt;=Count({&amp;lt;Month ={'$(vMaxMonthPrior)'}&amp;gt;} Employee) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Name the expressions&lt;/P&gt;&lt;P&gt;1 = Headcount &lt;SPAN style="font-size: 13.3333330154419px;"&gt;$(vMaxMonth)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2 = Headcount &lt;SPAN style="font-size: 13.3333330154419px;"&gt;$(vMaxMonthPrior)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 22:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878982#M306846</guid>
      <dc:creator>nico_ilog</dc:creator>
      <dc:date>2015-05-05T22:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878983#M306847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to tweak things to match the fields you have in your model, but the app I uploaded to Qlik Community should give you a good head start on this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4313"&gt;QlikView App: Set Analysis - Prior Period Comparison&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are also some notes on how the app works which may be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 23:07:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878983#M306847</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2015-05-05T23:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878984#M306848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your Month column just a text column with names of months or is it a Month converted Date column (like =month(Date))?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 06:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878984#M306848</guid>
      <dc:creator />
      <dc:date>2015-05-06T06:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Current vs Previous Month expression</title>
      <link>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878985#M306849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These formulas arent working, here is my sample data attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 06:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-vs-Previous-Month-expression/m-p/878985#M306849</guid>
      <dc:creator />
      <dc:date>2015-05-06T06:36:22Z</dc:date>
    </item>
  </channel>
</rss>

