<?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: Exclude current month with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418534#M155706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;yearMonth-={"$(=Date(MonthName(Today())),'mmm YYYY')"}, Product={'Blue'}&amp;gt;} TransactionID)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;yearMonth-={"$(=Date(MonthName(Today())), 'mmm YYYY')"}, ListEnabled={'1'}&amp;gt;} DISTINCT CustomerID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2012 13:08:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-24T13:08:30Z</dc:date>
    <item>
      <title>Exclude current month with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418527#M155699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to exclude the current month in a set expression like this:&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;Product={'Blue'}&amp;gt;} TransID)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;ListEnabled={'1'}&amp;gt;} DISTINCT CustID)&lt;/P&gt;&lt;P&gt;In the chart I use "yearmonth"(apr 2012) as a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 14:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418527#M155699</guid>
      <dc:creator />
      <dc:date>2012-09-18T14:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude current month with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418528#M155700</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;Count({$&amp;lt;Product={'Blue'},yearMonth-={$(MonthName(Today()))}&amp;gt;} TransID)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;ListEnabled={'1'},yearMonth-={$(MonthName(Today()))}&amp;gt;} DISTINCT CustID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 14:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418528#M155700</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-09-18T14:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude current month with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418529#M155701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for quik respons. But I get something wrong with that expression and "-=".&lt;/P&gt;&lt;P&gt;Any suggestions what it can be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 14:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418529#M155701</guid>
      <dc:creator />
      <dc:date>2012-09-18T14:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude current month with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418530#M155702</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is not error, its bug in qv expression.. Expression ok..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 14:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418530#M155702</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-09-18T14:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude current month with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418531#M155703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is bug in QV when you use -= in Set Analysis expression, the -= is underlined with red color.&amp;nbsp; It shows as error but it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 14:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418531#M155703</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-09-18T14:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude current month with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418532#M155704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It still not working. Could it be some problems regarding the date format? Is it needed to type the format like date(mm-yyyy)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 08:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418532#M155704</guid>
      <dc:creator />
      <dc:date>2012-09-24T08:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude current month with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418533#M155705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The date format should be the same.&amp;nbsp; You can format the date by using Date().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 12:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418533#M155705</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-09-24T12:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude current month with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418534#M155706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;yearMonth-={"$(=Date(MonthName(Today())),'mmm YYYY')"}, Product={'Blue'}&amp;gt;} TransactionID)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;yearMonth-={"$(=Date(MonthName(Today())), 'mmm YYYY')"}, ListEnabled={'1'}&amp;gt;} DISTINCT CustomerID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 13:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418534#M155706</guid>
      <dc:creator />
      <dc:date>2012-09-24T13:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude current month with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418535#M155707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;It seems the problem is that Today() returns a numerical date with 'days', while in your yearMonth field it's just the first day of month (you just hide the days by formatting).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use &lt;STRONG&gt;&lt;SPAN class="Bold"&gt;MonthStart() &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="Bold"&gt;function instead of &lt;STRONG&gt;MonthName() &lt;/STRONG&gt;in your expression, this should solve it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Also to test your expressions and calculations you can create two textbox with expressions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;=yearMonth=Date(MonthStart(Today())),'mmm YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;=Date(MonthStart(Today())),'mmm YYYY')&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;Then select current year value in &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;yearMonth (in a listbox).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;The first textbox should show '-1' (this means that &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;yearMonth equals your expression) and the second will show the resulting date format.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 06:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-current-month-with-set-analysis/m-p/418535#M155707</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-27T06:58:48Z</dc:date>
    </item>
  </channel>
</rss>

