<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/406539#M700723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table say&amp;nbsp; with the following fields&lt;/P&gt;&lt;P&gt;ID,Date1,Date2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to change my expression : Count(if(Date1 = Date2,ID)) &lt;/P&gt;&lt;P&gt;into Set Analysis....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2012 19:05:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-11T19:05:59Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/406539#M700723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table say&amp;nbsp; with the following fields&lt;/P&gt;&lt;P&gt;ID,Date1,Date2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to change my expression : Count(if(Date1 = Date2,ID)) &lt;/P&gt;&lt;P&gt;into Set Analysis....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 19:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/406539#M700723</guid>
      <dc:creator />
      <dc:date>2012-10-11T19:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/406540#M700724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can, but why do you want that?&lt;/P&gt;&lt;P&gt;I think the set analysis expression would be:&amp;nbsp; count( {&amp;lt;[Date1]={"=[Date1]=[Date2]"}&amp;gt;} ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 19:35:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/406540#M700724</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-11T19:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/406541#M700725</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;DateFieldNum1={'=$(=Num(DateFieldNum2))'} ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where &lt;/P&gt;&lt;P&gt;In Script &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateFieldNum1 = Floor(Num(DateFieldNum1)) &lt;/P&gt;&lt;P&gt;DateFieldNum2 = Floor(Num(DateFieldNum2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 19:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/406541#M700725</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2012-10-11T19:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/406542#M700726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wouldn't do it with the if OR with set analysis.&amp;nbsp; For performance, I'd suggest setting a counter in the script load like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if(Date1 = Date2, 1) as "Dates Equal Counter",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or possibly more generally useful, as it could be used as a chart dimension, for instance, to only show IDs where the dates are equal:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if(Date1 = Date2, ID) as "Dates Equal ID",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then experiment to find out which of the following is faster:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;count("Dates Equal ID")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;sum("Dates Equal Counter")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Different QlikView versions have differed in that regard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 19:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/406542#M700726</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2012-10-11T19:42:49Z</dc:date>
    </item>
  </channel>
</rss>

