<?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 Last 12 months Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840964#M295540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a date field as 2015-04-01 for every month. And also Year and Month field created from the Date field.&lt;/P&gt;&lt;P&gt;Now there is a need to display the sum(sales) for last 12 months. I am trying to create the expression to limit the months from last year present month to this year month(Today()) , but its not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be great if I can get some help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Jun 2015 15:10:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-07T15:10:20Z</dc:date>
    <item>
      <title>Last 12 months Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840964#M295540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a date field as 2015-04-01 for every month. And also Year and Month field created from the Date field.&lt;/P&gt;&lt;P&gt;Now there is a need to display the sum(sales) for last 12 months. I am trying to create the expression to limit the months from last year present month to this year month(Today()) , but its not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be great if I can get some help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jun 2015 15:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840964#M295540</guid>
      <dc:creator />
      <dc:date>2015-06-07T15:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840965#M295541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;sum({&amp;lt;yourdatefield={'&amp;gt;=addmonths(monthstart(today()),-12)&amp;lt;=monthstart(today()'}&amp;gt;}sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jun 2015 15:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840965#M295541</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-07T15:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840966#M295542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its saying Nothing to Display. I have tried without any Dimension also and With month as the dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jun 2015 15:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840966#M295542</guid>
      <dc:creator />
      <dc:date>2015-06-07T15:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840967#M295543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how the data Looks like if you define a TextBox with Expression =today()?&lt;/P&gt;&lt;P&gt;also try my Expression in a TextBox, does it Show No Data? Are there any&lt;/P&gt;&lt;P&gt;selections? can you clear them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jun 2015 15:27:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840967#M295543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-07T15:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840968#M295544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The today() expr is showing the date as 7/6/2015 which is different from my format. However your expression is showing 0.00 without any selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jun 2015 15:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840968#M295544</guid>
      <dc:creator />
      <dc:date>2015-06-07T15:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840969#M295545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the dateformat must be identical.&lt;/P&gt;&lt;P&gt; if today is showing D/M/YYYY and your datefield Shows YYYY-MM-DD you Need to convert the Format.&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;sum({&amp;lt;yourdatefield={'&amp;gt;=date(addmonths(monthstart(today()),-12),'YYYY-MM-DD')&amp;lt;=date(monthstart(today(),'YYYY-MM-DD')'}&amp;gt;}sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jun 2015 15:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840969#M295545</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-07T15:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840970#M295546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expr is giving error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jun 2015 15:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840970#M295546</guid>
      <dc:creator />
      <dc:date>2015-06-07T15:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840971#M295547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rudolf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created an extra date field with the same format. But still its not showing any data in the chart. The same msg of nothing to Display is coming.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jun 2015 16:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840971#M295547</guid>
      <dc:creator />
      <dc:date>2015-06-07T16:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840972#M295548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;i tried it within one of my apps&lt;/P&gt;&lt;P&gt;this one works ( i have older data and other dateformat)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=date(addmonths(monthstart(today()),-60),'MM/DD/YYYY'))&amp;lt;=date(monthstart(today()),'MM/DD/YYYY')"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;so if you may try this one it might work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Datefield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=date(addmonths(monthstart(today()),-12),'YYYY-MM-DD'))&amp;lt;=date(monthstart(today()),'YYYY'-MM-DD)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jun 2015 16:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840972#M295548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-07T16:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840973#M295549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rudolf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot.&lt;/P&gt;&lt;P&gt;Great. It worked . Now the only change I will have to do is to make this based on selected month. Means to go 12 months back from the selected month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jun 2015 16:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840973#M295549</guid>
      <dc:creator />
      <dc:date>2015-06-07T16:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840974#M295550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year=, Quarter=, Month=, Week=, Date={‘&amp;gt;=$(=MonthStart(Today(), -11))&amp;lt;=$(=Today())’}&amp;gt;} Sales ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will helpful!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jun 2015 16:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months-Expression/m-p/840974#M295550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-07T16:36:29Z</dc:date>
    </item>
  </channel>
</rss>

