<?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: Working with the function Date# in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964521#M952765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-family: inherit;"&gt;=If&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;([Data do Resultado] &amp;gt;= AddYears(Today(), -1) &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;and &lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;[Data do Resultado] &amp;lt;= Today()&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;MonthName(&lt;/SPAN&gt;[Data do Resultado]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Nov 2015 15:38:13 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-11-23T15:38:13Z</dc:date>
    <item>
      <title>Working with the function Date#</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964510#M952754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with dates on QlikView and i am trying to display data of the last 12 months from today in a bar chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data base has a field called "Data do Resultado", where there is a rule in excel to&amp;nbsp; convert the date to the following format "MMM/YYYY", as you can see below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="date.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106435_date.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Resultado.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/106439_Resultado.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my script i have created the Date like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; SET &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;DateFormat&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;='MMM/YYYY'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Date(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Data do Resultado]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, 'MMM/YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Data do Resultado]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Data do Resultado]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Data do Resultado]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In my bar chart where i have to show only the last 12 months, i have create a calculated dimension with the below expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Data do Resultado]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(),-12),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Month]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,'MMM/YYYY')) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression works fine, but it only displays the Months:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="kpis.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/106444_kpis.JPG" style="width: 620px; height: 202px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to display the Date as Month/Year, so i changed the calculated dimension as follow:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Data do Resultado]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(),-12),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;[Data do Resultado]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,'MMM/YYYY')) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But with this expression it doesn´t show the last 12 months, but all months of my data base, so i have a chart with large data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="kpis.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/106445_kpis.JPG" style="width: 620px; height: 195px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Anyone could help me to solve that??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 13:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964510#M952754</guid>
      <dc:creator />
      <dc:date>2015-11-23T13:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Working with the function Date#</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964511#M952755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure, but try this may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;=If&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-family: arial, helvetica, sans-serif;"&gt;([Data do Resultado] &amp;gt;= AddYears(Today(), -1) &lt;SPAN style="color: #ff0000;"&gt;and &lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;[Data do Resultado] &amp;lt;= Today()&lt;/STRONG&gt;, [Data do Resultado]&lt;/STRONG&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 13:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964511#M952755</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-23T13:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Working with the function Date#</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964512#M952756</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;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;Your expression display data from the current Month and current Year only, take a look:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Nov.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106446_Nov.JPG" style="width: 620px; height: 247px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 13:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964512#M952756</guid>
      <dc:creator />
      <dc:date>2015-11-23T13:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Working with the function Date#</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964513#M952757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you change AddMonths to AddYears? -&amp;gt; &lt;STRONG style="font-size: 13px;"&gt;AddYears(Today(), -1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px;"&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=If&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px;"&gt;([Data do Resultado] &amp;gt;= AddYears(Today(), -1) &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;and &lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;[Data do Resultado] &amp;lt;= Today()&lt;/STRONG&gt;, [Data do Resultado]&lt;/STRONG&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 13:37:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964513#M952757</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-23T13:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Working with the function Date#</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964514#M952758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also try,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;[Data do Resultado]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;(),-12) and &lt;SPAN style="color: #800000;"&gt;[Data do Resultado]&amp;lt;= date(today(),'MMM/YYYY'),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;[Data do Resultado]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 13:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964514#M952758</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-11-23T13:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Working with the function Date#</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964515#M952759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Sunny, i changed AddMonths to AddYears&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 13:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964515#M952759</guid>
      <dc:creator />
      <dc:date>2015-11-23T13:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Working with the function Date#</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964516#M952760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two things to check?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Do you have data for the period between Nov-14 till Oct-15?&lt;/P&gt;&lt;P&gt;2) Have you made selections which has removed any data you might have for Nov-14 till Oct-15?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 13:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964516#M952760</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-23T13:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Working with the function Date#</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964517#M952761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;You should modify your expression and add a set analyses: {&amp;lt;[Data do Resultado]={"&amp;gt;=$(=AddMonths(today(),-12))"}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Exemple: sum({&amp;lt;[Data do Resultado]={"&amp;gt;=$(=AddMonths(today(),-12))"}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;and for your dimension you can simply use the function: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Month([Data do Resultado])&amp;amp;'/'&amp;amp;Year([Data do Resultado])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;without any filter as you set analyses will do it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial black,avant garde;"&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Hope this works&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 13:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964517#M952761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-23T13:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Working with the function Date#</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964518#M952762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;You should modify your expression and add a set analyses: {&amp;lt;[Data do Resultado]={"&amp;gt;=$(=AddMonths(today(),-12))"}&amp;gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Exemple: sum({&amp;lt;[Data do Resultado]={"&amp;gt;=$(=AddMonths(today(),-12))"}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;and for your dimension you can simply use the function: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Month([Data do Resultado])&amp;amp;'/'&amp;amp;Year([Data do Resultado])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;without any filter as you set analyses will do it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Hope this works&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 13:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964518#M952762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-23T13:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Working with the function Date#</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964519#M952763</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;1 : You could set your dimension as i&lt;SPAN style="font-size: 10pt; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #800000;"&gt;[Data do Resultado]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #0000ff;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #0000ff;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;(),-12) and &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #800000;"&gt;[Data do Resultado]&amp;lt;= date(today(),'MMM/YYYY'),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #800000;"&gt;Month(&lt;SPAN style="color: #800000; font-size: 13.3333px;"&gt;[Data do Resultado]&lt;/SPAN&gt;)&amp;amp;'-'&amp;amp;Year(&lt;SPAN style="color: #800000; font-size: 13.3333px;"&gt;[Data do Resultado]&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; 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;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 : You could use a master calendar with Period ID in your data model and use a set analysis in your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; - You'll get every period an ID as yearmonth1 = 1 and yearmonth13 = 13 in your data model,&lt;/P&gt;&lt;P&gt; - and your expression would be as sum( {&amp;lt;PeriodID={"&amp;gt;=$(=max(PeriodID)-12)"}&amp;gt;}&amp;nbsp; #valuefield)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your dimension would be YearMonth of master calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 13:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964519#M952763</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2015-11-23T13:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Working with the function Date#</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964520#M952764</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;&lt;/P&gt;&lt;P&gt;You were right, i forgot to check if there was data for the period between Nov/2014 till Oct/2015.&lt;/P&gt;&lt;P&gt;I input data into this period, than cleared all filters, and thats the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;IMG alt="meses.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/106458_meses.JPG" style="width: 620px; height: 195px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, each month is duplicated.&lt;/P&gt;&lt;P&gt;Do you know why this is happening?&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, 23 Nov 2015 15:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964520#M952764</guid>
      <dc:creator />
      <dc:date>2015-11-23T15:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Working with the function Date#</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964521#M952765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-family: inherit;"&gt;=If&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;([Data do Resultado] &amp;gt;= AddYears(Today(), -1) &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;and &lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;[Data do Resultado] &amp;lt;= Today()&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d;"&gt;,&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;MonthName(&lt;/SPAN&gt;[Data do Resultado]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 15:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964521#M952765</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-23T15:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Working with the function Date#</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964522#M952766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rodrigo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I faced a situation like yours, and I just created an information about month/yyyy with this instruction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Data do Resultado]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Data do Resultado]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; 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: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Data do Resultado]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) &amp;amp; '/' &amp;amp; &lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Data do Resultado]&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Márcio&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 16:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964522#M952766</guid>
      <dc:creator>Marcio_Campestrini</dc:creator>
      <dc:date>2015-11-23T16:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Working with the function Date#</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964523#M952767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rodrigo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why don't you use the dimension limit (limited to 12 months) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 16:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-the-function-Date/m-p/964523#M952767</guid>
      <dc:creator />
      <dc:date>2015-11-23T16:13:27Z</dc:date>
    </item>
  </channel>
</rss>

