<?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: trouble with less than equal in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/trouble-with-less-than-equal-in-set-analysis/m-p/572409#M213281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is your [QuoteMonth] data held? If it is just a month name then your expression will not work.&lt;/P&gt;&lt;P&gt;The Month function in QlikView will return a dual data field.&amp;nbsp;&amp;nbsp; Jan, 1; Feb, 2; Mar, 3...Dec,12 with the default month start. The current month January, so your comparison will look for any orders with a month value less than July (7).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your comparison really needs to compare date values to select quotes over 6 months old.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;[Quote Date] ={"&amp;lt;=$(= date(floor(AddMonths(now(0), -6))))"}&amp;gt;} [Quote value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The floor function strips the time component from the date.&lt;/P&gt;&lt;P&gt;This function will also require the [Quote Date] value to be held as a QlikView date, not simply text.&lt;/P&gt;&lt;P&gt;Using&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(source_date_field) as [Quote Date] in your load script will do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jan 2014 13:14:10 GMT</pubDate>
    <dc:creator>Colin-Albert</dc:creator>
    <dc:date>2014-01-27T13:14:10Z</dc:date>
    <item>
      <title>trouble with less than equal in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/trouble-with-less-than-equal-in-set-analysis/m-p/572406#M213278</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 want to fetch&amp;nbsp; quote values that are six months old or older than it. I am using the following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;[Quote Month] ={"&amp;lt;=$(= month(AddMonths(now(0), -6)))"}&amp;gt;} [Quote value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not working. Can someone please fix the mistake in this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 12:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trouble-with-less-than-equal-in-set-analysis/m-p/572406#M213278</guid>
      <dc:creator />
      <dc:date>2014-01-27T12:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: trouble with less than equal in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/trouble-with-less-than-equal-in-set-analysis/m-p/572407#M213279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Quote Month] ={"&amp;lt;=$(= Num(month(AddMonths(now(0), -6))))"}&amp;gt;} [Quote value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... and let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 12:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trouble-with-less-than-equal-in-set-analysis/m-p/572407#M213279</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-01-27T12:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: trouble with less than equal in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/trouble-with-less-than-equal-in-set-analysis/m-p/572408#M213280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Usually, this type of issues cause because of format issue. How is your data in [Quote Month], numeric or string? Is that created using month() function in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 13:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trouble-with-less-than-equal-in-set-analysis/m-p/572408#M213280</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-01-27T13:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: trouble with less than equal in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/trouble-with-less-than-equal-in-set-analysis/m-p/572409#M213281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is your [QuoteMonth] data held? If it is just a month name then your expression will not work.&lt;/P&gt;&lt;P&gt;The Month function in QlikView will return a dual data field.&amp;nbsp;&amp;nbsp; Jan, 1; Feb, 2; Mar, 3...Dec,12 with the default month start. The current month January, so your comparison will look for any orders with a month value less than July (7).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your comparison really needs to compare date values to select quotes over 6 months old.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;[Quote Date] ={"&amp;lt;=$(= date(floor(AddMonths(now(0), -6))))"}&amp;gt;} [Quote value])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The floor function strips the time component from the date.&lt;/P&gt;&lt;P&gt;This function will also require the [Quote Date] value to be held as a QlikView date, not simply text.&lt;/P&gt;&lt;P&gt;Using&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(source_date_field) as [Quote Date] in your load script will do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 13:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/trouble-with-less-than-equal-in-set-analysis/m-p/572409#M213281</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-01-27T13:14:10Z</dc:date>
    </item>
  </channel>
</rss>

