<?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: Calendar in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/305805#M112930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With a string, you need to use the maxstring() function instead of the max() function, something I've always found annoying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Ah, you're selecting a string, but the set analysis is on the number.&amp;nbsp; Never mind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2011 00:23:23 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-12-16T00:23:23Z</dc:date>
    <item>
      <title>Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/305804#M112929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an SQL table that consists of Calendar data, in the said table I have a field fin_year (number e.g. 2011) and I use this field again to create a fin_year_str field (string e.g. FY2011). The problem is if I select on fin_year_str my chart doesn't generate the correct value, here's my expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( Sum({&amp;lt;fin_year={$(=Max(fin_year))}&amp;gt;}extended_price)&lt;/P&gt;&lt;P&gt;- Sum({&amp;lt;fin_year={$(=Max(fin_year)-1)}&amp;gt;}extended_price)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;/ Sum({&amp;lt;fin_year={$(Max(fin_year)-1)}&amp;gt;}extended_price)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is this happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 00:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/305804#M112929</guid>
      <dc:creator />
      <dc:date>2011-12-16T00:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/305805#M112930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With a string, you need to use the maxstring() function instead of the max() function, something I've always found annoying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Ah, you're selecting a string, but the set analysis is on the number.&amp;nbsp; Never mind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 00:23:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/305805#M112930</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-12-16T00:23:23Z</dc:date>
    </item>
    <item>
      <title>Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/305806#M112931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my filter is fin_year_str&lt;/P&gt;&lt;P&gt;and my set analysis is &lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;( Sum({&amp;lt;fin_year={$(=Max(fin_year))}&amp;gt;}extended_price)&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;- Sum({&amp;lt;fin_year={$(=Max(fin_year)-1)}&amp;gt;}extended_price)&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;)&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;/ Sum({&amp;lt;fin_year={$(Max(fin_year)-1)}&amp;gt;}extended_price)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if I select FY2011 in fin_year_str then fin_year = 2011, but the chart always give me 0 value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 01:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/305806#M112931</guid>
      <dc:creator />
      <dc:date>2011-12-16T01:18:44Z</dc:date>
    </item>
    <item>
      <title>Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/305807#M112932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 00:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/305807#M112932</guid>
      <dc:creator />
      <dc:date>2011-12-19T00:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/305808#M112933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it work if you select fin_year (not str) in a listbox? I know this is not the desired solution -- just a debugging question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 02:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/305808#M112933</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-12-19T02:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/305809#M112934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes sir. fin_year_str and fin_year are associated fields and came from the same table so i think my set anlysis should work. I'm using QV 11&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 04:36:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/305809#M112934</guid>
      <dc:creator />
      <dc:date>2011-12-19T04:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar/m-p/305810#M112935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( Sum({&amp;lt;fin_year={$(=Max(fin_year))}&amp;gt;}extended_price)&lt;/P&gt;&lt;P&gt;- Sum({&amp;lt;fin_year={$(=Max(fin_year)-1)}&lt;STRONG&gt;,fin_year=&lt;/STRONG&gt;&amp;gt;}extended_price)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;/ Sum({&amp;lt;fin_year={$(Max(fin_year)-1)},&lt;STRONG&gt;,fin_year=&lt;/STRONG&gt;&amp;gt;}extended_price)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your current syntax in the Max(fin_year)-1 in the set analysis you have to override the fin_year.&lt;/P&gt;&lt;P&gt;So when you click &lt;STRONG&gt;fin_year_str &lt;/STRONG&gt;you got one year selected in the &lt;STRONG&gt;fin_year &lt;/STRONG&gt;so set analysis won't work for the Max(year)-1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nitin Jain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 09:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar/m-p/305810#M112935</guid>
      <dc:creator />
      <dc:date>2011-12-19T09:11:11Z</dc:date>
    </item>
  </channel>
</rss>

