<?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 - YTD on Selected Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-YTD-on-Selected-Month/m-p/148006#M26369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a YTD field so that the column will only show the YTD values given the current month selection. For example, if you select "March" (a date field) the column will sum up January, February and March. The calculation will change depending on the current selection. I have seen some posts, but no sample codes. I cannot seem to get it to sum a range when only one month is selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2009 00:41:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-30T00:41:43Z</dc:date>
    <item>
      <title>Set Analysis - YTD on Selected Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-YTD-on-Selected-Month/m-p/148006#M26369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a YTD field so that the column will only show the YTD values given the current month selection. For example, if you select "March" (a date field) the column will sum up January, February and March. The calculation will change depending on the current selection. I have seen some posts, but no sample codes. I cannot seem to get it to sum a range when only one month is selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 00:41:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-YTD-on-Selected-Month/m-p/148006#M26369</guid>
      <dc:creator />
      <dc:date>2009-06-30T00:41:43Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - YTD on Selected Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-YTD-on-Selected-Month/m-p/148007#M26370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if this is exactly what you're asking for, but it is a YTD total based on the maximum month currently selected (so if no month is selected, it is a normal YTD). Here's the expression:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Month={'&amp;gt;=$(=date(yearstart(max(Month)),'MMM-YY')) &amp;lt;=$(=date(max(Month),'MMM-YY'))'}&amp;gt;}Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 03:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-YTD-on-Selected-Month/m-p/148007#M26370</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-06-30T03:55:51Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - YTD on Selected Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-YTD-on-Selected-Month/m-p/148008#M26371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John!&lt;/P&gt;&lt;P&gt;I was trying to get the "&amp;lt;=" sign to work but could not get it to take. I had to modify what you gave me and got it to work. Below is my modified version where MonthNum is the number of the month:&lt;/P&gt;&lt;P&gt;=sum({$ &amp;lt; [Group_ID] = {'B'}, Year = {$(=Year(Today()))}, MonthNum = {"&amp;gt;= {'1'} &amp;lt;=$(=max(MonthNum))"}, Month= &amp;gt;}Hours)&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 00:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-YTD-on-Selected-Month/m-p/148008#M26371</guid>
      <dc:creator />
      <dc:date>2009-07-01T00:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - YTD on Selected Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-YTD-on-Selected-Month/m-p/148009#M26372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks John, that helped me too (Y)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 09:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-YTD-on-Selected-Month/m-p/148009#M26372</guid>
      <dc:creator />
      <dc:date>2012-06-27T09:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - YTD on Selected Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-YTD-on-Selected-Month/m-p/148010#M26373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;If my Fiscal year starts from 1-apr-2012 to 31-03-3012 then &lt;/P&gt;&lt;P&gt;what will be the expression for same condition???&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 09:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-YTD-on-Selected-Month/m-p/148010#M26373</guid>
      <dc:creator>rohit214</dc:creator>
      <dc:date>2012-06-27T09:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - YTD on Selected Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-YTD-on-Selected-Month/m-p/148011#M26374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you just change the MonthNum = {"&amp;gt;= {'1'} part to 4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 10:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-YTD-on-Selected-Month/m-p/148011#M26374</guid>
      <dc:creator />
      <dc:date>2012-06-27T10:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - YTD on Selected Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-YTD-on-Selected-Month/m-p/148012#M26375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to set a sheet activation trigger for a Year to Date sales chart. I simply want the trigger to select all months from January to the current month, but the syntax is killing me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried (for example):&lt;/P&gt;&lt;P&gt;&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;CloseMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;= month(today()"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&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;CloseMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"CloseMonth &amp;lt;= month(today()"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;In both cases, the syntax checker said the expression was OK, but when I leave and re-enter the sheet, nothing is selected in the CloseMonth listbox. "CloseMonth" is a dual field, which shows as text, but has the standard numerical value. Any thoughts?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2012 15:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-YTD-on-Selected-Month/m-p/148012#M26375</guid>
      <dc:creator />
      <dc:date>2012-07-06T15:41:42Z</dc:date>
    </item>
  </channel>
</rss>

