<?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 Analysis &amp;gt;= Not Working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-gt-Not-Working/m-p/354925#M131723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to do a comparison on some dates. Because of the date formatting differences I made the dates a NUM with the following load scripts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUM(date(Date#(LastActivityDate,'YYMMDD'),'YYYYMMDD')) as CalendarDateKey1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUM(date(floor(ResponseDate),'YYYYMMDD')) as CalendarDateKey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a pivot table chart that looks like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/14347_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is the Issues column. In the expressions, I have the following definition for Issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;QvsI = {'I'}, CalendarDateKey={"&amp;lt;=CalendarDateKey1"}&amp;gt;}QvsI).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out why it won't add a 1 to the Issues column for this account. The CalendarDateKey is &amp;lt; CalendarDateKey1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2012 16:06:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-16T16:06:37Z</dc:date>
    <item>
      <title>Set Analysis &gt;= Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-gt-Not-Working/m-p/354925#M131723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to do a comparison on some dates. Because of the date formatting differences I made the dates a NUM with the following load scripts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUM(date(Date#(LastActivityDate,'YYMMDD'),'YYYYMMDD')) as CalendarDateKey1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUM(date(floor(ResponseDate),'YYYYMMDD')) as CalendarDateKey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a pivot table chart that looks like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/14347_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is the Issues column. In the expressions, I have the following definition for Issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;QvsI = {'I'}, CalendarDateKey={"&amp;lt;=CalendarDateKey1"}&amp;gt;}QvsI).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out why it won't add a 1 to the Issues column for this account. The CalendarDateKey is &amp;lt; CalendarDateKey1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 16:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-gt-Not-Working/m-p/354925#M131723</guid>
      <dc:creator />
      <dc:date>2012-05-16T16:06:37Z</dc:date>
    </item>
    <item>
      <title>Set Analysis &gt;= Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-gt-Not-Working/m-p/354926#M131724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, set analysis doesn't really work that way--you can't use it to check which dimensional value you're currently in. So your expression is actually trying to check whether CalendarDateKey is less than or equal to CalendarDateKey1 as a whole, rather than that specific instance. You would need to use an IF statement in combination with set analysis: count({&amp;lt;Qvsl={'I'}&amp;gt;} if(CalendarDateKey&amp;lt;=CalendarDateKey1,Qvsl))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 16:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-gt-Not-Working/m-p/354926#M131724</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-05-16T16:58:33Z</dc:date>
    </item>
    <item>
      <title>Set Analysis &gt;= Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-gt-Not-Working/m-p/354927#M131725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for the explanation. This works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 17:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-gt-Not-Working/m-p/354927#M131725</guid>
      <dc:creator />
      <dc:date>2012-05-16T17:59:44Z</dc:date>
    </item>
  </channel>
</rss>

