<?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 Month-over-Month variance table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Month-over-Month-variance-table/m-p/2121785#M1224606</link>
    <description>&lt;P&gt;Hi, I am trying to create a table chart that has months with 'MMM' format as dimension and Total Sales, Sales Last Month and Variance as expressions. The desired result will look something like this:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;Month&lt;/TD&gt;
&lt;TD width="25%"&gt;Total Sales&lt;/TD&gt;
&lt;TD width="25%"&gt;Sales Last Month&lt;/TD&gt;
&lt;TD width="25%"&gt;Variance&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;Jan&lt;/TD&gt;
&lt;TD width="25%"&gt;100&lt;/TD&gt;
&lt;TD width="25%"&gt;-&lt;/TD&gt;
&lt;TD width="25%"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;Feb&lt;/TD&gt;
&lt;TD width="25%"&gt;150&lt;/TD&gt;
&lt;TD width="25%"&gt;100&lt;/TD&gt;
&lt;TD width="25%"&gt;50&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;Mar&lt;/TD&gt;
&lt;TD width="25%"&gt;120&lt;/TD&gt;
&lt;TD width="25%"&gt;150&lt;/TD&gt;
&lt;TD width="25%"&gt;-30&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;Apr&lt;/TD&gt;
&lt;TD width="25%"&gt;100&lt;/TD&gt;
&lt;TD width="25%"&gt;120&lt;/TD&gt;
&lt;TD width="25%"&gt;-20&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried using Above() function for this case, it worked but is very limited in flexibility. The table will not worked if users made a selection like month. I have tried with expressions like:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SUM({$&amp;lt;Month = {"$(=Max(Month-1)"}&amp;gt;} sales)&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;for the 'Sales Last Month' expression but instead of displaying previous month's sales, it just returns me the same values as in the 'Total Sales' column. I have looked at a lot of posts in this community but still can't find a solution for it. Can I know how can I create a table as above without using Above() function so it can still display the correct values if users made selections on month? Or is that possible?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 05:53:15 GMT</pubDate>
    <dc:creator>poklegoguy</dc:creator>
    <dc:date>2023-09-25T05:53:15Z</dc:date>
    <item>
      <title>Month-over-Month variance table</title>
      <link>https://community.qlik.com/t5/QlikView/Month-over-Month-variance-table/m-p/2121785#M1224606</link>
      <description>&lt;P&gt;Hi, I am trying to create a table chart that has months with 'MMM' format as dimension and Total Sales, Sales Last Month and Variance as expressions. The desired result will look something like this:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;Month&lt;/TD&gt;
&lt;TD width="25%"&gt;Total Sales&lt;/TD&gt;
&lt;TD width="25%"&gt;Sales Last Month&lt;/TD&gt;
&lt;TD width="25%"&gt;Variance&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;Jan&lt;/TD&gt;
&lt;TD width="25%"&gt;100&lt;/TD&gt;
&lt;TD width="25%"&gt;-&lt;/TD&gt;
&lt;TD width="25%"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;Feb&lt;/TD&gt;
&lt;TD width="25%"&gt;150&lt;/TD&gt;
&lt;TD width="25%"&gt;100&lt;/TD&gt;
&lt;TD width="25%"&gt;50&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;Mar&lt;/TD&gt;
&lt;TD width="25%"&gt;120&lt;/TD&gt;
&lt;TD width="25%"&gt;150&lt;/TD&gt;
&lt;TD width="25%"&gt;-30&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%"&gt;Apr&lt;/TD&gt;
&lt;TD width="25%"&gt;100&lt;/TD&gt;
&lt;TD width="25%"&gt;120&lt;/TD&gt;
&lt;TD width="25%"&gt;-20&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried using Above() function for this case, it worked but is very limited in flexibility. The table will not worked if users made a selection like month. I have tried with expressions like:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SUM({$&amp;lt;Month = {"$(=Max(Month-1)"}&amp;gt;} sales)&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;for the 'Sales Last Month' expression but instead of displaying previous month's sales, it just returns me the same values as in the 'Total Sales' column. I have looked at a lot of posts in this community but still can't find a solution for it. Can I know how can I create a table as above without using Above() function so it can still display the correct values if users made selections on month? Or is that possible?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 05:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-over-Month-variance-table/m-p/2121785#M1224606</guid>
      <dc:creator>poklegoguy</dc:creator>
      <dc:date>2023-09-25T05:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Month-over-Month variance table</title>
      <link>https://community.qlik.com/t5/QlikView/Month-over-Month-variance-table/m-p/2123060#M1224615</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/247676"&gt;@poklegoguy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If you don't want to use &lt;STRONG&gt;Above()&lt;/STRONG&gt;, you can try to create a new Sales field with &lt;STRONG&gt;Previous()&lt;/STRONG&gt; function in your script (be aware to apply the good sorting for your data).&lt;/P&gt;
&lt;P&gt;For the filter behavior, you can disable the effect of month filter on your calculations like this :&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;SUM({&amp;lt;Month = &amp;gt;} sales)&amp;nbsp; OR&amp;nbsp;SUM({&amp;lt;Month&amp;gt;} sales)&amp;nbsp; &lt;/STRONG&gt;(the equal sign is not mandatory).&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 14:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Month-over-Month-variance-table/m-p/2123060#M1224615</guid>
      <dc:creator>sbaro_bd</dc:creator>
      <dc:date>2023-09-27T14:22:22Z</dc:date>
    </item>
  </channel>
</rss>

