<?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 question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-question/m-p/1431071#M430476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to get the number of patients who visited FCM clinics (4 patients) and had a1c tested this year, no matter whether it is done (it should be 4). I can only get 2 by using the script below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct {&lt;/P&gt;&lt;P&gt;&amp;lt;FCMVisit={1},&lt;/P&gt;&lt;P&gt;A1cThisYear={1}&lt;/P&gt;&lt;P&gt;&amp;gt;} PAT_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get the correct number? Sample attached. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="367"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="font-size: 11.0pt; color: white; font-weight: bold; font-family: Calibri; border: .5pt solid windowtext; background: #70AD47;" width="64"&gt;VisitID&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none; font-size: 11.0pt; color: white; font-weight: bold; font-family: Calibri; border: .5pt solid windowtext; background: #70AD47;" width="66"&gt;PAT_ID&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none; font-size: 11.0pt; color: white; font-weight: bold; font-family: Calibri; border: .5pt solid windowtext; background: #70AD47;" width="77"&gt;FCMVisit&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none; font-size: 11.0pt; color: white; font-weight: bold; font-family: Calibri; border: .5pt solid windowtext; background: #70AD47;" width="64"&gt;A1C&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none; font-size: 11.0pt; color: white; font-weight: bold; font-family: Calibri; border: .5pt solid windowtext; background: #70AD47;" width="96"&gt;A1cThisYear&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl71" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Oct 2017 22:05:17 GMT</pubDate>
    <dc:creator>baylor2016</dc:creator>
    <dc:date>2017-10-10T22:05:17Z</dc:date>
    <item>
      <title>Set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-question/m-p/1431071#M430476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to get the number of patients who visited FCM clinics (4 patients) and had a1c tested this year, no matter whether it is done (it should be 4). I can only get 2 by using the script below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct {&lt;/P&gt;&lt;P&gt;&amp;lt;FCMVisit={1},&lt;/P&gt;&lt;P&gt;A1cThisYear={1}&lt;/P&gt;&lt;P&gt;&amp;gt;} PAT_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get the correct number? Sample attached. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="367"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="font-size: 11.0pt; color: white; font-weight: bold; font-family: Calibri; border: .5pt solid windowtext; background: #70AD47;" width="64"&gt;VisitID&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none; font-size: 11.0pt; color: white; font-weight: bold; font-family: Calibri; border: .5pt solid windowtext; background: #70AD47;" width="66"&gt;PAT_ID&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none; font-size: 11.0pt; color: white; font-weight: bold; font-family: Calibri; border: .5pt solid windowtext; background: #70AD47;" width="77"&gt;FCMVisit&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none; font-size: 11.0pt; color: white; font-weight: bold; font-family: Calibri; border: .5pt solid windowtext; background: #70AD47;" width="64"&gt;A1C&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none; font-size: 11.0pt; color: white; font-weight: bold; font-family: Calibri; border: .5pt solid windowtext; background: #70AD47;" width="96"&gt;A1cThisYear&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;7&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;9&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl71" height="20" style="border-top: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none; font-size: 11.0pt; color: black; font-weight: 400; font-family: Calibri; border: .5pt solid windowtext; background: #E2EFDA;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 22:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-question/m-p/1431071#M430476</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2017-10-10T22:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-question/m-p/1431072#M430477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct {&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PAT_ID = p({&amp;lt;FCMVisit={1}&amp;gt;})*p({&amp;lt;A1cThisYear={1}&amp;gt;})&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;} PAT_ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 22:14:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-question/m-p/1431072#M430477</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-10T22:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-question/m-p/1431073#M430478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I apply your logic to my project, it did not work.&amp;nbsp; The first one returns 2613. The second one returns only 859. I thought these two are the same. Please advise. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct {&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;YearMonth,&lt;/P&gt;&lt;P&gt;FCMVISIT={1}, &lt;/P&gt;&lt;P&gt;VISITTYPE={'Office visit'},&lt;/P&gt;&lt;P&gt;APPT_STATUS_C={2},&lt;/P&gt;&lt;P&gt;CONTACT_DATE2 = {"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_3YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"},&lt;/P&gt;&lt;P&gt;FLAG_DM={1},&lt;/P&gt;&lt;P&gt;ENCOUNTERAGE ={"$(='&amp;gt;=18&amp;lt;=75)"},&lt;/P&gt;&lt;P&gt;PAT_ID = {"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 18 and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;lt;= 75"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;} PAT_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;=count(distinct &lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;PAT_ID=p({&amp;lt;&lt;/P&gt;&lt;P&gt;YearMonth,&lt;/P&gt;&lt;P&gt;FCMVISIT={1}, &lt;/P&gt;&lt;P&gt;VISITTYPE={'Office visit'},&lt;/P&gt;&lt;P&gt;APPT_STATUS_C={2},&lt;/P&gt;&lt;P&gt;CONTACT_DATE2 = {"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_3YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"},&lt;/P&gt;&lt;P&gt;FLAG_DM={1},&lt;/P&gt;&lt;P&gt;ENCOUNTERAGE ={"$(='&amp;gt;=18&amp;lt;=75)"},&lt;/P&gt;&lt;P&gt;PAT_ID = {"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 18 and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;lt;= 75"}&lt;/P&gt;&lt;P&gt;&amp;gt;})&lt;/P&gt;&lt;P&gt;&amp;gt;} &lt;/P&gt;&lt;P&gt;PAT_ID&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 22:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-question/m-p/1431073#M430478</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2017-10-10T22:42:27Z</dc:date>
    </item>
  </channel>
</rss>

