<?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: Cumulative Month Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cumulative-Month-Issue/m-p/1351667#M415340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is working for you&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;CalendarYear = {$(=Max(CalendarYear)-1)},CalendarMonthName={"&amp;lt;=$(vMonthToday()"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, YTD may be this?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Sum({&amp;lt;Year=, Month=, Quarter=, Week=, CalendarYear={"&amp;gt;=$(=Num(YearStart(Max(&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CalendarYear&lt;/SPAN&gt;))))&amp;lt;=$(vMonthToday)"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;But, If you ask please share YTD formula for that expression i would write like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Sum({&amp;lt;Year=, Month=, Quarter=, Week=, CalendarYear={"&amp;gt;=$(=Num(YearStart(Max(&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DateField&lt;/SPAN&gt;))))&amp;lt;=$(=Num(Max(DateField)))"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jun 2017 15:55:36 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-06-23T15:55:36Z</dc:date>
    <item>
      <title>Cumulative Month Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Month-Issue/m-p/1351666#M415339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a set analysis expression and my data is a Month to Date Data. I want to calculate the YTD&amp;nbsp; up to the current month my date format is 'YYYYMM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following :&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;CalendarYear = {$(=Max(CalendarYear)-1)},CalendarMonthName={"&amp;lt;=$(vMonthToday()"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where vMonth is my variable defined as Month(Today()).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 15:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Month-Issue/m-p/1351666#M415339</guid>
      <dc:creator>azmeerrehan</dc:creator>
      <dc:date>2017-06-23T15:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Month Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Month-Issue/m-p/1351667#M415340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is working for you&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;CalendarYear = {$(=Max(CalendarYear)-1)},CalendarMonthName={"&amp;lt;=$(vMonthToday()"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, YTD may be this?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Sum({&amp;lt;Year=, Month=, Quarter=, Week=, CalendarYear={"&amp;gt;=$(=Num(YearStart(Max(&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;CalendarYear&lt;/SPAN&gt;))))&amp;lt;=$(vMonthToday)"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;But, If you ask please share YTD formula for that expression i would write like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Sum({&amp;lt;Year=, Month=, Quarter=, Week=, CalendarYear={"&amp;gt;=$(=Num(YearStart(Max(&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DateField&lt;/SPAN&gt;))))&amp;lt;=$(=Num(Max(DateField)))"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 15:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Month-Issue/m-p/1351667#M415340</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-23T15:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Month Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Month-Issue/m-p/1351668#M415341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NO my original expression is not working that is why I posted it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 16:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Month-Issue/m-p/1351668#M415341</guid>
      <dc:creator>azmeerrehan</dc:creator>
      <dc:date>2017-06-23T16:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Month Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Month-Issue/m-p/1351669#M415342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;may be this for current YTD&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&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;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&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;sum({$&amp;lt;Date={"&amp;lt;=$(=date(today(),'YYYYMM'))&amp;gt;=$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=date(yearStart(today()),'YYYYMM')&lt;/SPAN&gt;)"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 16:03:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Month-Issue/m-p/1351669#M415342</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2017-06-23T16:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Month Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Month-Issue/m-p/1351670#M415343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;CalendarYear = {"&amp;gt;= $(=Date(Max(&lt;STRONG style="font-size: 13.3333px;"&gt;CalendarYear&lt;/STRONG&gt;),'YYYYMM')-1) &amp;lt;=$(=Date(Month(Today()),'YYYYMM'))"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 16:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Month-Issue/m-p/1351670#M415343</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-23T16:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Month Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Cumulative-Month-Issue/m-p/1351671#M415344</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;P&gt;=sum({$&amp;lt;CalendarYear = {"&amp;gt;= $(=Date(Max(CalendarYear),'YYYYMM')-1) &amp;lt;=$(=Date(Month(Today()),'YYYYMM'))"}&amp;gt;}&amp;nbsp; Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are in June right now, So I would like to compare June /2017 and June 2016,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 16:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cumulative-Month-Issue/m-p/1351671#M415344</guid>
      <dc:creator>azmeerrehan</dc:creator>
      <dc:date>2017-06-23T16:25:40Z</dc:date>
    </item>
  </channel>
</rss>

