<?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 month comparison in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/month-comparison/m-p/389682#M568480</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 am trying to compare the month of a date dd/mm/yyyy to a variable vMonth, which will contain the name of a month eg feb. &lt;/P&gt;&lt;P&gt;I want to be able to average all the sales where the month = vMonth. &lt;/P&gt;&lt;P&gt;I've played around with set analysis where I've tried to select the set where the month is = to vmonth but had no luck. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = {'$(vMonth)'}&amp;gt;} sales) &lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2012 16:55:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-31T16:55:43Z</dc:date>
    <item>
      <title>month comparison</title>
      <link>https://community.qlik.com/t5/QlikView/month-comparison/m-p/389682#M568480</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 am trying to compare the month of a date dd/mm/yyyy to a variable vMonth, which will contain the name of a month eg feb. &lt;/P&gt;&lt;P&gt;I want to be able to average all the sales where the month = vMonth. &lt;/P&gt;&lt;P&gt;I've played around with set analysis where I've tried to select the set where the month is = to vmonth but had no luck. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = {'$(vMonth)'}&amp;gt;} sales) &lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 16:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-comparison/m-p/389682#M568480</guid>
      <dc:creator />
      <dc:date>2012-10-31T16:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: month comparison</title>
      <link>https://community.qlik.com/t5/QlikView/month-comparison/m-p/389683#M568481</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;MonthField&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'$(vMonth)'}&amp;gt;} sales) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you don't have month field, load in script like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * , month(Date) as MonthField from tablename;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hope it helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 16:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/month-comparison/m-p/389683#M568481</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-10-31T16:58:27Z</dc:date>
    </item>
  </channel>
</rss>

