<?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: Set analysis : Elements list vs Search strings in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38179#M786838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Feb 2018 12:24:22 GMT</pubDate>
    <dc:creator>bc-thebruuu</dc:creator>
    <dc:date>2018-02-16T12:24:22Z</dc:date>
    <item>
      <title>Set analysis : Elements list vs Search strings</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38169#M786828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;I thought to be pretty good at Set Analysis but recently I bumped in a weird case:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;I need to analyse the temporal evolution of some data and ended up to use search strings in my set analysis.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;Using this solution,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;I have been faced with weird result that I have been able to reproduce in a simple use case:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;Let's load those data:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEY, VALUE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D,3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;VALUE={'1'}&amp;gt;}KEY) is equal to 4&amp;nbsp; ... not surprinsingly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H5&gt;count({&amp;lt;KEY={"=(VALUE=1)"}&amp;gt;}KEY)&amp;nbsp;&amp;nbsp; IS = 1&amp;nbsp; ????? It seems to count only Those Key whose only value is 1!?&lt;/H5&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;P&gt;And How can I get 4 using a search string?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38169#M786828</guid>
      <dc:creator>bc-thebruuu</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis : Elements list vs Search strings</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38170#M786829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a possible explanation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently, the search string solution looks for Keys that &lt;EM&gt;only&lt;/EM&gt; have a VALUE=1. For the others, there are multiple solutions per Key and your VALUE=1 expression won't work because of those multiple values. It probably compares {1, 2} = 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 10:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38170#M786829</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-16T10:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis : Elements list vs Search strings</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38171#M786830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H5 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;KEY={"=SubStringCount(Concat(DISTINCT '|' &amp;amp; VALUE &amp;amp; '|'), '|1|') = 1"}&amp;gt;}KEY)&lt;/H5&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 10:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38171#M786830</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-16T10:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis : Elements list vs Search strings</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38172#M786831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While my explanation would be inline with Peter's above.&lt;/P&gt;&lt;P&gt;An alternate solution could be like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H5 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;count({&amp;lt;KEY={"=Index(Concat(Distinct VALUE, '@'),'1')"}&amp;gt;}KEY)&lt;/H5&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 10:42:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38172#M786831</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-16T10:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis : Elements list vs Search strings</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38173#M786832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, you would need to do a DISTINCT count of KEY in this case&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;KEY={"=SubStringCount(Concat(DISTINCT '|' &amp;amp; VALUE &amp;amp; '|'), '|1|') = 1"}&amp;gt;}KEY)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: This is another possibility&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;KEY = P({&amp;lt;VALUE = {1}&amp;gt;})&amp;gt;}KEY)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG __jive_id="193595" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193595_Capture.PNG" style="height: 67px; width: 620px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 10:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38173#M786832</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-16T10:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis : Elements list vs Search strings</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38174#M786833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason you are getting the result you mention is, I believe, because the VALUE column is referenced as a "naked" dimension with no aggregation expression. Any naked value will be interpreted using &lt;STRONG&gt;only()&lt;/STRONG&gt; as the aggregation expression within Qlik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So&amp;nbsp; VALUE will be interpreted by the calculation engine as&amp;nbsp;&amp;nbsp; ONLY(VALUE)&amp;nbsp; which returns a value when there is a single matching value, if there are multiple values that match then null is returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunny&amp;nbsp; &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ has given a solution to get around this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt; for his presentation at yesterday's Qlik Dev Group Guru Day which covered this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 11:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38174#M786833</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2018-02-16T11:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis : Elements list vs Search strings</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38175#M786834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Extremely useful feedback. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 11:10:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38175#M786834</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-16T11:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis : Elements list vs Search strings</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38176#M786835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Makes me feel the pain of not being able to be present yesterday (all those heroes in one spot !). But then, it was the wife's birthday...&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 11:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38176#M786835</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-16T11:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis : Elements list vs Search strings</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38177#M786836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh nice... Happy Birthday Mrs. Cammaert &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;... It will be easy to remember your wife's birthday as tomorrow is my wedding anniversary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 11:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38177#M786836</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-16T11:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis : Elements list vs Search strings</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38178#M786837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, so you are in a similar situation as I am. What did you do, merge Valentine's day into your wedding anniversary?&lt;/P&gt;&lt;P&gt;I tried to do that but it didn't work out &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 11:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38178#M786837</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-16T11:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis : Elements list vs Search strings</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38179#M786838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 12:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Elements-list-vs-Search-strings/m-p/38179#M786838</guid>
      <dc:creator>bc-thebruuu</dc:creator>
      <dc:date>2018-02-16T12:24:22Z</dc:date>
    </item>
  </channel>
</rss>

