<?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: Strange set analysis results!!! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281111#M401684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you want to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;='1526664 Patient number:&amp;nbsp; ' &amp;amp; count(distinct {$&amp;lt;PAT_ID={"=WildMatch(Concat(DISTINCT COMPONENT_ID, ', '), '*1526664*')"}&amp;gt;}PAT_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAT_ID is made up of several COMPONENT_ID, so in order to check if one of them is 1526664, you need to either use WildMatch, Index or SubStringCount function with Concat() on COMPONENT_ID to make this work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jan 2017 12:07:20 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-06T12:07:20Z</dc:date>
    <item>
      <title>Strange set analysis results!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281105#M401678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;I am using following syntax to get the number of patients who had a lab test (ID 1526664),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(distinct {$&amp;lt;PAT_ID={'=COMPONENT_ID=1526664'}&amp;gt;}PAT_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It returns only 1 even though there are 8 unique PAT_IDs. However, when 1526664 in the listbox is selected, this syntax returned correct number (8) of distinct PAT_ID. I cannot understand this. Please advice. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample project is attached for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Longmatch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 23:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281105#M401678</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2017-01-05T23:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Strange set analysis results!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281106#M401679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might be what you are looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-01-06 00_23_26-Text Object Properties [1526664 Patient number_   1].png" class="jive-image image-1" src="/legacyfs/online/148517_2017-01-06 00_23_26-Text Object Properties [1526664 Patient number_   1].png" style="height: 330px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 23:24:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281106#M401679</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-05T23:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Strange set analysis results!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281107#M401680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Petter, &lt;/P&gt;&lt;P&gt;Thank you for your helps. I am trying to use Nicole Smith's method for this kind of work. Please refer her reply to my previous post - &lt;A href="https://community.qlik.com/message/1184452"&gt;Nested aggregation helps.&lt;/A&gt; I just want to see know why it does not work here. &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>Fri, 06 Jan 2017 01:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281107#M401680</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2017-01-06T01:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Strange set analysis results!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281108#M401681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK - so do you still want anyone to answer your question or did my suggestion answer it? If not please let us know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 08:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281108#M401681</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-06T08:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Strange set analysis results!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281109#M401682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your Intend. And Above Provides expression seems work. What was you are expecting into?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 08:49:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281109#M401682</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-01-06T08:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Strange set analysis results!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281110#M401683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you - Petter and Anil,&lt;/P&gt;&lt;P&gt;Petter provided works but actually my question is what is the problem in my expression and the strange behavior in my sample project. I am planning to use this logic in my project for intersection set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 11:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281110#M401683</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2017-01-06T11:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Strange set analysis results!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281111#M401684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you want to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;='1526664 Patient number:&amp;nbsp; ' &amp;amp; count(distinct {$&amp;lt;PAT_ID={"=WildMatch(Concat(DISTINCT COMPONENT_ID, ', '), '*1526664*')"}&amp;gt;}PAT_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAT_ID is made up of several COMPONENT_ID, so in order to check if one of them is 1526664, you need to either use WildMatch, Index or SubStringCount function with Concat() on COMPONENT_ID to make this work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 12:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281111#M401684</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-06T12:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Strange set analysis results!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281112#M401685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/146975"&gt;petter-s&lt;/A&gt;‌ gave the correct answer of:&lt;/P&gt;&lt;P&gt;count( {$&amp;lt;COMPONENT_ID={1526664}&amp;gt;} distinct PAT_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should go with this because it is the simplest approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your last post needed aggregations within the set analysis, which is why it was more complicated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 15:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281112#M401685</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2017-01-06T15:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Strange set analysis results!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281113#M401686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, Thank you for your helps. Your solution works well. I wish I can also make yours as correct answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 18:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281113#M401686</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2017-01-06T18:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Strange set analysis results!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281114#M401687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hahahaha no problem my friend. My solution was just to explain why your attempt did not work, but I would go with what &lt;A href="https://community.qlik.com/people/petter-s"&gt;petter-s&lt;/A&gt;‌ gave because that is the way to do this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 19:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-set-analysis-results/m-p/1281114#M401687</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-06T19:26:39Z</dc:date>
    </item>
  </channel>
</rss>

