<?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: What are the differences between these three set analyses? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438781#M431915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;The sample works fine, but the set analysis does not work in my project.&lt;/P&gt;&lt;P&gt;Here is another example&lt;/P&gt;&lt;P&gt;The scripts below returns 118, but the first part and second part return 940 and 35 respectively. It looks like the union does not work here. I really cannot figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Longmatch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&amp;nbsp; &lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;//Returns 940&lt;BR /&gt; &amp;lt;&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;FLAG_IVD&lt;/SPAN&gt;={1},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;YearMonth&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;CONTACT_DATE2&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_3YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"&lt;/SPAN&gt;},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;PAT_ID&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 18"&lt;/SPAN&gt;},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;VISITTYPE&lt;/SPAN&gt;={'Office visit'},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;FCMVISIT&lt;/SPAN&gt;={1}&lt;BR /&gt; &amp;gt;&lt;BR /&gt; +&lt;/P&gt;&lt;P&gt;//Return 35&lt;BR /&gt; &amp;lt;&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;YearMonth&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;FLAG_AMI&lt;/SPAN&gt;={1}, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;CONTACT_DATE2&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_3YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"&lt;/SPAN&gt;},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;PAT_ID&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 18"&lt;/SPAN&gt;},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;VISITTYPE&lt;/SPAN&gt;={'Office visit'},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;FCMVISIT&lt;/SPAN&gt;={1}&lt;BR /&gt; &amp;gt;&lt;BR /&gt; }&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;PAT_ID&lt;/SPAN&gt;)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Sep 2017 15:46:26 GMT</pubDate>
    <dc:creator>baylor2016</dc:creator>
    <dc:date>2017-09-05T15:46:26Z</dc:date>
    <item>
      <title>What are the differences between these three set analyses?</title>
      <link>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438774#M431908</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 am working on a chart using set analysis and do not know why the following two give different results. What I am trying to do is to combine the union and intersection to get the number I need. If I can figure out this, my problem should be solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one returns 940&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&amp;nbsp; &lt;BR /&gt; {&amp;lt;&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;YearMonth&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;FLAG_IVD&lt;/SPAN&gt;={1}, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;CONTACT_DATE2&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_3YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"&lt;/SPAN&gt;},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;PAT_ID&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 18"&lt;/SPAN&gt;},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;VISITTYPE&lt;/SPAN&gt;={'Office visit'},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;FCMVISIT&lt;/SPAN&gt;={1}&lt;BR /&gt; &amp;gt;}&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;PAT_ID&lt;/SPAN&gt;)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one returns 118&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&amp;nbsp; &lt;BR /&gt; {&lt;BR /&gt; &amp;lt;&lt;SPAN style="color: #800000;"&gt;FLAG_IVD&lt;/SPAN&gt;={1}, &lt;SPAN style="color: #800000;"&gt;YearMonth&lt;/SPAN&gt;&amp;gt;*&lt;BR /&gt; &amp;lt;&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;YearMonth&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;CONTACT_DATE2&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_3YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"&lt;/SPAN&gt;},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;PAT_ID&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 18"&lt;/SPAN&gt;},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;VISITTYPE&lt;/SPAN&gt;={'Office visit'},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;FCMVISIT&lt;/SPAN&gt;={1}&lt;BR /&gt; &amp;gt;&lt;BR /&gt; }&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;PAT_ID&lt;/SPAN&gt;)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This one only returns 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&amp;nbsp; &lt;BR /&gt; {&lt;BR /&gt; &amp;lt;&lt;SPAN style="color: #800000;"&gt;FLAG_IVD&lt;/SPAN&gt;={1}&amp;gt;*&lt;BR /&gt; &amp;lt;&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;YearMonth&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;CONTACT_DATE2&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_3YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"&lt;/SPAN&gt;},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;PAT_ID&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 18"&lt;/SPAN&gt;},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;VISITTYPE&lt;/SPAN&gt;={'Office visit'},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;FCMVISIT&lt;/SPAN&gt;={1}&lt;BR /&gt; &amp;gt;&lt;BR /&gt; }&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;PAT_ID&lt;/SPAN&gt;) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 12:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438774#M431908</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2017-09-05T12:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between these three set analyses?</title>
      <link>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438775#M431909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.resultdata.com/qlikview-set-analysis-guide/" title="https://www.resultdata.com/qlikview-set-analysis-guide/"&gt;https://www.resultdata.com/qlikview-set-analysis-guide/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 13:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438775#M431909</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-09-05T13:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between these three set analyses?</title>
      <link>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438776#M431910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vineeth,&lt;/P&gt;&lt;P&gt;Thank you for the reference.&lt;/P&gt;&lt;P&gt;I know the basics and read the article you referred before. I would like to know the differences between these three since the results are so different. I cannot figure out why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Longmatch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 14:31:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438776#M431910</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2017-09-05T14:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between these three set analyses?</title>
      <link>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438777#M431911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should be pretty simple to find out, if only we got the underlying fields and data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the face of it, I can only say that you are creating different resulting sets. The first one is the most inclusive because it combines all set specifications together. The second one appears to be more restrictive as you are making the intersection of two separate sets (which the first one didn't do). The third one creates the smallest intersection between two sets with few items in common.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that you can display the results of each set in a straight table, and manually figure out what is happening behing the set analysis screens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 14:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438777#M431911</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-09-05T14:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between these three set analyses?</title>
      <link>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438778#M431912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also do not forget that the current set of selections can have a considerable impact on the outcome of each set specification. And some set modifiers are resetting current selections in one set but not in the other.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 14:51:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438778#M431912</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-09-05T14:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between these three set analyses?</title>
      <link>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438779#M431913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;I am expecting the first one and second one to get the same number since they all are intersections. I tested the intersection with one small example attached, but it does not work here. I don't know why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Longmatch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 14:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438779#M431913</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2017-09-05T14:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between these three set analyses?</title>
      <link>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438780#M431914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is not working here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/175615_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only patient ID 1 meets the criteria and both expression gives 1? Isn't that right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 15:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438780#M431914</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-05T15:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between these three set analyses?</title>
      <link>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438781#M431915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;The sample works fine, but the set analysis does not work in my project.&lt;/P&gt;&lt;P&gt;Here is another example&lt;/P&gt;&lt;P&gt;The scripts below returns 118, but the first part and second part return 940 and 35 respectively. It looks like the union does not work here. I really cannot figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Longmatch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&amp;nbsp; &lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;//Returns 940&lt;BR /&gt; &amp;lt;&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;FLAG_IVD&lt;/SPAN&gt;={1},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;YearMonth&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;CONTACT_DATE2&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_3YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"&lt;/SPAN&gt;},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;PAT_ID&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 18"&lt;/SPAN&gt;},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;VISITTYPE&lt;/SPAN&gt;={'Office visit'},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;FCMVISIT&lt;/SPAN&gt;={1}&lt;BR /&gt; &amp;gt;&lt;BR /&gt; +&lt;/P&gt;&lt;P&gt;//Return 35&lt;BR /&gt; &amp;lt;&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;YearMonth&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;FLAG_AMI&lt;/SPAN&gt;={1}, &lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;CONTACT_DATE2&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_3YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"&lt;/SPAN&gt;},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;PAT_ID&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 18"&lt;/SPAN&gt;},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;VISITTYPE&lt;/SPAN&gt;={'Office visit'},&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;FCMVISIT&lt;/SPAN&gt;={1}&lt;BR /&gt; &amp;gt;&lt;BR /&gt; }&lt;BR /&gt; &lt;SPAN style="color: #800000;"&gt;PAT_ID&lt;/SPAN&gt;)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 15:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438781#M431915</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2017-09-05T15:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between these three set analyses?</title>
      <link>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438782#M431916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be create a chart with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;PAT_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=C&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;ount&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&amp;nbsp; &lt;BR /&gt;{&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//Returns 940&lt;BR /&gt;&amp;lt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;FLAG_IVD&lt;/SPAN&gt;={1},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;YearMonth&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;CONTACT_DATE2&lt;/SPAN&gt; = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_3YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"&lt;/SPAN&gt;},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;PAT_ID&lt;/SPAN&gt; = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 18"&lt;/SPAN&gt;},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;VISITTYPE&lt;/SPAN&gt;={'Office visit'},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;FCMVISIT&lt;/SPAN&gt;={1}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;PAT_ID&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2) &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=C&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;ount&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&amp;nbsp; &lt;BR /&gt;{&amp;lt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;YearMonth&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;FLAG_AMI&lt;/SPAN&gt;={1}, &lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;CONTACT_DATE2&lt;/SPAN&gt; = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_3YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"&lt;/SPAN&gt;},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;PAT_ID&lt;/SPAN&gt; = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 18"&lt;/SPAN&gt;},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;VISITTYPE&lt;/SPAN&gt;={'Office visit'},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;FCMVISIT&lt;/SPAN&gt;={1}&lt;BR /&gt;&amp;gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;PAT_ID&lt;/SPAN&gt;) &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;3)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=C&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;ount&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&amp;nbsp; &lt;BR /&gt;{&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//Returns 940&lt;BR /&gt;&amp;lt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;FLAG_IVD&lt;/SPAN&gt;={1},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;YearMonth&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;CONTACT_DATE2&lt;/SPAN&gt; = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_3YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"&lt;/SPAN&gt;},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;PAT_ID&lt;/SPAN&gt; = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 18"&lt;/SPAN&gt;},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;VISITTYPE&lt;/SPAN&gt;={'Office visit'},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;FCMVISIT&lt;/SPAN&gt;={1}&lt;BR /&gt;&amp;gt;&lt;BR /&gt;+&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//Return 35&lt;BR /&gt;&amp;lt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;YearMonth&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;FLAG_AMI&lt;/SPAN&gt;={1}, &lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;CONTACT_DATE2&lt;/SPAN&gt; = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_3YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"&lt;/SPAN&gt;},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;PAT_ID&lt;/SPAN&gt; = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 18"&lt;/SPAN&gt;},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;VISITTYPE&lt;/SPAN&gt;={'Office visit'},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;FCMVISIT&lt;/SPAN&gt;={1}&lt;BR /&gt;&amp;gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;PAT_ID&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and see which PAT_IDs are not getting counted by your third expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 15:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438782#M431916</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-05T15:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between these three set analyses?</title>
      <link>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438783#M431917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="1" class="jiveBorder" height="100" style="border: 1px solid rgb(0, 0, 0); width: 328px; height: 69px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;IVD&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;AMI&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;IVD OR AMI&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I just create a straight table using three expressions. This is what I found (see above)&lt;/P&gt;&lt;P&gt;The results in Excel format is attached. Something is not right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 16:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438783#M431917</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2017-09-05T16:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between these three set analyses?</title>
      <link>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438784#M431918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is strange for sure... would you be able to share a qvw to investigate more?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 16:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438784#M431918</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-05T16:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between these three set analyses?</title>
      <link>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438785#M431919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. I will get it ready soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 16:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438785#M431919</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2017-09-05T16:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: What are the differences between these three set analyses?</title>
      <link>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438786#M431920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can validate the output manually for each of your set expressions, that will help you understand what exactly you are getting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Download data For the first expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&amp;nbsp; &lt;BR /&gt;{&amp;lt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;YearMonth&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;FLAG_IVD&lt;/SPAN&gt;={1}, &lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;CONTACT_DATE2&lt;/SPAN&gt; = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_3YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"&lt;/SPAN&gt;},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;PAT_ID&lt;/SPAN&gt; = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 18"&lt;/SPAN&gt;},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;VISITTYPE&lt;/SPAN&gt;={'Office visit'},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;FCMVISIT&lt;/SPAN&gt;={1}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;PAT_ID&lt;/SPAN&gt;) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;break the below in two expressions and download data for each set separately and verify&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;remember * is the intersection, so use vlookup to check what PAT_ID were common between both sets&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;that is the output you are getting&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&amp;nbsp; &lt;BR /&gt;{&lt;BR /&gt;&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;FLAG_IVD&lt;/SPAN&gt;={1}, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;YearMonth&lt;/SPAN&gt;&amp;gt;*&lt;BR /&gt;&amp;lt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;YearMonth&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;CONTACT_DATE2&lt;/SPAN&gt; = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_3YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"&lt;/SPAN&gt;},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;PAT_ID&lt;/SPAN&gt; = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 18"&lt;/SPAN&gt;},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;VISITTYPE&lt;/SPAN&gt;={'Office visit'},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;FCMVISIT&lt;/SPAN&gt;={1}&lt;BR /&gt;&amp;gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;PAT_ID&lt;/SPAN&gt;) &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expressions (Disable the other expression alternately before downloading the data)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a)&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: #0000ff;"&gt; count&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: #800000;"&gt;FLAG_IVD&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;={1}, &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: #800000;"&gt;YearMonth&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&amp;gt; }&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: #800000;"&gt;PAT_ID&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b)&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: #0000ff;"&gt; count&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YearMonth&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONTACT_DATE2&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: #800000;"&gt;"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_3YearAgo) &amp;amp; '&amp;lt;=' &amp;amp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(V_selectedDate))"&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PAT_ID&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: #800000;"&gt;"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 18"&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VISITTYPE&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;={'Office visit'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: #800000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FCMVISIT&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;={1}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 12px; font-style: inherit; font-weight: inherit; color: #800000;"&gt;PAT_ID&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 12px; font-family: inherit;"&gt;As above break into two expressions and download data for each expression &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;individually&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 12px; font-family: inherit;"&gt; and verify what values are returned&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&amp;nbsp; &lt;BR /&gt;{&lt;BR /&gt;&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;FLAG_IVD&lt;/SPAN&gt;={1}&amp;gt;*&lt;BR /&gt;&amp;lt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;YearMonth&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;CONTACT_DATE2&lt;/SPAN&gt; = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_3YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"&lt;/SPAN&gt;},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;PAT_ID&lt;/SPAN&gt; = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 18"&lt;/SPAN&gt;},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;VISITTYPE&lt;/SPAN&gt;={'Office visit'},&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;FCMVISIT&lt;/SPAN&gt;={1}&lt;BR /&gt;&amp;gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;PAT_ID&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2017 07:27:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-are-the-differences-between-these-three-set-analyses/m-p/1438786#M431920</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-09-06T07:27:49Z</dc:date>
    </item>
  </channel>
</rss>

