<?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 Re: Set Analysis by Month Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-by-Month-Question/m-p/524153#M195818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try adding a modifier to disregard the selection in CalendarMonthName:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YTD: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({&amp;lt;CalendarYear = {"$(=max(CalendarYear))"}, CalendarMonthNum = {"&amp;lt;=$(=max(CalendarMonthNum))"}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;CalendarMonthName=&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;} BudgetAmount)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jan 2014 18:08:34 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-01-16T18:08:34Z</dc:date>
    <item>
      <title>Set Analysis by Month Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-by-Month-Question/m-p/524149#M195814</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'm creating a report in which I want the ability to select a date/year and display current month and YTD budget/spend numbers. Ideally, I would select a year and month (let's say June 2013), and all of my analytics would update accordingly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "Current Month" formula works perfectly - when you select June 2013, it shows only data for that month. I'm having issues with the YTD formula. When I select June 2013, I want to show all spend numbers for Jan-Jun. I'm trying to get set analysis to include June AND any months of data that are less than June. Right now, all I'm able to do is to get it to completely ignore the month selection (show all 12 months), or show only the current selected month. I've tried the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ignore month selection =sum({&amp;lt;CalendarYear = {"$(=max(CalendarYear))"}, CalendarMonthNum = &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;gt;} BudgetAmount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Show only max month =sum({&amp;lt;CalendarYear = {"$(=max(CalendarYear))"}, CalendarMonthNum = {"$(=max(CalendarMonthNum ))"}&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt;} BudgetAmount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attempt at what I want =&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;CalendarYear = {"$(=max(CalendarYear))"}, CalendarMonthNum = {"&amp;lt;=$(=max(CalendarMonthNum))"}&lt;SPAN style="font-size: 10pt;"&gt;&amp;gt;} BudgetAmount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing has worked so far. The bottom one only shows YTD if you explicitly select Jan-Jun. I want the ability to only select June and see the YTD numbers. This is how it will be used, so I'd prefer to keep this functionality (rather than having user select a range of months).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 17:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-by-Month-Question/m-p/524149#M195814</guid>
      <dc:creator />
      <dc:date>2014-01-16T17:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis by Month Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-by-Month-Question/m-p/524150#M195815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you have should work (see the attached .qvw).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it isn't working for you, you will need to post a sample .qvw so we can see what is actually going on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 17:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-by-Month-Question/m-p/524150#M195815</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-16T17:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis by Month Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-by-Month-Question/m-p/524151#M195816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thank you, you're right: my formula does work - IF you are using the "CalendarMonthNum" list box to select from. I'm actually using another variable, "CalendarMonthName," which is simply the three-letter text representation of the month (it's still linked to CalendarMonthNum). I think it's nicer for the user to select from the text representation, but I use the number value in set analysis because, in as much as I've tried, set analysis gets pretty funky when you try to compare and run functions on string month values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/51616_Capture.PNG.png" style="width: 620px; height: 18px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/51635_Capture.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incorrect: &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/51636_Capture.PNG.png" style="width: 620px; height: 20px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/51638_Capture.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;Any idea on a work around?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 18:02:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-by-Month-Question/m-p/524151#M195816</guid>
      <dc:creator />
      <dc:date>2014-01-16T18:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis by Month Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-by-Month-Question/m-p/524152#M195817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should also mention that you should only pay attention to the "YTD Budget" columns above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 18:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-by-Month-Question/m-p/524152#M195817</guid>
      <dc:creator />
      <dc:date>2014-01-16T18:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis by Month Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-by-Month-Question/m-p/524153#M195818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try adding a modifier to disregard the selection in CalendarMonthName:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;YTD: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({&amp;lt;CalendarYear = {"$(=max(CalendarYear))"}, CalendarMonthNum = {"&amp;lt;=$(=max(CalendarMonthNum))"}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;CalendarMonthName=&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;} BudgetAmount)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 18:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-by-Month-Question/m-p/524153#M195818</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-01-16T18:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis by Month Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-by-Month-Question/m-p/524154#M195819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/96544"&gt;Gysbert Wassenaar&lt;/A&gt;'s solution works.&amp;nbsp; He beat me to it &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 18:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-by-Month-Question/m-p/524154#M195819</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-16T18:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis by Month Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-by-Month-Question/m-p/524155#M195820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out! See below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({&amp;lt;CalendarYear = {"$(=max(CalendarYear))"}, CalendarMonthNum = {"&amp;lt;=$(=max(CalendarMonthNum))"}, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CalendarMonthName = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;} BudgetAmount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I just needed to have it ignore the CalendarMonthName selection by adding "CalendarMonthName = " in the set analysis expression. I think that takes care of it! Thanks for you help - your example got me "unstuck."&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 18:13:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-by-Month-Question/m-p/524155#M195820</guid>
      <dc:creator />
      <dc:date>2014-01-16T18:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis by Month Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-by-Month-Question/m-p/524156#M195821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, I came to this realization as you posted this response. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 18:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-by-Month-Question/m-p/524156#M195821</guid>
      <dc:creator />
      <dc:date>2014-01-16T18:14:44Z</dc:date>
    </item>
  </channel>
</rss>

