<?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: Last 12 months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515652#M602197</link>
    <description>&lt;P&gt;But if you store the value as text, then how will you do numeric comparisons (the ones you are looking to do).&lt;/P&gt;&lt;P&gt;I think there is some misunderstanding here. Date is a dual function which can store your value as 201801 and have a numeric value 42918. By not changing it into text, you can use it as a numeric field for set analysis comparison and still show it as 201801.&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;Date(Date#(YWADAT, 'YYYYMMDD'), 'YYYYMM') as PlannedGoodsMovPeriod, 
Date(Date#("0DATE", 'YYYYMMDD'), 'YYYYMM') as ActualGoodsMovPeriod,&lt;/PRE&gt;&lt;P&gt;and YearMonth like this&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;Date(MonthStart(TempDate), 'YYYYMM') as YearMonth,&lt;/PRE&gt;&lt;P&gt;Now try this&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;DOT_STATUS = {'Too Early'}, PlannedGoodsMovPeriod = {"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(YearMonth), -12), 'YYYYMM) &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(YearMonth), 'YYYYMM'))"}&amp;gt;} YCOUNT)&lt;/PRE&gt;</description>
    <pubDate>Mon, 03 Dec 2018 14:38:53 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-12-03T14:38:53Z</dc:date>
    <item>
      <title>Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515581#M602190</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;I need to calculate the last twelve months for the following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DOT_STATUS={'Too Early'},PlannedGoodsMovPeriod={"$(=max(YearMonth))"}&amp;gt;}YCOUNT)&lt;/P&gt;&lt;P&gt;I have tried using addmonths function in the formula, but ii does not work.&lt;/P&gt;&lt;P&gt;Any hint?&lt;/P&gt;&lt;P&gt;Thankns&lt;/P&gt;&lt;P&gt;Edi&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515581#M602190</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2024-11-16T05:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515593#M602191</link>
      <description>You have two different Date related field? PlannedGoodsMovPeriod and YearMonth? and you want to see last 12 months of PlannedGoodsMovPeriod by selecting in YearMonth? How are these two fields connected? What is the format for PlannedGoodsMovPeriod field?</description>
      <pubDate>Mon, 03 Dec 2018 13:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515593#M602191</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-03T13:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515599#M602192</link>
      <description>&lt;P&gt;&lt;SPAN&gt;you want to see last 12 months of PlannedGoodsMovPeriod by selecting in YearMonth?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes. I wanted to sum the field YCOUNT for the last 12 months (i.e YearMonth -12)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Format:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;date(date#(YWADAT,'YYYYMMDD'),'YYYYMM')&amp;amp;''&amp;nbsp; &amp;nbsp; AS PlannedGoodsMovPeriod,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;date(date#("0DATE",'YYYYMMDD'),'YYYYMM')&amp;amp;''&amp;nbsp; &amp;nbsp;AS ActualGoodsMovPeriod,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The field YearMonth was created in the Calendar:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Year(TempDate)&amp;amp;date(TempDate,'MM') As YearMonth,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Edi&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 13:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515599#M602192</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2018-12-03T13:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515611#M602193</link>
      <description>Out of curiosity why do you have &amp;amp; '' at end of PlannedGoodsMovPeriod and ActualGoodsMovPeriod? That converts a date field into text, is that something you really want to do for reason not mentioned in this thread?</description>
      <pubDate>Mon, 03 Dec 2018 14:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515611#M602193</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-03T14:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515621#M602194</link>
      <description>&lt;P&gt;because it was the only solution I could found to calculate correctly the following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;+sum({&amp;lt;DOT_STATUS={"Too late"}, ActualGoodsMovPeriod={"&amp;gt;$(=max(YearMonth))"}, PlannedGoodsMovPeriod={"&amp;lt;$(=max(YearMonth))"}, NotDeliveredYet={0} &amp;gt;} YCOUNT)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is important to mention that the calendar is not connected with the data model.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 14:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515621#M602194</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2018-12-03T14:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515628#M602195</link>
      <description>&lt;P&gt;But why are you adding the part in red below?&lt;/P&gt;&lt;PRE&gt;date(date#(YWADAT,'YYYYMMDD'),'YYYYMM')&lt;FONT size="6" color="#FF0000"&gt;&amp;amp;''&lt;/FONT&gt;    AS PlannedGoodsMovPeriod, &lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Dec 2018 14:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515628#M602195</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-03T14:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515638#M602196</link>
      <description>&lt;P&gt;because I&amp;nbsp; need "201801" as a text&lt;/P&gt;&lt;P&gt;not as a number like 42918&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 14:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515638#M602196</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2018-12-03T14:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515652#M602197</link>
      <description>&lt;P&gt;But if you store the value as text, then how will you do numeric comparisons (the ones you are looking to do).&lt;/P&gt;&lt;P&gt;I think there is some misunderstanding here. Date is a dual function which can store your value as 201801 and have a numeric value 42918. By not changing it into text, you can use it as a numeric field for set analysis comparison and still show it as 201801.&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;Date(Date#(YWADAT, 'YYYYMMDD'), 'YYYYMM') as PlannedGoodsMovPeriod, 
Date(Date#("0DATE", 'YYYYMMDD'), 'YYYYMM') as ActualGoodsMovPeriod,&lt;/PRE&gt;&lt;P&gt;and YearMonth like this&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;Date(MonthStart(TempDate), 'YYYYMM') as YearMonth,&lt;/PRE&gt;&lt;P&gt;Now try this&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;DOT_STATUS = {'Too Early'}, PlannedGoodsMovPeriod = {"$(='&amp;gt;=' &amp;amp; Date(AddMonths(Max(YearMonth), -12), 'YYYYMM) &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(YearMonth), 'YYYYMM'))"}&amp;gt;} YCOUNT)&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Dec 2018 14:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515652#M602197</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-03T14:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515683#M602198</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can determine if one string as number is smaller than another one&lt;/P&gt;&lt;P&gt;201810 is greater than 201809&lt;/P&gt;&lt;P&gt;201810 still can be interpreted as number&lt;/P&gt;&lt;P&gt;and you have 1 number for 1 month&lt;/P&gt;&lt;P&gt;with your solution proposed, we will have a PlannedGoodsMov and ActualGoodsMov as an specific day and not a month and I need just sth like 201701..&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 15:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515683#M602198</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2018-12-03T15:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515690#M602199</link>
      <description>&lt;P&gt;You are right, and to fix that... change the code to this&lt;/P&gt;&lt;PRE&gt;Date(&lt;FONT color="#FF0000"&gt;MonthStart&lt;/FONT&gt;(Date#(YWADAT, 'YYYYMMDD')), 'YYYYMM') as PlannedGoodsMovPeriod, 
Date(&lt;FONT color="#FF0000"&gt;MonthStart&lt;/FONT&gt;(Date#("0DATE", 'YYYYMMDD')), 'YYYYMM') as ActualGoodsMovPeriod,&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Dec 2018 15:10:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515690#M602199</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-03T15:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515719#M602200</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why I should change the code if it works? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;date(date#(YWADAT,'YYYYMMDD'),'YYYYMM')&amp;amp;'' AS PlannedGoodsMovPeriod,&lt;BR /&gt;date(date#("0DATE",'YYYYMMDD'),'YYYYMM')&amp;amp;'' AS ActualGoodsMovPeriod,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what I need now is to calculate in this formula the last 12 months&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DOT_STATUS={'Too Early'},PlannedGoodsMovPeriod={"$(=max(YearMonth))"}&amp;gt;}YCOUNT)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edi&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 15:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515719#M602200</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2018-12-03T15:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515740#M602201</link>
      <description>&lt;P&gt;I ma trying to do sth like this, but it does not work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DOT_STATUS = {'Too Early'}, PlannedGoodsMovPeriod = {$(=date(addmonths(date(date#(max(YearMonth),'YYYYMM')),-12),'YYYYMM')&amp;amp;''}&amp;gt;} YCOUNT)&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 16:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515740#M602201</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2018-12-03T16:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515742#M602202</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/55910"&gt;@Zaga_69&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why I should change the code if it works? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;date(date#(YWADAT,'YYYYMMDD'),'YYYYMM')&amp;amp;'' AS PlannedGoodsMovPeriod,&lt;BR /&gt;date(date#("0DATE",'YYYYMMDD'),'YYYYMM')&amp;amp;'' AS ActualGoodsMovPeriod,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;because I am suggesting you to use the best practices... read here on some important links&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/QlikView-Date-fields/ta-p/1484786" target="_blank"&gt;QlikView Date fields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Get-the-Dates-Right/ba-p/1476178" target="_blank"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Why-don-t-my-dates-work/ba-p/1465849" target="_blank"&gt;Why don't my dates work?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511" target="_blank"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/55910"&gt;@Zaga_69&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what I need now is to calculate in this formula the last 12 months&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DOT_STATUS={'Too Early'},PlannedGoodsMovPeriod={"$(=max(YearMonth))"}&amp;gt;}YCOUNT)&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can't really help unless you stop doing a text to a text comparison, but may be someone else have better ideas &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 16:07:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515742#M602202</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-03T16:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515743#M602203</link>
      <description>Make sense, but again.... I am not sure how you will do this with a text field &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 03 Dec 2018 16:08:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1515743#M602203</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-03T16:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1516298#M602204</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ma trying to use the formula you have suggested, but in somehow it does not work...&lt;/P&gt;&lt;P&gt;Please see attached.&lt;/P&gt;&lt;P&gt;P.S: thank you for all documents you attached...it was quite helpful to understand better how Qlik works with dates&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 14:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1516298#M602204</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2018-12-04T14:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1516306#M602205</link>
      <description>&lt;P&gt;I am not sure I follow the issue just by looking at the image and some highlighting. Would you be able to put in words what is the issue?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 15:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1516306#M602205</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-04T15:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1516312#M602206</link>
      <description>&lt;P&gt;The following formula brings some dates correctly, but in some dates it does not work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;date(MonthStart(Date#(YWADAT,'YYYYYMMDD')), 'YYYYMM') AS PlannedGoodsMovPeriod2,&lt;BR /&gt;date(MonthStart(Date#("0DATE",'YYYYYMMDD')),'YYYYMM') AS ActualGoodsMovPeriod2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example for 20140401 or 20181130 it brings "-".&lt;/P&gt;&lt;P&gt;what I am doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 15:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1516312#M602206</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2018-12-04T15:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1516318#M602207</link>
      <description>&lt;P&gt;I think you have an extra Y in your Date#() function... there should only be 4 YYYY&lt;/P&gt;&lt;PRE&gt;date(MonthStart(Date#(YWADAT,'YYYY&lt;STRIKE&gt;&lt;FONT color="#FF0000"&gt;Y&lt;/FONT&gt;&lt;/STRIKE&gt;MMDD')), 'YYYYMM') AS PlannedGoodsMovPeriod2,
date(MonthStart(Date#("0DATE",'YYYY&lt;STRIKE&gt;&lt;FONT color="#FF0000"&gt;Y&lt;/FONT&gt;&lt;/STRIKE&gt;MMDD')),'YYYYMM') AS ActualGoodsMovPeriod2;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Dec 2018 15:29:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1516318#M602207</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-04T15:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1516351#M602208</link>
      <description>&lt;P&gt;You are right...it was a misspelling mistake &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regarding to my initial question how to calculate the last twelve months I figured out that ii can be solved by the following formula:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DOT_STATUS={'Too Early'},PlannedGoodsMovPeriod={"$(=max(YearMonth)-100)"}&amp;gt;}YCOUNT)&lt;/P&gt;&lt;P&gt;Since Qlik tries 201807 as string or number and if subtract -100 then I would have 201707...&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 16:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1516351#M602208</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2018-12-04T16:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1516356#M602209</link>
      <description>&lt;P&gt;That is great, but again, I wouldn't recommend using Dates like that... but if that is what you are comfortable with... then I wouldn't push you to much... but there are potential issues you might run into in the near future.&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Sunny&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 16:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/1516356#M602209</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-04T16:06:46Z</dc:date>
    </item>
  </channel>
</rss>

