<?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 Last Month Label &amp; Error Message in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-Month-Label-Error-Message/m-p/343460#M493781</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;can u help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without selecting Year or Month, the chart did not display data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this is the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;Year = {$(=max(Year))}, &lt;SPAN style="text-decoration: underline;"&gt;MonthNum = {$(=max(MonthNum))}&lt;/SPAN&gt;&amp;gt;}[Gross Purchase])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tried using Month = maxString(Month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but still does not display... why? im using qlikview 11...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that report is&lt;STRONG&gt; This Month&lt;/STRONG&gt; data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2012 11:09:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-09T11:09:09Z</dc:date>
    <item>
      <title>Last Month Label &amp; Error Message</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Label-Error-Message/m-p/343458#M493779</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;How can I put an error message like "Please select Year and Month' to viiew this report"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, how can I put the Label, "last month" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say for example, this month is Feb 2012, then last month is Jan 2012...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me, im using Qlikview 11. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 09:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Label-Error-Message/m-p/343458#M493779</guid>
      <dc:creator />
      <dc:date>2012-05-09T09:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Label &amp; Error Message</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Label-Error-Message/m-p/343459#M493780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;For an error message you can use an if statement like: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Year Month]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;gt;= 1, &lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;expression, 'Please select Year and Month to View this report")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;And for labels you can use in the window title =max(Month) &amp;amp; ‘ ‘ &amp;amp; max(Year) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;And if you want previous month or previous year you add -1 =(max(Month)-1) &amp;amp; ‘ ‘ &amp;amp; (max(Year)-1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 09:52:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Label-Error-Message/m-p/343459#M493780</guid>
      <dc:creator />
      <dc:date>2012-05-09T09:52:33Z</dc:date>
    </item>
    <item>
      <title>Last Month Label &amp; Error Message</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Label-Error-Message/m-p/343460#M493781</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;can u help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without selecting Year or Month, the chart did not display data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this is the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;Year = {$(=max(Year))}, &lt;SPAN style="text-decoration: underline;"&gt;MonthNum = {$(=max(MonthNum))}&lt;/SPAN&gt;&amp;gt;}[Gross Purchase])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tried using Month = maxString(Month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but still does not display... why? im using qlikview 11...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that report is&lt;STRONG&gt; This Month&lt;/STRONG&gt; data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 11:09:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Label-Error-Message/m-p/343460#M493781</guid>
      <dc:creator />
      <dc:date>2012-05-09T11:09:09Z</dc:date>
    </item>
    <item>
      <title>Last Month Label &amp; Error Message</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Label-Error-Message/m-p/343461#M493782</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;Can you send the .qvw? Or an example of what your data looks like? The set analysis looks correct.&lt;/P&gt;&lt;P&gt;When I have encountered that problem before the problem have been that my data have had more dates than I had data for. Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/P&gt;&lt;P&gt;2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30&lt;/P&gt;&lt;P&gt;2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&lt;/P&gt;&lt;P&gt;2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the max date is May 2012 in the data, but since there's no sales for that month, it won't display any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does the lable say for the max(month)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 11:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Label-Error-Message/m-p/343461#M493782</guid>
      <dc:creator />
      <dc:date>2012-05-09T11:20:59Z</dc:date>
    </item>
  </channel>
</rss>

