<?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 - creating a modifier based on count of distinct rows in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-creating-a-modifier-based-on-count-of-distinct-rows/m-p/2045150#M85984</link>
    <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;The expressions appear to be valid. Perhaps the problem is in the combination of the expression and the dimension that you are using it with. If you can post a sample app and highlight your problem there, I'd be able to troubleshoot it for you...&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
    <pubDate>Fri, 03 Mar 2023 16:46:19 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2023-03-03T16:46:19Z</dc:date>
    <item>
      <title>Set Analysis - creating a modifier based on count of distinct rows</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-creating-a-modifier-based-on-count-of-distinct-rows/m-p/2045148#M85983</link>
      <description>&lt;P&gt;I have a table of household ids and programs, as shown here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="50%"&gt;&lt;STRONG&gt;Program&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;H1&lt;/TD&gt;
&lt;TD width="50%"&gt;Food&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;H1&lt;/TD&gt;
&lt;TD width="50%"&gt;Workforce&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;H1&lt;/TD&gt;
&lt;TD width="50%"&gt;Holiday&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;H2&lt;/TD&gt;
&lt;TD width="50%"&gt;Food&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;H2&lt;/TD&gt;
&lt;TD width="50%"&gt;Holiday&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;H3&lt;/TD&gt;
&lt;TD width="50%"&gt;Food&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want two KPIs: one that displays the number of households participating in exactly 2 programs and one that displays the number of households participating in more than 2 programs.&amp;nbsp; The below expresions are not working.&amp;nbsp; I am getting results that I cannot understand, sometimes the same household will show up in both KPIs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=Count({&amp;lt;[ID] ={"=count(distinct [Program])=2"}&amp;gt;}distinct[ID])&lt;/P&gt;
&lt;P&gt;=Count({&amp;lt;[ID] ={"=count(distinct [Program])&amp;gt;2"}&amp;gt;}distinct[ID])&lt;/P&gt;
&lt;P&gt;Is this even possible?&amp;nbsp; Where am I going wrong?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 16:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-creating-a-modifier-based-on-count-of-distinct-rows/m-p/2045148#M85983</guid>
      <dc:creator>walkasia</dc:creator>
      <dc:date>2023-03-03T16:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - creating a modifier based on count of distinct rows</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-creating-a-modifier-based-on-count-of-distinct-rows/m-p/2045150#M85984</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;
&lt;P&gt;The expressions appear to be valid. Perhaps the problem is in the combination of the expression and the dimension that you are using it with. If you can post a sample app and highlight your problem there, I'd be able to troubleshoot it for you...&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 16:46:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-creating-a-modifier-based-on-count-of-distinct-rows/m-p/2045150#M85984</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2023-03-03T16:46:19Z</dc:date>
    </item>
  </channel>
</rss>

