<?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: Displaying last 12 months trend in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526143#M1128764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anushree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;yourDateField={'&amp;gt;=$(&lt;STRONG&gt;Vrolling12&lt;/STRONG&gt;)&amp;lt;=$(&lt;STRONG&gt;vMaxDate&lt;/STRONG&gt;)'}&amp;gt;}Sales&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Variables:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Vrolling12&lt;/STRONG&gt;=Date(MonthStart(vMaxDate,-11),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vMaxDate&lt;/STRONG&gt;=Date(max(YourDatefield),'DD/MM/YYYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Dec 2013 05:39:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-26T05:39:54Z</dc:date>
    <item>
      <title>Displaying last 12 months trend</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526141#M1128762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to qlikview i am stuck up with a requirement wherein i must show the data for last 12 months in a chart for which i have been using an expression -&lt;/P&gt;&lt;P&gt;only&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CommonMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=month(AddMonths(date(today()),-1)))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MetricValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) ,only&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CommonMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=month(AddMonths(date(today()),-2)))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MetricValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)......only&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CommonMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=month(AddMonths(date(today()),-12)))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MetricValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But the issue is suppose if the current date(i.e., today's date ) is 01/09/2013(DD/MM/YYYY)current month-9 must point to 01/12/2012 but currently it refers to 01/12/2013.Thus the result is not appreciable.So can anyone let me know how I could get the trend display based on the current month dynamicaly without any hardcoding.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 05:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526141#M1128762</guid>
      <dc:creator />
      <dc:date>2013-12-26T05:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying last 12 months trend</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526142#M1128763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why not you use date fields instead of using month or use Month Year...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;CommonDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;"&amp;gt;=$(=AddMonths(date(today()),-12)) &amp;lt;=$(=date(today()))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;MetricValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be careful while using date fields as, date format of Common date and dates calculated by $ expansions should be same, or either you can create numeric values of all dates and then compare&amp;gt;&amp;gt;&amp;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;SPAN style="color: #575757;"&gt;"Create num(&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.111111640930176px;"&gt;CommonDate&lt;/SPAN&gt;) as &lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 11.111111640930176px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CommonDateNUM"&amp;nbsp; in script only and then use the following expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;CommonDateNUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;"&amp;gt;=$(=num(AddMonths(date(today()),-12))) &amp;lt;=num($(=date(today())))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;MetricValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope it helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Nitin&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 05:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526142#M1128763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-26T05:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying last 12 months trend</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526143#M1128764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anushree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;yourDateField={'&amp;gt;=$(&lt;STRONG&gt;Vrolling12&lt;/STRONG&gt;)&amp;lt;=$(&lt;STRONG&gt;vMaxDate&lt;/STRONG&gt;)'}&amp;gt;}Sales&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Variables:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Vrolling12&lt;/STRONG&gt;=Date(MonthStart(vMaxDate,-11),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vMaxDate&lt;/STRONG&gt;=Date(max(YourDatefield),'DD/MM/YYYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 05:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526143#M1128764</guid>
      <dc:creator />
      <dc:date>2013-12-26T05:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Displaying last 12 months trend</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526144#M1128765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried the approach suggested but when i make a selection on the year, the application does not show any results.Could you Please look into it and let me know how I could ensure the display trend when the year is selected.&lt;/P&gt;&lt;P&gt;For Eg considering the current month and year which is December 2013 I would want to show the data from Nov 2013 to Jan 2012.&lt;/P&gt;&lt;P&gt;I have attached the sample document&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 10:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526144#M1128765</guid>
      <dc:creator />
      <dc:date>2013-12-26T10:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying last 12 months trend</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526145#M1128766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use sum instead of only............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 10:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526145#M1128766</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-26T10:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying last 12 months trend</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526146#M1128767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the attachment that  I have put up, sum function is been used instead of only .But still the values are not getting displayed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anushree Shetty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 10:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526146#M1128767</guid>
      <dc:creator />
      <dc:date>2013-12-26T10:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying last 12 months trend</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526147#M1128768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nirmal,&lt;/P&gt;&lt;P&gt;I tried the approach that you have suggested.But,then the values are not getting displayed.Could you please let me know if there is any other turn around. I have put up a sample attachment in my previous reply Please let me know how i could acheive the requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 10:18:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526147#M1128768</guid>
      <dc:creator />
      <dc:date>2013-12-26T10:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying last 12 months trend</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526148#M1128769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anushree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this expression, it works perfect in my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({1&amp;lt;Date = {"&amp;gt;=$(=MonthStart(Max(Date), -11))&amp;lt;=$(=MonthEnd(Max(Date)))"}&amp;gt;}Data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will work out for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Suresh Rawat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 10:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526148#M1128769</guid>
      <dc:creator>suresh_rawat</dc:creator>
      <dc:date>2013-12-26T10:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Displaying last 12 months trend</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526149#M1128770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anushree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA.... Hope this will help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 10:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526149#M1128770</guid>
      <dc:creator />
      <dc:date>2013-12-26T10:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying last 12 months trend</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526150#M1128771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;HI Nirmal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;i need last 12 months remaining due&amp;nbsp; for trx date can you please write the syntax&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vtrx date is nothing but today date i need to to get last 12 months remaining due can u please write the syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=rangesum(above(Sum(If(TRXDATE&amp;gt;addmonths(vTrxDate,-12) and&amp;nbsp; DATE&amp;gt;vTrxDate and REMAININGDUE)),0,RowNo()))/100000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 10:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526150#M1128771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-09T10:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying last 12 months trend</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526151#M1128772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;i need last 12 months remaining due based on&amp;nbsp; TRXDATE can you please write the syntax&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vtrxdate is&amp;nbsp; today date i need to to get last 12 months remaining due can u please write the syntax..&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if i select vtrxdate as mar2014 ,it has to show from april 2013 to mar 2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=rangesum(above(Sum(If(TRXDATE&amp;gt;addmonths(vTrxDate,-12) and&amp;nbsp; DATE&amp;gt;vTrxDate and REMAININGDUE)),0,RowNo()))/100000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 10:39:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526151#M1128772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-09T10:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying last 12 months trend</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526152#M1128773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anushree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;yourDateField={"&amp;gt;=$(=&lt;STRONG&gt;Vrolling12&lt;/STRONG&gt;)&amp;lt;=$(=&lt;STRONG&gt;vMaxDate&lt;/STRONG&gt;)"}&amp;gt;}Sales&lt;SPAN style="font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Vrolling12&lt;/STRONG&gt;=Date(MonthStart(vMaxDate,-11),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vMaxDate&lt;/STRONG&gt;=Date(max(YourDatefield),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 10:46:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526152#M1128773</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2014-10-09T10:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying last 12 months trend</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526153#M1128774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Hi jyothish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;i need last 12 months remaining due based on&amp;nbsp; TRXDATE can you please write the syntax&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;vtrxdate is&amp;nbsp; today date i need to to get last 12 months remaining due can u please write the syntax..&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;if i select vtrxdate as mar2014 ,it has to show from april 2013 to mar 2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;=rangesum(above(Sum(If(TRXDATE&amp;gt;addmonths(vTrxDate,-12) , REMAININGDUE)),0,RowNo()))/100000&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;i tried asper you said but i am facing some syntax issue can u please help me with syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 11:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-last-12-months-trend/m-p/526153#M1128774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-09T11:18:28Z</dc:date>
    </item>
  </channel>
</rss>

