<?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: Set analysis expression for 13 month trend. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-13-month-trend/m-p/437255#M488293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi attach isnew version &lt;/P&gt;&lt;P&gt;hope it helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2013 09:03:57 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2013-01-23T09:03:57Z</dc:date>
    <item>
      <title>Set analysis expression for 13 month trend.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-13-month-trend/m-p/437252#M488289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to write a &lt;STRONG&gt;set analysis&lt;/STRONG&gt; expression for the below condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Difference of Amount between current month and previous month for their respective bands. And this difference has to be calculated across 13 months&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Lets say, I have data from Nov 2011 to Nov 2012. When I select a particular month(say Aug 2012), the expression should return difference in Amount for Aug 2012(current month) and july 2012(previous month). And when no specific selections are made, I should get a graph for all 13 months showing differences of amount respective to their previous month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started out writing this expression, but it would give result only for Nov 2012 and Oct 2012(since that is the current and previous month in my data).&lt;/P&gt;&lt;P&gt; How do i get it for the remaining months as well? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;[Month Year] = {$(=Addmonths(max(MonthYear),0))}, Band ={'A'}&amp;gt;}Amount) - sum(({&amp;lt;[Month Year] = {$(=Addmonths(max(MonthYear),-1))}, Band ={'B'}&amp;gt;}Amount).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Month Year is in MMM-YYYY format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;RK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jan 2013 11:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-13-month-trend/m-p/437252#M488289</guid>
      <dc:creator />
      <dc:date>2013-01-20T11:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression for 13 month trend.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-13-month-trend/m-p/437253#M488291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi attach is an example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jan 2013 12:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-13-month-trend/m-p/437253#M488291</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2013-01-20T12:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression for 13 month trend.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-13-month-trend/m-p/437254#M488292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Iiron baram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot! That is what I was looking for. I might need some further help though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I got around the logic but would be great if you could explain in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. There is an extra value for Month in x-axis that is showing up. After 13 months,it shows random value for amount&amp;nbsp; and month as ' - ' . Can you explain that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. What if I want to find % of Month on Month trend i.e., &lt;/P&gt;&lt;P&gt;(current month Amount - previous month amount)/ previous month amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 12:02:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-13-month-trend/m-p/437254#M488292</guid>
      <dc:creator />
      <dc:date>2013-01-21T12:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression for 13 month trend.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-13-month-trend/m-p/437255#M488293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi attach isnew version &lt;/P&gt;&lt;P&gt;hope it helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 09:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-13-month-trend/m-p/437255#M488293</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2013-01-23T09:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis expression for 13 month trend.</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-13-month-trend/m-p/437256#M488294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! That worked !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 10:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-expression-for-13-month-trend/m-p/437256#M488294</guid>
      <dc:creator />
      <dc:date>2013-01-24T10:15:44Z</dc:date>
    </item>
  </channel>
</rss>

