<?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 Set Analysis Year To Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Year-To-Date/m-p/157921#M504489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the fiscal year does not begin on January, you need to use the yearname function to retrieve the exercice year.&lt;/P&gt;&lt;P&gt;For example if the year is from July to June, then Yearname(MyDate,0,7)&lt;/P&gt;&lt;P&gt;Where 7 is the first month of the exercice.&lt;/P&gt;&lt;P&gt;When I run set analysis for Year to date i Have two set analysis: The first one is month &amp;lt;monthdate and Exercice = yearname(MyDate,0,X)&lt;/P&gt;&lt;P&gt;I hope this will help.&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Nov 2009 16:47:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-19T16:47:51Z</dc:date>
    <item>
      <title>Set Analysis Year To Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Year-To-Date/m-p/157920#M504488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;This is my first atempt with SET ANALYSIS and I have used the following formula successfully to obtain year to date value of VALUEFIELD where the fiscal year starts on January 1.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;sum({&amp;lt;YEARNOCAL={*}, PERIODNOCAL={*}, DATEFIELD = {"&amp;lt;=$(=date(max(DATEFIELD)))&amp;gt;=$(=date(max(yearstart(DATEFIELD))))"}&amp;gt;} VALUEFIELD)&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Our customers do not always have the fiscal year starting on January 1, e.g. Period 1 could start on October 1. I want to select the YEARNOCAL and PERIODNOCAL, e.g. 2009 period 2, and I want the set analysis to select data from the first date held where PERIODNOCAL = 1 the the last date for the selected PERIODNOCAL.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I hope I have made my requirements clear. If not please let me know if anyone needs any further informaton.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Thanks&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 16:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Year-To-Date/m-p/157920#M504488</guid>
      <dc:creator />
      <dc:date>2009-11-19T16:12:15Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Year To Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Year-To-Date/m-p/157921#M504489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the fiscal year does not begin on January, you need to use the yearname function to retrieve the exercice year.&lt;/P&gt;&lt;P&gt;For example if the year is from July to June, then Yearname(MyDate,0,7)&lt;/P&gt;&lt;P&gt;Where 7 is the first month of the exercice.&lt;/P&gt;&lt;P&gt;When I run set analysis for Year to date i Have two set analysis: The first one is month &amp;lt;monthdate and Exercice = yearname(MyDate,0,X)&lt;/P&gt;&lt;P&gt;I hope this will help.&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 16:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Year-To-Date/m-p/157921#M504489</guid>
      <dc:creator />
      <dc:date>2009-11-19T16:47:51Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Year To Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Year-To-Date/m-p/157922#M504490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sébastien&lt;/P&gt;&lt;P&gt;This will work very well where the start date for the period is the 1st of the month. We have the scenario where periods can be 4 or 5 weeks in length rather than a calenar month, therfore the start date for period 1 if in July could be July 3rd&lt;/P&gt;&lt;P&gt;Can you think of an additional way?&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 18:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Year-To-Date/m-p/157922#M504490</guid>
      <dc:creator />
      <dc:date>2009-11-19T18:21:44Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Year To Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Year-To-Date/m-p/157923#M504491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should add a field in existing table or new table. This field would be periodnum and then you could add it in your set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 18:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Year-To-Date/m-p/157923#M504491</guid>
      <dc:creator />
      <dc:date>2009-11-19T18:37:52Z</dc:date>
    </item>
  </channel>
</rss>

