<?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: How do I get the current MonthYear on a chart? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-current-MonthYear-on-a-chart/m-p/454557#M1156670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does return values. See attached, green column in chart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2013 14:43:16 GMT</pubDate>
    <dc:creator>giakoum</dc:creator>
    <dc:date>2013-02-21T14:43:16Z</dc:date>
    <item>
      <title>How do I get the current MonthYear on a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-current-MonthYear-on-a-chart/m-p/454551#M1156662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13613616807603479" jivemacro_uid="_13613616807603479"&gt;&lt;P&gt;I attended the Qlikview developer training last week and have been having a play with the file we created. However I am having trouble trying to get the current MonthYear on a chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We added the master calendar at the training so the script should be ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get it to work for just the year, so if I use the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year = {$(=max(Year))}&amp;gt;}LineSalesAmount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if I use the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;sum({$&amp;lt;MonthYear = {$(=max(MonthYear))}&amp;gt;}LineSalesAmount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;then the chart goes blank.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;What am I doing wrong?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 12:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-current-MonthYear-on-a-chart/m-p/454551#M1156662</guid>
      <dc:creator />
      <dc:date>2013-02-20T12:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the current MonthYear on a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-current-MonthYear-on-a-chart/m-p/454552#M1156664</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; Send me the Sample Application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 12:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-current-MonthYear-on-a-chart/m-p/454552#M1156664</guid>
      <dc:creator />
      <dc:date>2013-02-20T12:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the current MonthYear on a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-current-MonthYear-on-a-chart/m-p/454553#M1156666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here it is, it's the same one they use at the training.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 12:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-current-MonthYear-on-a-chart/m-p/454553#M1156666</guid>
      <dc:creator />
      <dc:date>2013-02-20T12:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the current MonthYear on a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-current-MonthYear-on-a-chart/m-p/454554#M1156667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would have thought this would be quite simple.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 14:06:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-current-MonthYear-on-a-chart/m-p/454554#M1156667</guid>
      <dc:creator />
      <dc:date>2013-02-21T14:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the current MonthYear on a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-current-MonthYear-on-a-chart/m-p/454555#M1156668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Year is a number, MonthYear is not.&lt;/P&gt;&lt;P&gt;So you need to use single quotes to make it work :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;MonthYear = {'$(=max(MonthYear))'}&amp;gt;}LineSalesAmount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double qoutes also work as QlikView consideres it as a search.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 14:20:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-current-MonthYear-on-a-chart/m-p/454555#M1156668</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2013-02-21T14:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the current MonthYear on a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-current-MonthYear-on-a-chart/m-p/454556#M1156669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for responding Ioannis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the expression you gave still returns a blank and if I use double quotes instead it also returns a blank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 14:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-current-MonthYear-on-a-chart/m-p/454556#M1156669</guid>
      <dc:creator />
      <dc:date>2013-02-21T14:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the current MonthYear on a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-current-MonthYear-on-a-chart/m-p/454557#M1156670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does return values. See attached, green column in chart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 14:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-current-MonthYear-on-a-chart/m-p/454557#M1156670</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2013-02-21T14:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the current MonthYear on a chart?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-get-the-current-MonthYear-on-a-chart/m-p/454558#M1156671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Ioannis, not sure what I did to make it not work but can see it does now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 14:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-get-the-current-MonthYear-on-a-chart/m-p/454558#M1156671</guid>
      <dc:creator />
      <dc:date>2013-02-21T14:52:12Z</dc:date>
    </item>
  </channel>
</rss>

