<?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 Within Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Within-Set-Analysis/m-p/1945355#M77915</link>
    <description>&lt;P&gt;hi everyone,&lt;/P&gt;
&lt;P&gt;the following set analysis fails to give the right output :&lt;/P&gt;
&lt;P&gt;count({&amp;lt;subject_action = {"=count(distinct sys_id) &amp;gt;= $(vMinTicketCount)"},&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;subject_action = {"=(count(distinct opened_at_ym)/$(=count(total distinct opened_at_ym))) &amp;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; $(vParticipationThreshold)"}&amp;gt;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;distinct sys_id)&lt;/P&gt;
&lt;P&gt;it takes only the second part of it into account (marked with bold).&lt;/P&gt;
&lt;P&gt;tried to include the first part inside the second set analysis but I guess I'm missing an apostrophe or something.&lt;/P&gt;
&lt;P&gt;hopefully some expert here can help.&lt;/P&gt;
&lt;P&gt;thanks!!!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 19 Jun 2022 10:49:53 GMT</pubDate>
    <dc:creator>Ori</dc:creator>
    <dc:date>2022-06-19T10:49:53Z</dc:date>
    <item>
      <title>Set Analysis Within Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Within-Set-Analysis/m-p/1945355#M77915</link>
      <description>&lt;P&gt;hi everyone,&lt;/P&gt;
&lt;P&gt;the following set analysis fails to give the right output :&lt;/P&gt;
&lt;P&gt;count({&amp;lt;subject_action = {"=count(distinct sys_id) &amp;gt;= $(vMinTicketCount)"},&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;subject_action = {"=(count(distinct opened_at_ym)/$(=count(total distinct opened_at_ym))) &amp;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; $(vParticipationThreshold)"}&amp;gt;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;distinct sys_id)&lt;/P&gt;
&lt;P&gt;it takes only the second part of it into account (marked with bold).&lt;/P&gt;
&lt;P&gt;tried to include the first part inside the second set analysis but I guess I'm missing an apostrophe or something.&lt;/P&gt;
&lt;P&gt;hopefully some expert here can help.&lt;/P&gt;
&lt;P&gt;thanks!!!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2022 10:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Within-Set-Analysis/m-p/1945355#M77915</guid>
      <dc:creator>Ori</dc:creator>
      <dc:date>2022-06-19T10:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Within Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Within-Set-Analysis/m-p/1945407#M77925</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/178010"&gt;@Ori&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can match multiple items against a field in set analysis by comma separating the values you are matching, rather than repeating the field. So what you require may be:&lt;/P&gt;
&lt;P&gt;count({&amp;lt;subject_action = {"=count(distinct sys_id) &amp;gt;= $(vMinTicketCount)",&lt;STRONG style="font-family: inherit;"&gt;"=(count(distinct opened_at_ym)/$(=count(total distinct opened_at_ym))) &amp;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; $(vParticipationThreshold)"}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I'm slightly confused as to what this is doing though. What values are contained in the &lt;STRONG&gt;subject_action&lt;/STRONG&gt; field that you are trying to match to?&lt;/P&gt;
&lt;P&gt;Always the best way to test set analysis is to create a table with any fields referenced in the set analysis as the dimension (in this case subject_action) and you can then see which are matched. To see those that are not matched you need to add a second expression with just&amp;nbsp;&lt;STRONG&gt;count(subject_action)&lt;/STRONG&gt; to show all possible values in that field.&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2022 22:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Within-Set-Analysis/m-p/1945407#M77925</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2022-06-19T22:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Within Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Within-Set-Analysis/m-p/1946552#M77991</link>
      <description>&lt;P&gt;apparently its as simple as adding "and" between the conditions :&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;count({&amp;lt;$(=$(vAggSelector)) = {"=(Count(distinct sys_id) / count(total &amp;lt;$(=$(vTotalDimension))&amp;gt; distinct&amp;nbsp; $(=$(vOpenatPeriod)))) &amp;gt;= $(vAvgPerPeriod)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;and&lt;/STRONG&gt; (count(distinct $(=$(vOpenatPeriod)))/$(=count(total &amp;lt;$(=$(vTotalDimension))&amp;gt; distinct $(=$(vOpenatPeriod))))) &amp;gt;= $(vParticipationThreshold) "}&amp;gt;}&lt;/SPAN&gt; &lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;distinct sys_id)&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;count(distinct sys_id)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 06:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Within-Set-Analysis/m-p/1946552#M77991</guid>
      <dc:creator>Ori</dc:creator>
      <dc:date>2022-06-22T06:11:06Z</dc:date>
    </item>
  </channel>
</rss>

