<?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 Set Expression Clarification in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-Clarification/m-p/183368#M48660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;How's everyone doing?&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;Can someone help me clarify the difference between the following set expression? The goal is to return last 7 days [DaySeqNum] between max([DaySeqNum]-7 and max(DaySeqNum)&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;[DaySeqNum]= {"&amp;gt;$(=max([DaySeqNum])-7)&amp;lt;=$(=max([DaySeqNum]))" }&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;Correct Result (20110125 to 20110131 assuming max([DaySeqNum])=20110131)&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;[DaySeqNum]= {"&amp;gt;=$(=max([DaySeqNum])-7)&amp;lt;=$(=max([DaySeqNum]))" }&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;Incorrect Result (20110124 to 20110131 assuming max([DaySeqNum])=20110131)&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;The only different is &amp;gt;= versus &amp;gt; right after the first quote. Why wouldn't &amp;gt;= work? Shouldn't it return [DaySeqNum]-7?&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;If there are qvw examples of set expressions filtering on date ranges, please forward them if possible.&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;Your help is much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Mar 2011 04:54:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-27T04:54:49Z</dc:date>
    <item>
      <title>Set Expression Clarification</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Clarification/m-p/183368#M48660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;How's everyone doing?&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;Can someone help me clarify the difference between the following set expression? The goal is to return last 7 days [DaySeqNum] between max([DaySeqNum]-7 and max(DaySeqNum)&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;[DaySeqNum]= {"&amp;gt;$(=max([DaySeqNum])-7)&amp;lt;=$(=max([DaySeqNum]))" }&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;Correct Result (20110125 to 20110131 assuming max([DaySeqNum])=20110131)&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;[DaySeqNum]= {"&amp;gt;=$(=max([DaySeqNum])-7)&amp;lt;=$(=max([DaySeqNum]))" }&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;Incorrect Result (20110124 to 20110131 assuming max([DaySeqNum])=20110131)&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;The only different is &amp;gt;= versus &amp;gt; right after the first quote. Why wouldn't &amp;gt;= work? Shouldn't it return [DaySeqNum]-7?&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;If there are qvw examples of set expressions filtering on date ranges, please forward them if possible.&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="line-height: normal; margin: 0in 0in 0pt;"&gt;Your help is much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Mar 2011 04:54:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Clarification/m-p/183368#M48660</guid>
      <dc:creator />
      <dc:date>2011-03-27T04:54:49Z</dc:date>
    </item>
    <item>
      <title>Set Expression Clarification</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Clarification/m-p/183369#M48661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please ignore. Forgive my posting. Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Mar 2011 05:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Clarification/m-p/183369#M48661</guid>
      <dc:creator />
      <dc:date>2011-03-27T05:06:34Z</dc:date>
    </item>
    <item>
      <title>Set Expression Clarification</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Clarification/m-p/183370#M48662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue clarified =D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Mar 2011 05:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Clarification/m-p/183370#M48662</guid>
      <dc:creator />
      <dc:date>2011-03-27T05:07:10Z</dc:date>
    </item>
  </channel>
</rss>

