<?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 IF statement with set analysis excluding nulls in Data Movement &amp; Streaming</title>
    <link>https://community.qlik.com/t5/Data-Movement-Streaming/IF-statement-with-set-analysis-excluding-nulls/m-p/2483059#M2677</link>
    <description>&lt;P&gt;Oh, I have a mess.&amp;nbsp; Here's the calculation from the end user:&lt;/P&gt;
&lt;P&gt;=If(&lt;BR /&gt;count({&amp;lt;&lt;BR /&gt;[criteria1]={'value1'},&lt;BR /&gt;[criteria2] = {'value2'},&lt;BR /&gt;[criteria3]={'value3'},&lt;BR /&gt;[criteria4]={'value4', 'value5', 'value6', 'value7'},&lt;BR /&gt;[critera5]={'value8'},&lt;BR /&gt;[critera6]-={'value9'}&lt;BR /&gt;&amp;gt;} distinct value10) &amp;gt; 1 &lt;BR /&gt;and &lt;BR /&gt;Len(Concat({&amp;lt;&lt;BR /&gt;[criteria1]={'value1'},&lt;BR /&gt;[criteria2] = {'value2'},&lt;BR /&gt;[criteria3]={'value3'},&lt;BR /&gt;[criteria4]={'value4', 'value5', 'value6', 'value7'},&lt;/P&gt;
&lt;P&gt;[critera5]={'value8'},&lt;BR /&gt;[critera6]-={'value9'}&lt;/P&gt;
&lt;P&gt;&amp;gt;} DISTINCT value11, ', ')&lt;BR /&gt;) &amp;gt; 8, 'Multiple Status', null())&lt;/P&gt;
&lt;P&gt;They want to exclude nulls from their straight table.&lt;/P&gt;
&lt;P&gt;Obviously since this is a measure (not a dimension) the exclude null check box won't work.&amp;nbsp; I tried changing this to a dimension, except there's a Count in there so that doesn't seem to work.&amp;nbsp; &amp;nbsp;Since it's a text value they are going for the include zero check box won't work either.&lt;/P&gt;
&lt;P&gt;Pulling my hair out.&amp;nbsp; I'd like to keep this on the front end because the overall example is way too specific to include it in the data model.&amp;nbsp;&amp;nbsp;Any geniuses out there with a suggestion or two?&amp;nbsp; Please save me from the creativity of others!&lt;/P&gt;</description>
    <pubDate>Wed, 19 Mar 2025 21:48:59 GMT</pubDate>
    <dc:creator>crichter14</dc:creator>
    <dc:date>2025-03-19T21:48:59Z</dc:date>
    <item>
      <title>IF statement with set analysis excluding nulls</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/IF-statement-with-set-analysis-excluding-nulls/m-p/2483059#M2677</link>
      <description>&lt;P&gt;Oh, I have a mess.&amp;nbsp; Here's the calculation from the end user:&lt;/P&gt;
&lt;P&gt;=If(&lt;BR /&gt;count({&amp;lt;&lt;BR /&gt;[criteria1]={'value1'},&lt;BR /&gt;[criteria2] = {'value2'},&lt;BR /&gt;[criteria3]={'value3'},&lt;BR /&gt;[criteria4]={'value4', 'value5', 'value6', 'value7'},&lt;BR /&gt;[critera5]={'value8'},&lt;BR /&gt;[critera6]-={'value9'}&lt;BR /&gt;&amp;gt;} distinct value10) &amp;gt; 1 &lt;BR /&gt;and &lt;BR /&gt;Len(Concat({&amp;lt;&lt;BR /&gt;[criteria1]={'value1'},&lt;BR /&gt;[criteria2] = {'value2'},&lt;BR /&gt;[criteria3]={'value3'},&lt;BR /&gt;[criteria4]={'value4', 'value5', 'value6', 'value7'},&lt;/P&gt;
&lt;P&gt;[critera5]={'value8'},&lt;BR /&gt;[critera6]-={'value9'}&lt;/P&gt;
&lt;P&gt;&amp;gt;} DISTINCT value11, ', ')&lt;BR /&gt;) &amp;gt; 8, 'Multiple Status', null())&lt;/P&gt;
&lt;P&gt;They want to exclude nulls from their straight table.&lt;/P&gt;
&lt;P&gt;Obviously since this is a measure (not a dimension) the exclude null check box won't work.&amp;nbsp; I tried changing this to a dimension, except there's a Count in there so that doesn't seem to work.&amp;nbsp; &amp;nbsp;Since it's a text value they are going for the include zero check box won't work either.&lt;/P&gt;
&lt;P&gt;Pulling my hair out.&amp;nbsp; I'd like to keep this on the front end because the overall example is way too specific to include it in the data model.&amp;nbsp;&amp;nbsp;Any geniuses out there with a suggestion or two?&amp;nbsp; Please save me from the creativity of others!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 21:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/IF-statement-with-set-analysis-excluding-nulls/m-p/2483059#M2677</guid>
      <dc:creator>crichter14</dc:creator>
      <dc:date>2025-03-19T21:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement with set analysis excluding nulls</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/IF-statement-with-set-analysis-excluding-nulls/m-p/2483094#M2679</link>
      <description>&lt;P&gt;Can you try by removing else condition&amp;lt;null()&amp;gt;&lt;/P&gt;
&lt;P&gt;Then enable suppress null values check box&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And suppress zero values&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 02:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/IF-statement-with-set-analysis-excluding-nulls/m-p/2483094#M2679</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2024-09-24T02:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement with set analysis excluding nulls</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/IF-statement-with-set-analysis-excluding-nulls/m-p/2487730#M2745</link>
      <description>&lt;P&gt;Thanks Anat!&amp;nbsp; After several meetings we agreed upon a flag that wasn't as narrow for them.&amp;nbsp; Between that and their filters we found a solution.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 20:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/IF-statement-with-set-analysis-excluding-nulls/m-p/2487730#M2745</guid>
      <dc:creator>crichter14</dc:creator>
      <dc:date>2024-10-17T20:33:39Z</dc:date>
    </item>
  </channel>
</rss>

