<?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 Expression with addmonths in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-with-addmonths/m-p/1277479#M516892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Hello&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I have a Qlikviewdocument&amp;nbsp; with different sheets with different charts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;In one chart I use&amp;nbsp; the expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black; mso-ansi-language: EN-GB;"&gt;= Sum({&amp;lt;YearMonth ={"&amp;gt;=$(=date(addmonths(date#('$(sMonthYear)','MMM-YYYY'),-11),'MMM-YYYY')) &amp;lt;=$(=date#('$(sMonthYear)','MMM-YYYY'))"}, Year=,Month=&amp;gt;} ActualAmount)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;This is the first column in the chart, represented by a mini&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; line-height: 115%; font-family: 'Arial','sans-serif'; color: black; mso-ansi-language: EN-GB;"&gt; Chart. &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;The mini chart should show the Actual Amount of the last 12 months, this worked in 2016 but now in 2017 it is empty (see below)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;IMG alt="Year 2016.png" class="jive-image image-1" src="/legacyfs/online/153148_Year 2016.png" style="width: 620px; height: 201px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;IMG alt="Year 2017.png" class="jive-image image-2" src="/legacyfs/online/153158_Year 2017.png" style="width: 620px; height: 201px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;YearMonth is created in the calendar/script and can be from Jan-2014 till Dez-2017. When I selected 2017 as Year the&amp;nbsp; YearMonth-table shows Jan-2017 – Dez-2017. sMonthYear is at the moment&amp;nbsp; Feb-2017 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I have added two jpg files (screen shots of the Qlikview Document) with more information.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I hope someone can tell me why the expression doesn’t work in 2017 and what could be the solution&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Thanks in advance &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Court&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2017 10:21:07 GMT</pubDate>
    <dc:creator>pacoli2013</dc:creator>
    <dc:date>2017-02-15T10:21:07Z</dc:date>
    <item>
      <title>Expression with addmonths</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-addmonths/m-p/1277479#M516892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Hello&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I have a Qlikviewdocument&amp;nbsp; with different sheets with different charts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;In one chart I use&amp;nbsp; the expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black; mso-ansi-language: EN-GB;"&gt;= Sum({&amp;lt;YearMonth ={"&amp;gt;=$(=date(addmonths(date#('$(sMonthYear)','MMM-YYYY'),-11),'MMM-YYYY')) &amp;lt;=$(=date#('$(sMonthYear)','MMM-YYYY'))"}, Year=,Month=&amp;gt;} ActualAmount)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;This is the first column in the chart, represented by a mini&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 9.0pt; line-height: 115%; font-family: 'Arial','sans-serif'; color: black; mso-ansi-language: EN-GB;"&gt; Chart. &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;The mini chart should show the Actual Amount of the last 12 months, this worked in 2016 but now in 2017 it is empty (see below)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;IMG alt="Year 2016.png" class="jive-image image-1" src="/legacyfs/online/153148_Year 2016.png" style="width: 620px; height: 201px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;IMG alt="Year 2017.png" class="jive-image image-2" src="/legacyfs/online/153158_Year 2017.png" style="width: 620px; height: 201px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;YearMonth is created in the calendar/script and can be from Jan-2014 till Dez-2017. When I selected 2017 as Year the&amp;nbsp; YearMonth-table shows Jan-2017 – Dez-2017. sMonthYear is at the moment&amp;nbsp; Feb-2017 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I have added two jpg files (screen shots of the Qlikview Document) with more information.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I hope someone can tell me why the expression doesn’t work in 2017 and what could be the solution&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Thanks in advance &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Court&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 10:21:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-addmonths/m-p/1277479#M516892</guid>
      <dc:creator>pacoli2013</dc:creator>
      <dc:date>2017-02-15T10:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Expression with addmonths</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-with-addmonths/m-p/1277480#M516893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This issue is solved. Variables and other settings are loaded in every Qlikview document by a txt-file. A colleague has this txt file customized for his qlikview document without looking to other documents. Thereby certain variables (like sMonthYear) were no longer filled. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advisable, therefore is: always check the impact of changes on other Qlikview documents before making adjustments in common files (like a txt-file we use) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: we use a txt-file so every Qlikview document has the same settings (like colours&amp;nbsp; etc).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 07:13:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-with-addmonths/m-p/1277480#M516893</guid>
      <dc:creator>pacoli2013</dc:creator>
      <dc:date>2017-02-20T07:13:30Z</dc:date>
    </item>
  </channel>
</rss>

