<?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: Month over Month Calculation for Expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Month-over-Month-Calculation-for-Expressions/m-p/1162212#M915183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would it be possible to provide some sample data with the expected output? It might get easy to help you with those things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-2380"&gt;QlikCommunity Tip: How to get answers to your post?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 May 2016 03:37:43 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-29T03:37:43Z</dc:date>
    <item>
      <title>Month over Month Calculation for Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Month-over-Month-Calculation-for-Expressions/m-p/1162210#M915181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have been reading through numerous posts and calculations throughout the forums in an effort to calculate month over month changes for my data. Unfortunately as I try various proposed solutions I can't seem to get any to work with my data in my situation. So apologies if any of this is redundant, but would really appreciate some assistance as I have taken this dashboard over from someone else and their methodology.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field called &lt;STRONG&gt;STR_RESOLVED&lt;/STRONG&gt;. The data in there is the Month and Year as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May 2016&lt;/P&gt;&lt;P&gt;April 2016&lt;/P&gt;&lt;P&gt;March 2016&lt;/P&gt;&lt;P&gt;... all the way back to May 2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Expressions that I need to measure as follows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VOLUME&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CASES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ONE DAY RESOLUTION&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AVERAGE DAYS TO RESOLUTION&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and more...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each of these expressions has a definition with variables using &lt;STRONG&gt;MonthRank&lt;/STRONG&gt; and &lt;STRONG&gt;CurrentMonthRank&lt;/STRONG&gt;, for example &lt;/P&gt;&lt;P&gt;AVERAGE DAYS TO RESOLUTION shows this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(((Sum(if(MonthRank=CurrentMonthRank,[Case Age],0))/Count(if(MonthRank=CurrentMonthRank,[Case Age])))-&lt;/P&gt;&lt;P&gt;(Sum(if(MonthRank=CurrentMonthRank-1,[Case Age],0))/Count(if(MonthRank=CurrentMonthRank-1,[Case Age]))))/&lt;/P&gt;&lt;P&gt;(Sum(if(MonthRank=CurrentMonthRank-1,[Case Age],0))/Count(if(MonthRank=CurrentMonthRank-1,[Case Age]))),'+0.00%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;The problem is, the prior owner:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Created a field in Access, script loaded it from the DB and called it &lt;STRONG&gt;MonthRank&lt;/STRONG&gt; assigning each month a value, like 43,44,45 through 54.&lt;/P&gt;&lt;P&gt;Created a variable called &lt;STRONG&gt;CurrentMonthRank&lt;/STRONG&gt;, which I cannot see how it is updated, but currently has a value of just 54.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I no longer have these two items, nothing calculates for the above expression I need to measure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the logic I am looking for is how to create a replacement value for MonthRank and CurrentMonthRank that I could populate in those which would update all my existing expressions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I've been trying everything I can think of from , ( vMaxMonth =month(max(STR_RESOLVED)), and vPriorMonth&amp;nbsp; =month(addmonths(max(STR_RESOLVED) ,-1)) to using Accountnum for STR_RESOLVED, as well as various SET or LET values and probably due to my limited knowledge (this is my first dashboard), cannot get this to work. I've seen mention of a Calendar Table, but I don't seem to have one of those either. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In a nutshell, can someone please direct me on how I can replicate/replace or alternatively achieve&amp;nbsp; the MonthRank and CurrentMonthRank comparisons so that I can present month over month %change for each expression like as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 437px; height: 79px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Expressions&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;April 2016&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;March 2016&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;MoM%&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;VOLUME&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;120,935&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;140,776&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-14.09%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;CASES&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;44,503&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;51,675&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-13.88%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ONE DAY RESOLUTION&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;58%&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;57%&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.06%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you very kindly!&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/Month-over-Month-Calculation-for-Expressions/m-p/1162210#M915181</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Month over Month Calculation for Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Month-over-Month-Calculation-for-Expressions/m-p/1162211#M915182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you could apply the following comparisons. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Instead of &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MonthRank=CurrentMonthRank, you could use:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STR_RESOLVED = Text(Date(Today(), 'MMM YYYY'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And replace &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MonthRank=CurrentMonthRank-1 with:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STR_RESOLVED = Text(Date(AddMonths(Today(), -1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;By the way, and assuming that STR_RESOLVED field contain text values. By the way have you tried to parse to date when declaring your variables in your previous tests?&lt;/SPAN&gt;&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: 13.3333px;"&gt;&lt;STRONG&gt;vMaxMonth &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;= month(max(Date#(STR_RESOLVED, 'MMM YYYY')))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;vPriorMonth &lt;/SPAN&gt;= month(addmonths(max(Date#(STR_RESOLVED, 'MMM YYYY')) ,-1)) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Karla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 May 2016 02:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-over-Month-Calculation-for-Expressions/m-p/1162211#M915182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-28T02:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Month over Month Calculation for Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Month-over-Month-Calculation-for-Expressions/m-p/1162212#M915183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would it be possible to provide some sample data with the expected output? It might get easy to help you with those things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-2380"&gt;QlikCommunity Tip: How to get answers to your post?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 May 2016 03:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-over-Month-Calculation-for-Expressions/m-p/1162212#M915183</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-29T03:37:43Z</dc:date>
    </item>
  </channel>
</rss>

