<?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 right after having set multiple conditions into an IF statement (graph expression) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/COUNT-DISTINCT-right-after-having-set-multiple-conditions-into/m-p/1872114#M71965</link>
    <description>&lt;P&gt;You'll have to be more specific about the data structure and conditions. There's no limit on the number of conditions, so I'm guessing the third condition is problematic in itself, rather than the expression in general.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Dec 2021 14:56:45 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2021-12-16T14:56:45Z</dc:date>
    <item>
      <title>COUNT DISTINCT right after having set multiple conditions into an IF statement (graph expression)</title>
      <link>https://community.qlik.com/t5/App-Development/COUNT-DISTINCT-right-after-having-set-multiple-conditions-into/m-p/1872088#M71962</link>
      <description>&lt;P&gt;I need to count distinct occurrences into a dataset which meet three conditions.&lt;/P&gt;
&lt;P&gt;Until now I've tried with something like follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=COUNT(DISTINCT(IF(condition_1 = True AND condition_2 = True AND condition_3 = True, row)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While it worked perfectly using just two conditions, it is when I add the third one that, even if the expression editor doesn't show any warning message, the output I get is entirely wrong when I check it on my data warehouse.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How should I tweak the expression so it gives me a correct output?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/COUNT-DISTINCT-right-after-having-set-multiple-conditions-into/m-p/1872088#M71962</guid>
      <dc:creator>theo_pf</dc:creator>
      <dc:date>2024-11-15T23:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT DISTINCT right after having set multiple conditions into an IF statement (graph expression)</title>
      <link>https://community.qlik.com/t5/App-Development/COUNT-DISTINCT-right-after-having-set-multiple-conditions-into/m-p/1872112#M71964</link>
      <description>&lt;P&gt;Try below one, please share your original expression if the below one doesn`t work&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;COUNT(&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCT&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF(&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;(&lt;/STRONG&gt;condition_1 = True AND condition_2 = True&lt;STRONG&gt; ) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&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; &lt;STRONG&gt;AND &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;(&lt;/STRONG&gt;condition_3 = True&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , row) &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sasi&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 14:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/COUNT-DISTINCT-right-after-having-set-multiple-conditions-into/m-p/1872112#M71964</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2021-12-16T14:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT DISTINCT right after having set multiple conditions into an IF statement (graph expression)</title>
      <link>https://community.qlik.com/t5/App-Development/COUNT-DISTINCT-right-after-having-set-multiple-conditions-into/m-p/1872114#M71965</link>
      <description>&lt;P&gt;You'll have to be more specific about the data structure and conditions. There's no limit on the number of conditions, so I'm guessing the third condition is problematic in itself, rather than the expression in general.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 14:56:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/COUNT-DISTINCT-right-after-having-set-multiple-conditions-into/m-p/1872114#M71965</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-12-16T14:56:45Z</dc:date>
    </item>
  </channel>
</rss>

