<?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 YTD Fiscal Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-Fiscal-Year/m-p/236162#M504180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just reading to much into it. Sometimes it is easier to just go back to the basics.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2010 21:27:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-02-10T21:27:48Z</dc:date>
    <item>
      <title>YTD Fiscal Year</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Fiscal-Year/m-p/236160#M504175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get Fiscal Year&amp;gt; YTD to work. When I attempt to apply the same logic I used to get YTD in Calendar Year it keeps returning calendar year YTD values.&lt;/P&gt;&lt;P&gt;What do I need to change this? Below is my code for calculating fiscal year. I have attempted to calculate my own YTD equations with in the code, but was not successful.&lt;/P&gt;&lt;P&gt;'master_date' is a value I share between both databases I am combining.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;[Fiscal Calendar]:&lt;BR /&gt;LOAD date(date#(20011101,'YYYYMMDD')+recno(),'MM/DD/YY') AS "master_date"&lt;BR /&gt;AUTOGENERATE today()-date#(20011101,'YYYYMMDD')&lt;BR /&gt;;&lt;BR /&gt;LEFT JOIN ([Fiscal Calendar])&lt;BR /&gt;LOAD&lt;BR /&gt;"master_date",&lt;BR /&gt;date(monthstart(master_date),'MMM YY') AS "MonthFisical",&lt;BR /&gt;date(yearstart(master_date,1,11),'YYYY') AS "YearFiscal",&lt;BR /&gt;Year2Date(master_date) * -1 AS YTD_Flag_Fiscal, //attempt one&lt;BR /&gt;Year2Date(master_date,-1, 1, $(vToday))*-1 AS LY_YTD_Flag_Fiscal, //attempt two&lt;BR /&gt;YearToDate(master_date, -1, Year(Today(1))) AS Year_YTD_Fiscal //attempt three&lt;BR /&gt;RESIDENT [Fiscal Calendar]&lt;BR /&gt;;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thanks for any help on this matter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 16:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Fiscal-Year/m-p/236160#M504175</guid>
      <dc:creator />
      <dc:date>2010-02-10T16:14:29Z</dc:date>
    </item>
    <item>
      <title>YTD Fiscal Year</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Fiscal-Year/m-p/236161#M504177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the help text:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;YearToDate( date [ , yearoffset [ , firstmonth [ , todaydate] ] ] )&lt;/P&gt;&lt;P&gt;So, if your fiscal year starts in April, for instance:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;yeartodate(master_date, 0,4) as YTD_Flag_Fiscal,&lt;BR /&gt;yeartodate(master_date,-1,4) as LY_YTD_Flag_Fiscal,&lt;/P&gt;&lt;P&gt;That's how I read the help text, anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 21:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Fiscal-Year/m-p/236161#M504177</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-02-10T21:19:25Z</dc:date>
    </item>
    <item>
      <title>YTD Fiscal Year</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Fiscal-Year/m-p/236162#M504180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just reading to much into it. Sometimes it is easier to just go back to the basics.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 21:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Fiscal-Year/m-p/236162#M504180</guid>
      <dc:creator />
      <dc:date>2010-02-10T21:27:48Z</dc:date>
    </item>
  </channel>
</rss>

