<?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 Count with set analysis using another field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-with-set-analysis-using-another-field/m-p/798874#M282119</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 need to make a set analysis comparing 2 date fields inside on a set analysis operation, my actual expression it's something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;Date1={&amp;gt;=Date2}, Type={'ReadOnly'}&amp;gt;} Event)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its possible to restrict my set analysis to Date1 greater then Date 2 in this case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2015 21:17:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-02-12T21:17:06Z</dc:date>
    <item>
      <title>Count with set analysis using another field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-with-set-analysis-using-another-field/m-p/798874#M282119</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 need to make a set analysis comparing 2 date fields inside on a set analysis operation, my actual expression it's something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;Date1={&amp;gt;=Date2}, Type={'ReadOnly'}&amp;gt;} Event)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its possible to restrict my set analysis to Date1 greater then Date 2 in this case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 21:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-with-set-analysis-using-another-field/m-p/798874#M282119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-12T21:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count with set analysis using another field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-with-set-analysis-using-another-field/m-p/798875#M282120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gabriel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot have two datamodel fields in comparison in set modifies like Date1&amp;gt;=Date2. where Date1 and Date2 are fields in datamodel. You either have to create comma seperated values from Date2 possible values and then put it in set analysis to work or have static values like '01/01/2014' etc.&lt;/P&gt;&lt;P&gt;You can use concat function like &lt;/P&gt;&lt;P&gt;concat(distinct Date2, ',') and write this in set analysis using $ sign expansion.&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;Date1={"&amp;gt;=$(=concat(distinct Date2, ','))"}, Type={'ReadOnly'}&amp;gt;} Event)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Anosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 21:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-with-set-analysis-using-another-field/m-p/798875#M282120</guid>
      <dc:creator />
      <dc:date>2015-02-12T21:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count with set analysis using another field</title>
      <link>https://community.qlik.com/t5/QlikView/Count-with-set-analysis-using-another-field/m-p/798876#M282121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure your exact requirements but assuming, date1 and date2 are static fields not selections, you may want to compare Date1 and Date2 in the load script and create a 3rd column like IsDate1GreaterThanDate2 and use it in your set analysis. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 22:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-with-set-analysis-using-another-field/m-p/798876#M282121</guid>
      <dc:creator />
      <dc:date>2015-02-12T22:16:58Z</dc:date>
    </item>
  </channel>
</rss>

