<?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 with isnull not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-with-isnull-not-working/m-p/1820214#M1213403</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I used a id_null_flag in the script like -if(isNull(Identifier),1,0) as&amp;nbsp;id_null_flag &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Is this if condition&lt;/P&gt;&lt;P&gt;&amp;nbsp;(IsNull([Identifier]) Or [Identifier]InList("T";"R";"L"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similar to qlikview expression&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Identifier={'T','R','L'},id_null_flag&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;={1}&amp;gt;}DISTINCT&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[Episodes])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jul 2021 00:25:52 GMT</pubDate>
    <dc:creator>ashmitp869</dc:creator>
    <dc:date>2021-07-07T00:25:52Z</dc:date>
    <item>
      <title>set analysis with isnull not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-isnull-not-working/m-p/1819955#M1213374</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Please kindly help me with the set analysis expression :&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Identifier={'T','L','R'} OR&amp;nbsp; ISNULL(Identifier)&amp;gt;}DISTINCT [Episodes])&lt;/P&gt;&lt;P&gt;The IsNull part is not working , I tried to used&amp;nbsp; OR Len(Identifier) &amp;gt; {0}&amp;gt;}&amp;nbsp; and OR Identifier= {"=Len(Identifier) &amp;gt; 0"}&amp;gt;}&lt;BR /&gt;but still red mark is coming.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 05:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-isnull-not-working/m-p/1819955#M1213374</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2021-07-06T05:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with isnull not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-isnull-not-working/m-p/1820005#M1213379</link>
      <description>&lt;P&gt;Set analysis&amp;nbsp; can only replicate selections that you make in the front end. Anything that you can type in a list box or search bar, can be used in set analysis.&amp;nbsp; You'll see that you can't select nulls.&lt;/P&gt;&lt;P&gt;There are two options here.&lt;/P&gt;&lt;P&gt;The ideal solution is to replace the nulls with a value such as "NA", so that you can actually make a selection with them - see an easy way to do this &lt;A href="https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptRegularStatements/NullAsValue.htm" target="_self"&gt;here&amp;nbsp; .&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The value can then be included in set analysis with the others:&amp;nbsp;&lt;EM&gt;Sum({&amp;lt;Identifier={'T','L','R','NA'} &amp;gt;}DISTINCT [Episodes])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Other than that you'll have to use some of the set operators to exclude "has a value" and then add back in the ones you want&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum({-&amp;lt;Identifier={"*" }&amp;gt;+&amp;lt;Identifier={"T" ,"L","R"}&amp;gt;}DISTINCT [Episodes])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Does this work?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 08:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-isnull-not-working/m-p/1820005#M1213379</guid>
      <dc:creator>PiEye</dc:creator>
      <dc:date>2021-07-06T08:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with isnull not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-isnull-not-working/m-p/1820214#M1213403</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I used a id_null_flag in the script like -if(isNull(Identifier),1,0) as&amp;nbsp;id_null_flag &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Is this if condition&lt;/P&gt;&lt;P&gt;&amp;nbsp;(IsNull([Identifier]) Or [Identifier]InList("T";"R";"L"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similar to qlikview expression&lt;/P&gt;&lt;P&gt;Count({&amp;lt;Identifier={'T','R','L'},id_null_flag&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;={1}&amp;gt;}DISTINCT&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[Episodes])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 00:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-isnull-not-working/m-p/1820214#M1213403</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2021-07-07T00:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with isnull not working</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-isnull-not-working/m-p/1820311#M1213413</link>
      <description>&lt;P&gt;Hi Ashmit, this expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;Identifier={'T','R','L'},id_null_flag&amp;nbsp;={1}&amp;gt;}DISTINCT&amp;nbsp;[Episodes])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Will be similar to an "AND". Similar to what I wrote above, if you imagine you are making the equivalent filters in the front end, this would mean you filter on identifier, then the null flag meaning you end up with the intersection of them both.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In order to get an "OR" you can either:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"Add" two set analysis expressions together, like thus:&amp;nbsp;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;&amp;lt;Identifier={'T','R','L'}&amp;gt;+&amp;lt;id_null_flag&amp;nbsp;={1}&amp;gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Include the null value as a replacement in Identifier (my preffered option) and add it to the list of selected identifiers&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;&amp;lt;Identifier={'T','R','L','NA'}&amp;gt; &lt;/EM&gt;(where NA is the substituted null value)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Pi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 08:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-isnull-not-working/m-p/1820311#M1213413</guid>
      <dc:creator>PiEye</dc:creator>
      <dc:date>2021-07-07T08:04:23Z</dc:date>
    </item>
  </channel>
</rss>

