<?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 MAT Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MAT-Calculation/m-p/784231#M1029530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For MAT Calculation, I have written below expression which gives me incorrect results, any changes that can be made in it or some other expression has to be written?&lt;/P&gt;&lt;P&gt;sum({&amp;lt;YEAR={'=$(=only(YEAR)-1)'},MONTH={'&amp;gt;=$(=max(MONTH)-1)&amp;lt;=12'}&amp;gt;}VALUES)+&lt;/P&gt;&lt;P&gt;sum({&amp;lt;YEAR={'=$(=only(YEAR))'},MONTH={'&amp;gt;=1&amp;lt;=$(=max(MONTH))'}&amp;gt;}VALUES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex, on selection of MArch 2014, my expression should calculate data Feb2013 onwards upto March 2014. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-20T18:02:30Z</dc:date>
    <item>
      <title>MAT Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/MAT-Calculation/m-p/784231#M1029530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For MAT Calculation, I have written below expression which gives me incorrect results, any changes that can be made in it or some other expression has to be written?&lt;/P&gt;&lt;P&gt;sum({&amp;lt;YEAR={'=$(=only(YEAR)-1)'},MONTH={'&amp;gt;=$(=max(MONTH)-1)&amp;lt;=12'}&amp;gt;}VALUES)+&lt;/P&gt;&lt;P&gt;sum({&amp;lt;YEAR={'=$(=only(YEAR))'},MONTH={'&amp;gt;=1&amp;lt;=$(=max(MONTH))'}&amp;gt;}VALUES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex, on selection of MArch 2014, my expression should calculate data Feb2013 onwards upto March 2014. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAT-Calculation/m-p/784231#M1029530</guid>
      <dc:creator />
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: MAT Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/MAT-Calculation/m-p/784232#M1029531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi aditi1617,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest creating an MAT field within the calendar table that already specifies which dates are part of each MAT. Then you could simply have those informing your expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm actually going to do this right now, and I'll edit my post with the code in a bit. Although if you just want it done through an expression so it is based off your current selection, then hopefully someone can check your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2015 15:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAT-Calculation/m-p/784232#M1029531</guid>
      <dc:creator>richard_cioci</dc:creator>
      <dc:date>2015-03-15T15:17:11Z</dc:date>
    </item>
  </channel>
</rss>

