<?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: Adding Months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353654#M415640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached are the sample files&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jun 2017 22:35:23 GMT</pubDate>
    <dc:creator>azmeerrehan</dc:creator>
    <dc:date>2017-06-23T22:35:23Z</dc:date>
    <item>
      <title>Adding Months</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353649#M415635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my current data set&amp;nbsp; I have a date field 'YYYYMM' . The data I have is a MTD (MOnth to date data). So by default I would like to show the cumulative (YTD)&amp;nbsp; for Current year and previous year for comparison.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a variable called vMonthToday = Month(Today()).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have tried the below expression and its not working .&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;CalendarYear = {$(=Max(CalendarYear)-1),&lt;SPAN style="font-size: 13.3333px;"&gt;$(=Max(CalendarYear))&lt;/SPAN&gt;},CalendarMonthName={"&amp;lt;=$(=vMonthToday)"}&amp;gt;}&amp;nbsp; Sales).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desired result &lt;/P&gt;&lt;P&gt;So for example we are in June&amp;nbsp; so I would like to see &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017 /$65896... (Cumulative for Jan Thru Jun for 2017)&lt;/P&gt;&lt;P&gt;2016/ $75365...(&lt;SPAN style="font-size: 13.3333px;"&gt;Cumulative for Jan Thru Jun for 2016)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some one please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 19:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353649#M415635</guid>
      <dc:creator>azmeerrehan</dc:creator>
      <dc:date>2017-06-23T19:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Months</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353650#M415636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({$&amp;lt;CalendarYear = { "&amp;gt;= $(=Max(CalendarYear)-1) &amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(=Max(CalendarYear))" &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;},&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CalendarMonthName = {"&amp;lt;=$(=vMonthToday)"}&amp;gt;}&amp;nbsp; Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 20:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353650#M415636</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-06-23T20:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Months</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353651#M415637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry doesn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 20:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353651#M415637</guid>
      <dc:creator>azmeerrehan</dc:creator>
      <dc:date>2017-06-23T20:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Months</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353652#M415638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a sample file to look into ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 20:22:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353652#M415638</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-06-23T20:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Months</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353653#M415639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how do I attach a file now. I dont get an&amp;nbsp; option the Reply message??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 22:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353653#M415639</guid>
      <dc:creator>azmeerrehan</dc:creator>
      <dc:date>2017-06-23T22:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Months</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353654#M415640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached are the sample files&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 22:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353654#M415640</guid>
      <dc:creator>azmeerrehan</dc:creator>
      <dc:date>2017-06-23T22:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Months</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353655#M415641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just added the sample xls and qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 22:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353655#M415641</guid>
      <dc:creator>azmeerrehan</dc:creator>
      <dc:date>2017-06-23T22:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Months</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353656#M415642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rehan,&lt;/P&gt;&lt;P&gt;see attachment.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167993_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jun 2017 04:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353656#M415642</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-06-24T04:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Months</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353657#M415643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure you are looking for below based on the data you have provided?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2017 /$65896... (Cumulative for Jan Thru Jun for 2017)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2016/ $75365...(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Cumulative for Jan Thru Jun for 2016)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jun 2017 12:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353657#M415643</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-06-24T12:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Months</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353658#M415644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14983099025815823" jivemacro_uid="_14983099025815823"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;Load &lt;/P&gt;
&lt;P&gt;&amp;nbsp; Year, &lt;/P&gt;
&lt;P&gt;&amp;nbsp; Month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; num(month(Date#(Month,'MMM'))) as MonthNumber,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sales &lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&lt;A class="" data-containerid="-1" data-containertype="-1" data-objectid="284479" data-objecttype="13" href="https://community.qlik.com/servlet/JiveServlet/download/2051-265336-1294277-284479/Sample.xlsx"&gt;https://community.qlik.com/servlet/JiveServlet/download/1294277-284479/Sample.xlsx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use as below&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;MonthNumber = {"&amp;lt;=$(=Num(Month(Today())))"}&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jun 2017 13:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Months/m-p/1353658#M415644</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-06-24T13:12:03Z</dc:date>
    </item>
  </channel>
</rss>

