<?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 MonthName problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-MonthName-problem/m-p/412806#M487325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2013 09:59:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-07T09:59:34Z</dc:date>
    <item>
      <title>set analysis MonthName problem</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-MonthName-problem/m-p/412804#M487323</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;&lt;SPAN style="font-size: 10pt;"&gt;I have a set analysis problem, I want to see the sum of sales of the max month and year and later max monthyear -1. I used these set analysis expressions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;max(&lt;SPAN style="color: #800000;"&gt;MonthYear&lt;/SPAN&gt;)&amp;nbsp; gives 41306 so i used MonthName(&lt;SPAN style="color: #0000ff;"&gt;max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;MonthYear&lt;/SPAN&gt;))&amp;nbsp; which gives me the text: &lt;STRONG&gt;feb 2013&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But when I use it to calculatie the sum of the sales I don't get a result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;num(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;MonthYear&lt;/SPAN&gt;={&lt;STRONG style="color: #808080;"&gt;&lt;EM&gt;$(=MonthName(max(MonthYear)))&lt;/EM&gt;&lt;/STRONG&gt;}&amp;gt;}Sales),'#.##0,00')&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;There is no problem in my data because num(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;MonthYear&lt;/SPAN&gt;={'feb 2013'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;Sales&lt;/SPAN&gt;),'#.##0,00')&amp;nbsp; gives me a result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Does anyone know what's wrong with my syntax?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 09:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-MonthName-problem/m-p/412804#M487323</guid>
      <dc:creator />
      <dc:date>2013-02-07T09:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis MonthName problem</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-MonthName-problem/m-p/412805#M487324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try adding quotes round your $ expansion ie:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;num(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;MonthYear&lt;/SPAN&gt;={'&lt;STRONG style="color: #808080;"&gt;&lt;EM&gt;$(=MonthName(max(MonthYear)))'&lt;/EM&gt;&lt;/STRONG&gt;}&amp;gt;}Sales),'#.##0,00')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Steve&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 09:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-MonthName-problem/m-p/412805#M487324</guid>
      <dc:creator>sbaldwin</dc:creator>
      <dc:date>2013-02-07T09:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis MonthName problem</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-MonthName-problem/m-p/412806#M487325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 09:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-MonthName-problem/m-p/412806#M487325</guid>
      <dc:creator />
      <dc:date>2013-02-07T09:59:34Z</dc:date>
    </item>
  </channel>
</rss>

