<?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 Comparing Last month and Current Month values Through Straight Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-Last-month-and-Current-Month-values-Through-Straight/m-p/1315464#M408487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qliksupport Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to compare last month figures with current month figures and able to achieve it using the below formula...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-1305146-169876/Straight_Table_Last_Curr_Month.png"&gt;&lt;IMG alt="Straight_Table_Last_Curr_Month.png" class="jive-image image-1" height="293" src="https://community.qlik.com/legacyfs/online/170355_Straight_Table_Last_Curr_Month.png" width="522" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Month(SNAPSHOT_PERIOD) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(MonthStart(SNAPSHOT_PERIOD), 'MMM-YYYY') as [Month Year],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(SNAPSHOT_PERIOD) as Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From a table...&lt;/P&gt;&lt;P&gt;&amp;amp; &lt;/P&gt;&lt;P&gt;set vMaxMonthYear = =Date(max([Month Year]), 'MMM-YYYY');&lt;/P&gt;&lt;P&gt;set vPriorMonthYear = =Date(addmonths(max([Month Year]), -1), 'MMM-YYYY');&lt;/P&gt;&lt;P&gt;let vMaxDate&amp;nbsp; = '=max(Date)';&lt;/P&gt;&lt;P&gt;let vMaxDay&amp;nbsp;&amp;nbsp; = '=day(vMaxDate)';&lt;/P&gt;&lt;P&gt;let vMaxMonth&amp;nbsp; = '=month(vMaxDate)';&lt;/P&gt;&lt;P&gt;let vMaxYear&amp;nbsp; = '=Year(vMaxDate)';&lt;/P&gt;&lt;P&gt;let vPriorMonth&amp;nbsp; = '=month(addmonths(max(Date),-1))';&lt;/P&gt;&lt;P&gt;let vPriorYear&amp;nbsp; = '=vMaxYear-1';&lt;/P&gt;&lt;P&gt;let vPriorYearDate = '=date(addyears(max(Date),-1),' &amp;amp; chr(39) &amp;amp; 'DD MMM YYYY' &amp;amp; chr(39) &amp;amp; ')'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created above variables...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last month expression :: &lt;/P&gt;&lt;P&gt;='Last Month Fact_Resrv_1&lt;/P&gt;&lt;P&gt;$(vPriorMonthYear)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Month Expression :: &lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Month Year]={'$(vMaxMonthYear)'},Year=,Month=,Date=&amp;gt;}CHNL_FACT_RESRV_1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But however, when I use MonthYear as dimension in the same straight table, the result is as below...&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-1305146-169890/Straight_Table_Last_Curr_With_Month.png"&gt;&lt;IMG alt="Straight_Table_Last_Curr_With_Month.png" class="jive-image image-2" height="460" src="https://community.qlik.com/legacyfs/online/170356_Straight_Table_Last_Curr_With_Month.png" width="819" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to display same as first image even after adding MonthYear as dimension in straight table...?&lt;/P&gt;&lt;P&gt;If possible in any other chart(pivot table), please give the formulas for current &amp;amp; Previous month expressions...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jul 2017 07:49:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-07-17T07:49:05Z</dc:date>
    <item>
      <title>Comparing Last month and Current Month values Through Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Last-month-and-Current-Month-values-Through-Straight/m-p/1315464#M408487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qliksupport Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to compare last month figures with current month figures and able to achieve it using the below formula...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-1305146-169876/Straight_Table_Last_Curr_Month.png"&gt;&lt;IMG alt="Straight_Table_Last_Curr_Month.png" class="jive-image image-1" height="293" src="https://community.qlik.com/legacyfs/online/170355_Straight_Table_Last_Curr_Month.png" width="522" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Month(SNAPSHOT_PERIOD) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(MonthStart(SNAPSHOT_PERIOD), 'MMM-YYYY') as [Month Year],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(SNAPSHOT_PERIOD) as Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From a table...&lt;/P&gt;&lt;P&gt;&amp;amp; &lt;/P&gt;&lt;P&gt;set vMaxMonthYear = =Date(max([Month Year]), 'MMM-YYYY');&lt;/P&gt;&lt;P&gt;set vPriorMonthYear = =Date(addmonths(max([Month Year]), -1), 'MMM-YYYY');&lt;/P&gt;&lt;P&gt;let vMaxDate&amp;nbsp; = '=max(Date)';&lt;/P&gt;&lt;P&gt;let vMaxDay&amp;nbsp;&amp;nbsp; = '=day(vMaxDate)';&lt;/P&gt;&lt;P&gt;let vMaxMonth&amp;nbsp; = '=month(vMaxDate)';&lt;/P&gt;&lt;P&gt;let vMaxYear&amp;nbsp; = '=Year(vMaxDate)';&lt;/P&gt;&lt;P&gt;let vPriorMonth&amp;nbsp; = '=month(addmonths(max(Date),-1))';&lt;/P&gt;&lt;P&gt;let vPriorYear&amp;nbsp; = '=vMaxYear-1';&lt;/P&gt;&lt;P&gt;let vPriorYearDate = '=date(addyears(max(Date),-1),' &amp;amp; chr(39) &amp;amp; 'DD MMM YYYY' &amp;amp; chr(39) &amp;amp; ')'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created above variables...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last month expression :: &lt;/P&gt;&lt;P&gt;='Last Month Fact_Resrv_1&lt;/P&gt;&lt;P&gt;$(vPriorMonthYear)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Month Expression :: &lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Month Year]={'$(vMaxMonthYear)'},Year=,Month=,Date=&amp;gt;}CHNL_FACT_RESRV_1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But however, when I use MonthYear as dimension in the same straight table, the result is as below...&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-1305146-169890/Straight_Table_Last_Curr_With_Month.png"&gt;&lt;IMG alt="Straight_Table_Last_Curr_With_Month.png" class="jive-image image-2" height="460" src="https://community.qlik.com/legacyfs/online/170356_Straight_Table_Last_Curr_With_Month.png" width="819" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to display same as first image even after adding MonthYear as dimension in straight table...?&lt;/P&gt;&lt;P&gt;If possible in any other chart(pivot table), please give the formulas for current &amp;amp; Previous month expressions...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 07:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Last-month-and-Current-Month-values-Through-Straight/m-p/1315464#M408487</guid>
      <dc:creator />
      <dc:date>2017-07-17T07:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Last month and Current Month values Through Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Last-month-and-Current-Month-values-Through-Straight/m-p/1315465#M408488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is few ways to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use the&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8242"&gt;Missing Manual - Above() and Below()&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 12:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Last-month-and-Current-Month-values-Through-Straight/m-p/1315465#M408488</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-17T12:01:07Z</dc:date>
    </item>
  </channel>
</rss>

