<?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 question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-to-Date-question/m-p/802639#M1048308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The majority of my apps run off the same master calendar which uses Boolean variables for "Current Fiscal Year to Date" and "Last Fiscal Year to Date".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To arrive at those values I first calculate a Fiscal date from the current date:&lt;/P&gt;&lt;P&gt;date(addmonths((&lt;EM&gt;$(vMinDate)&lt;/EM&gt; + RowNo() - 1, -3)) as FiscalDate&lt;/P&gt;&lt;P&gt;Then I use the function&lt;/P&gt;&lt;P&gt;InYearToDate(FiscalDate, AddMonths(&lt;EM&gt;$(vToday),&lt;/EM&gt; -3), 0) * -1 as CurrentFiscalYearToDate&lt;/P&gt;&lt;P&gt;InYearToDate(FiscalDate, AddMonths(&lt;EM&gt;$(vToday),&lt;/EM&gt; -3), -1) * -1 as LastFiscalYearToDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works well, however now I need to use Fiscal Year as a dimension so I need a "Fiscal Year to Date" flag that is regardless of year. My set analysis needs to change from:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&amp;lt; CurrentFiscalYearToDate = {1} &amp;gt;} &lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;{&amp;lt; FiscalYearToDate = {1}, FiscalYear = {2014} &amp;gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Nov 2014 15:30:31 GMT</pubDate>
    <dc:creator>hobanwashburne</dc:creator>
    <dc:date>2014-11-10T15:30:31Z</dc:date>
    <item>
      <title>Year to Date question</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-question/m-p/802639#M1048308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The majority of my apps run off the same master calendar which uses Boolean variables for "Current Fiscal Year to Date" and "Last Fiscal Year to Date".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To arrive at those values I first calculate a Fiscal date from the current date:&lt;/P&gt;&lt;P&gt;date(addmonths((&lt;EM&gt;$(vMinDate)&lt;/EM&gt; + RowNo() - 1, -3)) as FiscalDate&lt;/P&gt;&lt;P&gt;Then I use the function&lt;/P&gt;&lt;P&gt;InYearToDate(FiscalDate, AddMonths(&lt;EM&gt;$(vToday),&lt;/EM&gt; -3), 0) * -1 as CurrentFiscalYearToDate&lt;/P&gt;&lt;P&gt;InYearToDate(FiscalDate, AddMonths(&lt;EM&gt;$(vToday),&lt;/EM&gt; -3), -1) * -1 as LastFiscalYearToDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works well, however now I need to use Fiscal Year as a dimension so I need a "Fiscal Year to Date" flag that is regardless of year. My set analysis needs to change from:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&amp;lt; CurrentFiscalYearToDate = {1} &amp;gt;} &lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;{&amp;lt; FiscalYearToDate = {1}, FiscalYear = {2014} &amp;gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 15:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-question/m-p/802639#M1048308</guid>
      <dc:creator>hobanwashburne</dc:creator>
      <dc:date>2014-11-10T15:30:31Z</dc:date>
    </item>
  </channel>
</rss>

