<?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: count distinct if in Search the Community</title>
    <link>https://community.qlik.com/t5/Search-the-Community/count-distinct-if/m-p/1858702#M733</link>
    <description>&lt;P&gt;=Count( {&amp;lt;&lt;SPAN&gt;COUNTERPARTYID-MUSTERINO&lt;/SPAN&gt; = {"=&lt;SPAN&gt;TOTAL_BALANCE_ECL&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;TOTAL_BALANCE_ECL_ORG&lt;/SPAN&gt;"}&amp;gt;} &lt;SPAN&gt;COUNTERPARTYID-MUSTERINO&lt;/SPAN&gt;)&lt;/P&gt;</description>
    <pubDate>Fri, 12 Nov 2021 12:36:52 GMT</pubDate>
    <dc:creator>Venus1997</dc:creator>
    <dc:date>2021-11-12T12:36:52Z</dc:date>
    <item>
      <title>count distinct if</title>
      <link>https://community.qlik.com/t5/Search-the-Community/count-distinct-if/m-p/1858242#M729</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;I have total_balance_ecl, total_balance_ecl_org and COUNTERPARTYID-MUSTERINO columns. I want to count&amp;nbsp; COUNTERPARTYID-MUSTERINO of which total_balance_ecl not equal to total_balance_ecl column.&lt;/P&gt;
&lt;P&gt;=count({&amp;lt;TOTAL_BALANCE_ECL&amp;lt;&amp;gt;{TOTAL_BALANCE_ECL_ORG}&amp;gt;}distinct [COUNTERPARTYID-MUSTERINO])&lt;/P&gt;
&lt;P&gt;formula above doesnt work. thanks for any help in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 14:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Search-the-Community/count-distinct-if/m-p/1858242#M729</guid>
      <dc:creator>tuncfiratvb</dc:creator>
      <dc:date>2021-11-11T14:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: count distinct if</title>
      <link>https://community.qlik.com/t5/Search-the-Community/count-distinct-if/m-p/1858619#M731</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/153536"&gt;@tuncfiratvb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Try below expression&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=count({&amp;lt;TOTAL_BALANCE_ECL -= {TOTAL_BALANCE_ECL_ORG}&amp;gt;}distinct [COUNTERPARTYID-MUSTERINO])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Also If possible, please share the sample data or&lt;/P&gt;
&lt;P&gt;You can create a flag at the script level and use the same flag in the set analysis.&lt;/P&gt;
&lt;P&gt;eg.&lt;/P&gt;
&lt;P&gt;you can create the below flag at the script level&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If((&lt;SPAN&gt;TOTAL_BALANCE_ECL-TOTAL_BALANCE_ECL_ORG)-=0,1,0) as Flag&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and use the same like below&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=count({&amp;lt;Flag={'1'}&amp;gt;}distinct [COUNTERPARTYID-MUSTERINO])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 11:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Search-the-Community/count-distinct-if/m-p/1858619#M731</guid>
      <dc:creator>abhijitnalekar</dc:creator>
      <dc:date>2021-11-12T11:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: count distinct if</title>
      <link>https://community.qlik.com/t5/Search-the-Community/count-distinct-if/m-p/1858702#M733</link>
      <description>&lt;P&gt;=Count( {&amp;lt;&lt;SPAN&gt;COUNTERPARTYID-MUSTERINO&lt;/SPAN&gt; = {"=&lt;SPAN&gt;TOTAL_BALANCE_ECL&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;TOTAL_BALANCE_ECL_ORG&lt;/SPAN&gt;"}&amp;gt;} &lt;SPAN&gt;COUNTERPARTYID-MUSTERINO&lt;/SPAN&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 12:36:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Search-the-Community/count-distinct-if/m-p/1858702#M733</guid>
      <dc:creator>Venus1997</dc:creator>
      <dc:date>2021-11-12T12:36:52Z</dc:date>
    </item>
  </channel>
</rss>

