<?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 Specific Value or Null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Specific-Value-or-Null/m-p/1356659#M822354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also create&amp;nbsp; a new / modify the date field in your script to replace the NULL with a value you can filter, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Sample]:&lt;/P&gt;&lt;P&gt;LOAD *, Alt(Start_Date, 0) as Start_Date_2;&lt;/P&gt;&lt;P&gt;LOAD ID,Date(Date#(Join_Date,'MMYYYY')) as Join_Date,Date(Date#(Start_Date,'MMYYYY')) as Start_Date,Date(Date#(End_Date,'MMYYYY')) as End_Date Inline &lt;/P&gt;&lt;P&gt;[ID,Join_Date,Start_Date,End_Date&lt;/P&gt;&lt;P&gt;1,'012017','012017','022017'&lt;/P&gt;&lt;P&gt;2,'012017','032017','042017'&lt;/P&gt;&lt;P&gt;3,'012017',,'032017'&lt;/P&gt;&lt;P&gt;4,'012017','012017','012017'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use Start_Date_2 with your original set expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Aug 2017 19:51:58 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-08-04T19:51:58Z</dc:date>
    <item>
      <title>Set Analysis Specific Value or Null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Specific-Value-or-Null/m-p/1356655#M822350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get a count done using set analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count if &lt;/P&gt;&lt;P&gt;&amp;nbsp; Start_Date &amp;lt;= Max(SliderDate) OR Start_Date IS NULL&lt;/P&gt;&lt;P&gt;AND &lt;/P&gt;&lt;P&gt;End_Date &amp;gt;= Min(SliderDate) OR End_Date IS NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below expression so far. How can the null condition be included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num(Count({&amp;lt; Start_Date = {'&amp;lt;=$(=Max(Date([Month Year])))'} ,End_Date = {'&amp;gt;=$(=Min(Date([Month Year])))'} &amp;gt; } Distinct ID),'###,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Specific-Value-or-Null/m-p/1356655#M822350</guid>
      <dc:creator>sqlpuzzle</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Specific Value or Null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Specific-Value-or-Null/m-p/1356656#M822351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Num(Count({&amp;lt;Start_Date = {'&amp;lt;=$(=Max(Date([Month Year])))'}, End_Date = {'&amp;gt;=$(=Min(Date([Month Year])))'}&amp;gt;+&amp;lt;ID = {"=Len(Trim([Start_Date])) = 0 or Len(Trim([End_Date])) = 0 "}&amp;gt; } Distinct ID),'###,##0')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 18:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Specific-Value-or-Null/m-p/1356656#M822351</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-04T18:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Specific Value or Null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Specific-Value-or-Null/m-p/1356657#M822352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(&lt;/P&gt;&lt;P&gt;{&amp;lt; ID = e({&amp;lt;Start_Date = {'&amp;gt;$(=Max(Date([Month Year])))'}&amp;gt;+&amp;lt;End_Date = {'&amp;lt;$(=Min(Date([Month Year])))'} &amp;gt; }) &amp;gt;}&lt;/P&gt;&lt;P&gt;Distinct ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if ID is on table record granularity, it might be easier to use an expression without set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: &lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;=Count(Distinct If( Alt(Start_Date,0) &amp;lt;= $(#=Max([Month Year])) and&amp;nbsp;&amp;nbsp; Alt(End_Date,1E9) &amp;gt;= $(#=Min([Month Year])),&amp;nbsp; ID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 18:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Specific-Value-or-Null/m-p/1356657#M822352</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-08-04T18:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Specific Value or Null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Specific-Value-or-Null/m-p/1356658#M822353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain what is happening in the expression. I want to understand your thinking better.&lt;/P&gt;&lt;P&gt;If I want to add one more dimension then can I use like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(Distinct If( Alt(Start_Date,0) &amp;lt;= $(#=Max([Month Year])) and&amp;nbsp;&amp;nbsp; Alt(End_Date,1E9) &amp;gt;= $(#=Min([Month Year])) and Type = 'A',&amp;nbsp; ID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 19:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Specific-Value-or-Null/m-p/1356658#M822353</guid>
      <dc:creator>sqlpuzzle</dc:creator>
      <dc:date>2017-08-04T19:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Specific Value or Null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Specific-Value-or-Null/m-p/1356659#M822354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also create&amp;nbsp; a new / modify the date field in your script to replace the NULL with a value you can filter, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Sample]:&lt;/P&gt;&lt;P&gt;LOAD *, Alt(Start_Date, 0) as Start_Date_2;&lt;/P&gt;&lt;P&gt;LOAD ID,Date(Date#(Join_Date,'MMYYYY')) as Join_Date,Date(Date#(Start_Date,'MMYYYY')) as Start_Date,Date(Date#(End_Date,'MMYYYY')) as End_Date Inline &lt;/P&gt;&lt;P&gt;[ID,Join_Date,Start_Date,End_Date&lt;/P&gt;&lt;P&gt;1,'012017','012017','022017'&lt;/P&gt;&lt;P&gt;2,'012017','032017','042017'&lt;/P&gt;&lt;P&gt;3,'012017',,'032017'&lt;/P&gt;&lt;P&gt;4,'012017','012017','012017'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use Start_Date_2 with your original set expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 19:51:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Specific-Value-or-Null/m-p/1356659#M822354</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-08-04T19:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Specific Value or Null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Specific-Value-or-Null/m-p/1356660#M822355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See also&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3155"&gt;NULL handling in QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4424"&gt;Excluding values in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 19:58:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Specific-Value-or-Null/m-p/1356660#M822355</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-08-04T19:58:22Z</dc:date>
    </item>
  </channel>
</rss>

