<?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: Complex set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Complex-set-analysis/m-p/2015667#M83904</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Yes I just want to find where it contains MB as part of the string.&lt;/P&gt;
&lt;P&gt;That expression was what I had already tried and isn't giving the correct result.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2022 22:02:55 GMT</pubDate>
    <dc:creator>rachel_delany</dc:creator>
    <dc:date>2022-12-12T22:02:55Z</dc:date>
    <item>
      <title>Complex set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Complex-set-analysis/m-p/2015181#M83875</link>
      <description>&lt;P&gt;I am struggling to get this set analysis to work correctly.&lt;/P&gt;
&lt;P&gt;Example of what I would like.&lt;/P&gt;
&lt;P&gt;Count Id where:&lt;/P&gt;
&lt;P&gt;Type='16' and X="*MB*"&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;Type='16' and Y="*"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried using COUNT({&amp;lt;{Type={'16'}, X={"*MB*"}&amp;gt;+&amp;lt;{Type={'16'}, Y={"*"}&amp;gt;} Id)&lt;/P&gt;
&lt;P&gt;But it's not producing the correct result.&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 01:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Complex-set-analysis/m-p/2015181#M83875</guid>
      <dc:creator>rachel_delany</dc:creator>
      <dc:date>2022-12-12T01:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Complex set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Complex-set-analysis/m-p/2015243#M83884</link>
      <description>&lt;P&gt;Hi, first, question, what you want to find using "*MB*" and "*"? Take values if it is exact '*MB*' or you looking 'MB' somewhere in the middle of string, f.e. 'GGGMBTT' would also be included? If so, than this should work:&lt;/P&gt;
&lt;P&gt;count({&amp;lt;Type={'16'}, X={"*MB*"}&amp;gt; + &amp;lt;Type={'16'}, Y={"*"}&amp;gt;} ID)&lt;/P&gt;
&lt;P&gt;If not, change double quotes " to single one ' to take f.e. values where it is only symbol '*'.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 07:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Complex-set-analysis/m-p/2015243#M83884</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2022-12-12T07:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Complex set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Complex-set-analysis/m-p/2015667#M83904</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Yes I just want to find where it contains MB as part of the string.&lt;/P&gt;
&lt;P&gt;That expression was what I had already tried and isn't giving the correct result.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 22:02:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Complex-set-analysis/m-p/2015667#M83904</guid>
      <dc:creator>rachel_delany</dc:creator>
      <dc:date>2022-12-12T22:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Complex set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Complex-set-analysis/m-p/2015732#M83910</link>
      <description>&lt;P&gt;Ok, but with your logic you now just counting every ID with type=16, as&amp;nbsp; Y={"*"} taking everything, even null values, and your OR is not needed. Also, you are using '+' in set analysis, which I believe means AND or union. For OR '/' should be used.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 07:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Complex-set-analysis/m-p/2015732#M83910</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2022-12-13T07:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Complex set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Complex-set-analysis/m-p/2016195#M83944</link>
      <description>&lt;P&gt;Didn't we both write the same expression?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Y={"*"} will exclude nulls&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;+ is an OR, * is and&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 21:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Complex-set-analysis/m-p/2016195#M83944</guid>
      <dc:creator>rachel_delany</dc:creator>
      <dc:date>2022-12-13T21:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Complex set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Complex-set-analysis/m-p/2017087#M83987</link>
      <description>&lt;P&gt;Your original expression looks correct. What does your data model look like? Are all fields in one table? Are there possibly duplicate rows in a table (as a result of a join in your load script), inflating the count?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 14:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Complex-set-analysis/m-p/2017087#M83987</guid>
      <dc:creator>Lauri</dc:creator>
      <dc:date>2022-12-15T14:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Complex set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Complex-set-analysis/m-p/2017101#M83988</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/30885"&gt;@rachel_delany&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Maybe it's only a syntax error with brackets, see below:&lt;/P&gt;
&lt;P&gt;COUNT( {&amp;lt; Type = {'16'}, X = {"*MB*"} &amp;gt; + &amp;lt; Type = {'16'}, Y = {"*"} &amp;gt;} Id )&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 14:56:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Complex-set-analysis/m-p/2017101#M83988</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2022-12-15T14:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Complex set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Complex-set-analysis/m-p/2018474#M84121</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Try this expression -&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;COUNT(DISTINCT {&amp;lt;Type={'16'}, X={"&lt;/SPAN&gt;&lt;EM&gt;MB&lt;/EM&gt;&lt;SPAN&gt;"}&amp;gt;+&amp;lt;Type={'16'}, Y-={''}&amp;gt;} Id)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SK&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 11:37:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Complex-set-analysis/m-p/2018474#M84121</guid>
      <dc:creator>Saurabh_K14999</dc:creator>
      <dc:date>2022-12-20T11:37:09Z</dc:date>
    </item>
  </channel>
</rss>

