<?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: Expression set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1928607#M1218886</link>
    <description>&lt;P&gt;hi, now looking at your expression it does make sense that you use an if statement for that condition.&amp;nbsp; i was picking up from a reply from someone else.&amp;nbsp; regardless, the principle is that same.&amp;nbsp; the idea im getting across is around organizing your conditions. whether you use set analysis or if statements,&amp;nbsp; the principle is the same.&amp;nbsp; what i am proposing is a solution approach, you need to tweak it in the implementation part.&amp;nbsp; as you dont have a data model nor example, everyone will just be guessing&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2022 13:35:35 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2022-05-10T13:35:35Z</dc:date>
    <item>
      <title>Expression set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1926727#M1218812</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;This is related to my previous post , I have got how to consider the null values . Now I am using a set analysis in which i am comparing row wise data &lt;STRONG&gt;(Category=(Sub_Cat))&lt;/STRONG&gt; and the below expression is working perfectly fine ,&lt;/P&gt;
&lt;P&gt;Now here I also need to include the &lt;STRONG&gt;null&lt;/STRONG&gt; values from Category&amp;nbsp; as well&amp;nbsp; , how do I do this in the expression can anyone please help me in achieving this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=count(Distinct {&amp;lt;Status-={'Delivered},&lt;BR /&gt;Severity={'1 - Critical', }&amp;gt;}&lt;BR /&gt;if(OrderDate&amp;lt;DelDate&amp;nbsp; &amp;nbsp; and Category=(Sub_Cat)),ID))&lt;/P&gt;
&lt;P&gt;thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 08:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1926727#M1218812</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2022-05-05T08:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Expression set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1926906#M1218822</link>
      <description>&lt;P&gt;Hi Expertise any help on my post&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 13:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1926906#M1218822</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2022-05-05T13:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expression set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1926976#M1218823</link>
      <description>&lt;P&gt;You could make the null values equal to something in your script, then call out that value in the Set Analysis too.&lt;/P&gt;
&lt;P&gt;NullAsValue Category;&lt;/P&gt;
&lt;P&gt;Set NullValue = 'Null';&lt;/P&gt;
&lt;P&gt;When the script runs it will make all null values for Category equal to 'Null', and your expression might be;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=count(Distinct {&amp;lt;Status-={'Delivered},&lt;/SPAN&gt;&lt;SPAN&gt;Severity={'1 - Critical', }&amp;gt;}&lt;/SPAN&gt;&lt;SPAN&gt;if(OrderDate&amp;lt;DelDate and (Category=(Sub_Cat) or Category=('Null'))),ID))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/NullAsValue.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/NullAsValue.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 15:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1926976#M1218823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-05T15:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Expression set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1926996#M1218825</link>
      <description>&lt;P&gt;Thanks for the reply John&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my case case the null values are in&amp;nbsp; text format , therefore I have renamed all of them to NULL&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hence applied your logic but this don't work ...&lt;/P&gt;
&lt;P&gt;Is there any other way to work around ...&lt;/P&gt;
&lt;P&gt;Because the data is going in row wise comparision&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 15:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1926996#M1218825</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2022-05-05T15:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Expression set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1927021#M1218827</link>
      <description>&lt;P&gt;Perhaps this...&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=count({&amp;lt;Status-={'Delivered},&lt;/SPAN&gt;&lt;SPAN&gt;Severity={'1 - Critical'}, &lt;/SPAN&gt;&lt;SPAN&gt;OrderDate={'&amp;lt;$(=DelDate)'},Category={'Sub_Cat','Null'}&amp;gt;}Distinct ID))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 16:39:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1927021#M1218827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-05T16:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expression set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1927160#M1218837</link>
      <description>&lt;P&gt;Sorry but this is not working&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 06:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1927160#M1218837</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2022-05-06T06:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Expression set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1927182#M1218839</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Can you provide the sample data and expected ouput&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 07:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1927182#M1218839</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2022-05-06T07:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Expression set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1928115#M1218868</link>
      <description>&lt;P&gt;you will need to clearly identify all your conditions.&amp;nbsp; normally what JohnInSD suggested should work.&amp;nbsp; where he added Null as a condition for Category.&amp;nbsp; but this is assuming all the other conditions work for the NULL record.&amp;nbsp; so you need to identify all the other criteria for your NULL record.&amp;nbsp; for example if all these conditions are irrelevant to your NULL record then maybe you need:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;=count({&amp;lt;Status-={'Delivered},&lt;/SPAN&gt;&lt;SPAN&gt;Severity={'1 - Critical'},&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;OrderDate={'&amp;lt;$(=DelDate)'},Category={'Sub_Cat','Null'}&amp;gt;+&amp;lt;Category={'Null'}&amp;gt;}Distinct ID))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;which does the same thing as an OR.&amp;nbsp; if you need more conditions to go with the NULL, just add it in.&lt;BR /&gt;&lt;BR /&gt;if this still does not work you may have to add sample data so there is less guess work on anyone wanting to help&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 15:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1928115#M1218868</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2022-05-09T15:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Expression set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1928122#M1218869</link>
      <description>&lt;P&gt;to clarify, your original expression is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Status&amp;lt;&amp;gt;Delivered and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Severity&amp;lt;&amp;gt;1 - Critical and&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;OrderDate &amp;lt;DelDate and Category=Sub_Cat&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;adding Null to sub cat is like:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Status&amp;lt;&amp;gt;Delivered and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Severity&amp;lt;&amp;gt;1 - Critical and&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;OrderDate &amp;lt;DelDate and (Category=Sub_Cat or Category =Null)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;assuming that you wanted the original conditions and just include Category Null, the following set analysis:&lt;BR /&gt;&lt;BR /&gt;{&amp;lt;Status-={'Delivered},Severity={'1 - Critical'},&amp;nbsp;OrderDate={'&amp;lt;$(=DelDate)'},Category={'Sub_Cat','Null'}&amp;gt;+&amp;lt;Category={'Null'}&amp;gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;is&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Status&amp;lt;&amp;gt;Delivered and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Severity&amp;lt;&amp;gt;1 - Critical and&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;OrderDate &amp;lt;DelDate and Category=Sub_Cat &lt;/SPAN&gt;&lt;SPAN&gt;or Category =Null&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 16:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1928122#M1218869</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2022-05-09T16:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Expression set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1928124#M1218870</link>
      <description>&lt;P&gt;this is of course assuming you replaced all null values with the word Null as suggested in earlier comments&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 16:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1928124#M1218870</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2022-05-09T16:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Expression set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1928424#M1218881</link>
      <description>&lt;P&gt;Hi Edvin&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply&amp;nbsp; and wonderful&amp;nbsp; explanation&amp;nbsp; from you above concept I think&amp;nbsp; the highlighted part seems to be mistaken&amp;nbsp; because Sub_Cat is a field and I am not sure why did you put it into single quotes&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smilingjohn_0-1652174054174.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79043i5B682BBE85637900/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smilingjohn_0-1652174054174.png" alt="smilingjohn_0-1652174054174.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 09:15:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1928424#M1218881</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2022-05-10T09:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Expression set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1928607#M1218886</link>
      <description>&lt;P&gt;hi, now looking at your expression it does make sense that you use an if statement for that condition.&amp;nbsp; i was picking up from a reply from someone else.&amp;nbsp; regardless, the principle is that same.&amp;nbsp; the idea im getting across is around organizing your conditions. whether you use set analysis or if statements,&amp;nbsp; the principle is the same.&amp;nbsp; what i am proposing is a solution approach, you need to tweak it in the implementation part.&amp;nbsp; as you dont have a data model nor example, everyone will just be guessing&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 13:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-set-analysis/m-p/1928607#M1218886</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2022-05-10T13:35:35Z</dc:date>
    </item>
  </channel>
</rss>

