<?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 operator in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OR-operator-in-set-analysis/m-p/1227028#M461333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;count({&amp;lt; [Lead Stage] = {'MQL'}&amp;gt;+ &amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Lead Score] = {"&amp;gt;=100"}&amp;gt;&lt;/SPAN&gt; + &amp;lt; [Pardot Score] = {"&amp;gt;=100"}&amp;gt;}distinct([Lead ID]))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2017 14:35:54 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2017-01-24T14:35:54Z</dc:date>
    <item>
      <title>OR operator in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/OR-operator-in-set-analysis/m-p/1227027#M461332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created&amp;nbsp; the following set analysis to try and count the number of qualified leads based on three fields:&lt;/P&gt;&lt;P&gt;- Lead Score&lt;/P&gt;&lt;P&gt;- Pardot Score&lt;/P&gt;&lt;P&gt;- Lead Stage&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;count({&amp;lt; [Lead Stage] = {'MQL'}&amp;gt;}distinct([Lead ID])) + count({&amp;lt; [Lead Score] = {"&amp;gt;=100"}&amp;gt;}distinct([Lead ID])) + count({&amp;lt; [Pardot Score] = {"&amp;gt;=100"}&amp;gt;}distinct([Lead ID]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not all of the fields are in sync, so I want to count all of the qualified leads WITHOUT double counting (i.e a lead has a score &amp;gt; 100 and a lead stage = MQL). In SQL it would be something like, WHERE [Lead Stage] = 'MQL' OR [Lead Score] &amp;gt;= 100 OR [Pardot Score] &amp;gt;= 100 ... But the union in set analysis is definitely double counting records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 14:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OR-operator-in-set-analysis/m-p/1227027#M461332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-24T14:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/OR-operator-in-set-analysis/m-p/1227028#M461333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;count({&amp;lt; [Lead Stage] = {'MQL'}&amp;gt;+ &amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Lead Score] = {"&amp;gt;=100"}&amp;gt;&lt;/SPAN&gt; + &amp;lt; [Pardot Score] = {"&amp;gt;=100"}&amp;gt;}distinct([Lead ID]))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 14:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OR-operator-in-set-analysis/m-p/1227028#M461333</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-01-24T14:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/OR-operator-in-set-analysis/m-p/1227029#M461334</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;You can use below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;count({&amp;lt; [Lead Stage] = {'MQL'}&amp;gt;} + [Lead Score] = {"&amp;gt;=100 + [Pardot Score] = {"&amp;gt;=100"}&amp;gt;}distinct [Lead ID])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 14:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OR-operator-in-set-analysis/m-p/1227029#M461334</guid>
      <dc:creator>krishnacbe</dc:creator>
      <dc:date>2017-01-24T14:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/OR-operator-in-set-analysis/m-p/1227030#M461335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Or just this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;[Lead ID] = {"=[Lead Stage] = 'MQL'&amp;nbsp; or [Lead Score] &amp;gt;=100 or [Pardot Score] &amp;gt;=100"}&amp;gt;} DISTINCT [Lead ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 14:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OR-operator-in-set-analysis/m-p/1227030#M461335</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-24T14:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: OR operator in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/OR-operator-in-set-analysis/m-p/1227031#M461336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You did it again Sunny. Many thanks as always &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 14:55:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OR-operator-in-set-analysis/m-p/1227031#M461336</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-24T14:55:41Z</dc:date>
    </item>
  </channel>
</rss>

