<?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 Year To Date Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-To-Date-Calculation/m-p/353719#M1169608</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;I have some sales data for which i want to calculate YTD. The months are expressed by numbers like Jan =1, Feb =2..and .so on. I want to calculate the total sales for the period April 2011 - March 2012. How do i go about it in my sum statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jul 2012 06:44:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-17T06:44:52Z</dc:date>
    <item>
      <title>Year To Date Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Year-To-Date-Calculation/m-p/353719#M1169608</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;I have some sales data for which i want to calculate YTD. The months are expressed by numbers like Jan =1, Feb =2..and .so on. I want to calculate the total sales for the period April 2011 - March 2012. How do i go about it in my sum statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 06:44:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-To-Date-Calculation/m-p/353719#M1169608</guid>
      <dc:creator />
      <dc:date>2012-07-17T06:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Year To Date Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Year-To-Date-Calculation/m-p/353720#M1169609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a new field in the script to give fiscal year. Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(month&amp;lt;=3,Year-1&amp;amp;'-'Year,Year&amp;amp;'-'&amp;amp;Year+1) as FiscalYear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding the FiscalYear in the list box would do the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran Rokam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 07:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-To-Date-Calculation/m-p/353720#M1169609</guid>
      <dc:creator />
      <dc:date>2012-07-17T07:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Year To Date Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Year-To-Date-Calculation/m-p/353721#M1169610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I wanted to ask you isnt there anything we could do without touching the back end script? I mean within the table can we use set analysis and get the job done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your views would be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 07:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-To-Date-Calculation/m-p/353721#M1169610</guid>
      <dc:creator />
      <dc:date>2012-07-17T07:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Year To Date Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Year-To-Date-Calculation/m-p/353722#M1169611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should define the Fiscal year in the script, then use Set Analysis in the UI to sum values for that year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year(YearStart(Date,0,4)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FiscalYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the UI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Date=,Month=,Year=,FiscalYear=P()&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will sum all sales for the currently selected/possible FiscalYear(s)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 07:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-To-Date-Calculation/m-p/353722#M1169611</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-07-17T07:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Year To Date Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Year-To-Date-Calculation/m-p/353723#M1169612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you have Year as a field use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(if(if(month&amp;lt;=3,Year-1&amp;amp;'-'Year,Year&amp;amp;'-'&amp;amp;Year+1)='2011-2012',Sales,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 08:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-To-Date-Calculation/m-p/353723#M1169612</guid>
      <dc:creator />
      <dc:date>2012-07-17T08:34:17Z</dc:date>
    </item>
  </channel>
</rss>

