<?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. :OR Condition in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OR-Condition-in-Set-Analysis/m-p/240921#M91375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You can try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;count ({&amp;lt;PostingDate = {"&amp;lt;=$(StartDate)&amp;gt;=$(EndDate)"}&amp;gt;+&amp;lt;OpeningDate = {"&amp;lt;=$(StartDate)&amp;gt;=$(EndDate)"} &amp;gt;+&amp;lt;ClosingDate = {"&amp;lt;=$(StartDate)&amp;gt;=$(EndDate)"} &amp;gt;} ReturnID)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 May 2010 14:51:10 GMT</pubDate>
    <dc:creator>martin59</dc:creator>
    <dc:date>2010-05-14T14:51:10Z</dc:date>
    <item>
      <title>OR Condition in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/OR-Condition-in-Set-Analysis/m-p/240920#M91374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I would like to count the records in a table, all those that meets this condition: fiels PostingDate OR field OpeningDate OR field ClosingDate is in a date range (between StartDate and EndDate)&lt;/P&gt;&lt;P&gt;So I have tried with:&lt;/P&gt;&lt;P&gt;count ({&amp;lt;PostingDate = {"&amp;lt;=$(StartDate)&amp;gt;=$(EndDate)"} &amp;gt;} ReturnID) +&lt;BR /&gt;count ({&amp;lt;OpeningDate = {"&amp;lt;=$(StartDate)&amp;gt;=$(EndDate)"} &amp;gt;} ReturnID) +&lt;BR /&gt;count ({&amp;lt;ClosingDate = {"&amp;lt;=$(StartDate)&amp;gt;=$(EndDate)"} &amp;gt;} ReturnID)&lt;/P&gt;&lt;P&gt;But it can count a record more than once, because the same record can meet the three conditions so it would be counted more than once.&lt;/P&gt;&lt;P&gt;If I write it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count ({&amp;lt;PostingDate = {"&amp;lt;=$(StartDate)&amp;gt;=$(EndDate)"},OpeningDate = {"&amp;lt;=$(StartDate)&amp;gt;=$(EndDate)"} ,ClosingDate = {"&amp;lt;=$(StartDate)&amp;gt;=$(EndDate)"} &amp;gt;} ReturnID)&lt;/P&gt;&lt;P&gt;It will only count the records that meet the three conditions.&lt;/P&gt;&lt;P&gt;So, how could I write it so it works like an OR?&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 14:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OR-Condition-in-Set-Analysis/m-p/240920#M91374</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2010-05-14T14:42:59Z</dc:date>
    </item>
    <item>
      <title>Re. :OR Condition in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/OR-Condition-in-Set-Analysis/m-p/240921#M91375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You can try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;count ({&amp;lt;PostingDate = {"&amp;lt;=$(StartDate)&amp;gt;=$(EndDate)"}&amp;gt;+&amp;lt;OpeningDate = {"&amp;lt;=$(StartDate)&amp;gt;=$(EndDate)"} &amp;gt;+&amp;lt;ClosingDate = {"&amp;lt;=$(StartDate)&amp;gt;=$(EndDate)"} &amp;gt;} ReturnID)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 May 2010 14:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OR-Condition-in-Set-Analysis/m-p/240921#M91375</guid>
      <dc:creator>martin59</dc:creator>
      <dc:date>2010-05-14T14:51:10Z</dc:date>
    </item>
  </channel>
</rss>

