<?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: MAT creation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083837#M918768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Can you please help me in displaying the 12 months on the X-Axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for MAT, if we consider 'MAY' is current month then the x-axis should display data from jun-2015 to may -2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need any additional info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2016 06:38:08 GMT</pubDate>
    <dc:creator>konidena</dc:creator>
    <dc:date>2016-05-11T06:38:08Z</dc:date>
    <item>
      <title>MAT creation</title>
      <link>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083830#M918761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data about &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year, Month, SalesAmount (StdUnits).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, my requirement is, i have to create a line chart&amp;nbsp; with below expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Dimension: Month&lt;/P&gt;&lt;P&gt;2. Expression: Sum(SalesAmount(StdUnits).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question: as per my knowledge , MAT is the last 12 months total. for example, for month Jan 2016 , the MAT is&amp;nbsp; sum of sales from Feb 2015 to Jan 2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just created text with the expression "=sum({&amp;lt;Year={$(=max(Year))},Month={"&amp;lt;=$(=Max(Month))"}&amp;gt;}[Sales Amount (Std Unit)])+sum({&amp;lt;Year={$(=max(Year)-1)},Month={"&amp;gt;$(=Max(Month))"}&amp;gt;}[Sales Amount (Std Unit)])". It is giving the correct total in text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i use the same expression in my chart , it is not showing correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data from 2014 May to 2016 Apr. So, if i select 2016 as my year, then it should show the chart dimension for &lt;/P&gt;&lt;P&gt;Jan, Feb, Mar, Apr. But it is showing all the months from Jan to Dec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually it should show MAT for Jan, Feb, Mar , Apr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in getting this MAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I am using the qlikview personal edition. So, Please copy the code here as i am not able to open the qvw from my personal edition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching the sample data and qvw here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srinivas&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/MAT-creation/m-p/1083830#M918761</guid>
      <dc:creator>konidena</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: MAT creation</title>
      <link>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083831#M918762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why would you want to see only Jan, Feb, Mar and Apr for 2016 if MAT is last 12 months? Would you be able to elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 15:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083831#M918762</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-05T15:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: MAT creation</title>
      <link>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083832#M918763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data in 2016 till April. If I select 2016 as my year then it should show the MAT for 2016 Jan, Feb, Mar, Apr.&lt;/P&gt;&lt;P&gt;If the Year is 2015, then Jan to Dec MAT should show for each month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 01:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083832#M918763</guid>
      <dc:creator>konidena</dc:creator>
      <dc:date>2016-05-06T01:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: MAT creation</title>
      <link>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083833#M918764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check now, I have used the As-OfTable Approach in the chart&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4531"&gt;The As-Of Table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 02:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083833#M918764</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-06T02:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: MAT creation</title>
      <link>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083834#M918765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you tell, Why did you sum the "&amp;gt;Month" expression? if you remove that it will also give the same result..&lt;/P&gt;&lt;P&gt;for 2016, it shows Jan to Apr data.. Look the below screen shot..&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/123731_Capture.JPG" style="height: 313px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 02:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083834#M918765</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-05-06T02:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: MAT creation</title>
      <link>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083835#M918766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I have heard MAT is sum for last 12 months. So for Jan 2016, it would be a sum of all numbers from Feb 2015 till Jan 2016. I think it might be doable using Above function, but I have used the AsOfTable approach above. Can you also check to see if it make sense &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 02:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083835#M918766</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-06T02:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: MAT creation</title>
      <link>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083836#M918767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes sunny. I didn't read the OP properly. Your suggestion makes sense. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 02:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083836#M918767</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-05-06T02:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: MAT creation</title>
      <link>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083837#M918768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Can you please help me in displaying the 12 months on the X-Axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for MAT, if we consider 'MAY' is current month then the x-axis should display data from jun-2015 to may -2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need any additional info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 06:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083837#M918768</guid>
      <dc:creator>konidena</dc:creator>
      <dc:date>2016-05-11T06:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: MAT creation</title>
      <link>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083838#M918769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if the attached is what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression used&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Month, Year, ReportYearMonth = {"$(='&amp;gt;' &amp;amp; Date(AddMonths(Max(ReportYearMonth), -12), 'YYYYMM') &amp;amp; '&amp;lt;=' &amp;amp; Date(AddMonths(Max(ReportYearMonth), 0), 'YYYYMM'))"}, ReportYear, ReportMonth&amp;gt;}[Sales Amount (Std Unit)])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 08:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083838#M918769</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-11T08:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: MAT creation</title>
      <link>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083839#M918770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny for your time .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is creating the correct dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a issue here. I have to calculate Evaluation Index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;evaluation index= current Year market share / Previous Year Market share&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Market share=Sales Amount (Std Unit)/Market Sales (Std Unit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per the above expression you written, we made 'Year' as constant.. It will not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Month, &lt;STRONG&gt;Year&lt;/STRONG&gt;, ReportYearMonth = {"$(='&amp;gt;' &amp;amp; Date(AddMonths(Max(ReportYearMonth), -12), 'YYYYMM') &amp;amp; '&amp;lt;=' &amp;amp; Date(AddMonths(Max(ReportYearMonth), 0), 'YYYYMM'))"}, ReportYear, ReportMonth&amp;gt;}[Sales Amount (Std Unit)])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, while calculating evolution index, i need to have previous year market share as well as current year market share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 16:00:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083839#M918770</guid>
      <dc:creator>konidena</dc:creator>
      <dc:date>2016-05-12T16:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: MAT creation</title>
      <link>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083840#M918771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share an updated sample with the expected output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 16:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083840#M918771</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-12T16:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: MAT creation</title>
      <link>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083841#M918772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached the app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expected Output is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selections:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard Units in (Measure field: The original Field is "Column 1" in data model)&lt;/P&gt;&lt;P&gt;and in TimeInterval, "MAT" should be selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have columns fields in the data&amp;nbsp; as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales Amount (Std Unit)&lt;/P&gt;&lt;P&gt;Market Sales (Std Unit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my calculation for Market Share is : Sales Amount (Std Unit)/Market Sales (Std Unit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Evolution Index Formula is : current Year Market Sale / Previous Year Market Share&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart expectation: X-Axis should display months from Apr 2016 to May 2015 (Data I have till apr 2016)&lt;/P&gt;&lt;P&gt;Y - Axis: It should show the evolution index&amp;nbsp; when MAT is selected as the option in the field "TimeInterval"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have provided the expression for displaying the data from Apr 2016 to May 2015. In that expression, the set analysis is showing the Year as static value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, Evolution Index will be calculated based on the Current Year, and Previous Year. So, it is not possible with static value "Year" in set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you want more info on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srinivas &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 16:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MAT-creation/m-p/1083841#M918772</guid>
      <dc:creator>konidena</dc:creator>
      <dc:date>2016-05-12T16:59:34Z</dc:date>
    </item>
  </channel>
</rss>

