<?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: Calculate YTD starting from April in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616243#M1100602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Try this,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;$(=Max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;"&amp;gt;=$(=MinMonth)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; 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: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Suraj&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2014 03:07:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-09T03:07:41Z</dc:date>
    <item>
      <title>Calculate YTD starting from April</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616242#M1100601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually YTD calculations will pick the range from January to current date. But how can I modify it to start from April instead? e.g. if it's 1st June 2013 today, YTD will be sum from April 1st 2013 to 1st June 2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the MTD in set analysis is this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=max(Month))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could I get the YTD format and also make it start from April? Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 02:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616242#M1100601</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2014-04-09T02:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD starting from April</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616243#M1100602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Try this,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;$(=Max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;"&amp;gt;=$(=MinMonth)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; 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: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Suraj&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 03:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616243#M1100602</guid>
      <dc:creator />
      <dc:date>2014-04-09T03:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD starting from April</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616244#M1100603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Suraj - what is MinMonth? Do I need to define it somewhere?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 03:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616244#M1100603</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2014-04-09T03:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD starting from April</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616245#M1100604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should add to the load script two statements which define your new year and than you will be able to operate them as usual.&lt;/P&gt;&lt;P&gt;year(yearstart(Date(Date),1,3)) as [Fiscal Year],&lt;/P&gt;&lt;P&gt;if(num(Month(Date(Date)))&amp;lt;4, num(Month(Date(Date)))+9,num(Month(Date(Date)))-3) as [Fiscal Period]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 03:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616245#M1100604</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-04-09T03:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD starting from April</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616246#M1100605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yepp. It is a variable and you can define whatever you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 04:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616246#M1100605</guid>
      <dc:creator />
      <dc:date>2014-04-09T04:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD starting from April</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616247#M1100606</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;Your calender should be financial calender like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year(AddMonths(DateField,9)) AS Year&lt;/P&gt;&lt;P&gt;Month(DateField) AS Month&lt;/P&gt;&lt;P&gt;Num(Month(AddMonths(DateField,9)))&amp;nbsp; AS MonthNum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create variables&lt;/P&gt;&lt;P&gt; vMaxYear : = Max(Year)&lt;/P&gt;&lt;P&gt; vMaxMonth : = IF(Year=$(vMaxYear),Max(MonthNum))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is your expression:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year={$(vMaxYear)},MonthNum={"&amp;lt;=$(vMaxMonthNum)"}&amp;gt;} sales)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 04:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616247#M1100606</guid>
      <dc:creator />
      <dc:date>2014-04-09T04:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD starting from April</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616248#M1100607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should explore the InYeartoDate function. It has an option to say when the financial year starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if inyeartodate(date,yearstart(today()),0,4), &amp;lt;your expression&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 04:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616248#M1100607</guid>
      <dc:creator />
      <dc:date>2014-04-09T04:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD starting from April</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616249#M1100608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sifat, Attaching a simple example. Hope you find it useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 06:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616249#M1100608</guid>
      <dc:creator />
      <dc:date>2014-04-09T06:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD starting from April</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616250#M1100609</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;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Month=, Year=, date={'&amp;gt;=$(=YearStart(Today(), 0, 4))&amp;lt;=$(=Today())'}&amp;gt;} sales) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it not works then check the date format of date and Today() values, if it is not same then format the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 06:28:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616250#M1100609</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-04-09T06:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate YTD starting from April</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616251#M1100610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, this worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 03:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-YTD-starting-from-April/m-p/616251#M1100610</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2014-04-10T03:27:54Z</dc:date>
    </item>
  </channel>
</rss>

