<?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 include null dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-include-null-dates/m-p/1795687#M1211183</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29675"&gt;@Frank_Hartmann&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply,&lt;/P&gt;&lt;P&gt;Unfortunately I can't add a where() on the script because I need all the lines for other measures.&lt;/P&gt;&lt;P&gt;I can only create calculated fields and use a set analysis to make it work&lt;/P&gt;</description>
    <pubDate>Tue, 30 Mar 2021 13:46:00 GMT</pubDate>
    <dc:creator>YoussefBelloum</dc:creator>
    <dc:date>2021-03-30T13:46:00Z</dc:date>
    <item>
      <title>set analysis include null dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-include-null-dates/m-p/1795633#M1211178</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I'm struggling on counting lines with dates = null&lt;/P&gt;&lt;P&gt;here is a sample below:&lt;/P&gt;&lt;P&gt;ID, TYPE, DATE1, DATE2&lt;BR /&gt;1, A, 31/12/2021, 31/12/2025&lt;BR /&gt;2, A, 31/12/2022, 31/12/2024&lt;BR /&gt;3, A, 31/12/2023, 31/12/2024&lt;BR /&gt;4, A, 31/12,2020, 31/12/2030&lt;BR /&gt;5, A, 31/12,2020, 31/12/2040&lt;BR /&gt;6, A, 31/12,2020, 31/12/2050&lt;BR /&gt;7, A, 31/12,2020,&lt;BR /&gt;8, A, 31/12,2020,&lt;BR /&gt;9, A, 31/12,2020,&lt;BR /&gt;10, A, ,&lt;BR /&gt;11, A, ,&lt;BR /&gt;12, A, ,&lt;/P&gt;&lt;P&gt;I need to count the ID's where DATE1 &amp;lt;= 31/12/2020 including lines where DATE1 and DATE2 are null also&lt;/P&gt;&lt;P&gt;The result should be this:&lt;/P&gt;&lt;P&gt;4, A, 31/12,2020, 31/12/2030&lt;BR /&gt;5, A, 31/12,2020, 31/12/2040&lt;BR /&gt;6, A, 31/12,2020, 31/12/2050&lt;BR /&gt;7, A, 31/12,2020,&lt;BR /&gt;8, A, 31/12,2020,&lt;BR /&gt;9, A, 31/12,2020,&lt;BR /&gt;10, A, ,&lt;BR /&gt;11, A, ,&lt;BR /&gt;12, A, ,&lt;/P&gt;&lt;P&gt;count(ID)= 9&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with some set analysis using&amp;nbsp; NULL FLAG columns creating on the script ( using len trim) ) but it is not working..&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Youssef B&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 11:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-include-null-dates/m-p/1795633#M1211178</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2021-03-30T11:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis include null dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-include-null-dates/m-p/1795672#M1211182</link>
      <description>&lt;P&gt;Maybe like this?&lt;/P&gt;&lt;LI-CODE lang="java"&gt;tmp:
Load * Inline [
ID, TYPE, DATE1, DATE2
1, A, 31/12/2021, 31/12/2025
2, A, 31/12/2022, 31/12/2024
3, A, 31/12/2023, 31/12/2024
4, A, 31/12/2020, 31/12/2030
5, A, 31/12/2020, 31/12/2040
6, A, 31/12/2020, 31/12/2050
7, A, 31/12/2020,
8, A, 31/12/2020,
9, A, 31/12/2020,
10, A, ,
11, A, ,
12, A, ,];

NoConcatenate

Load * Resident tmp Where DATE1&amp;lt;= '31/12/2020' ;DROP Table tmp;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Frank_Hartmann_0-1617110104996.png" style="width: 576px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52069i681B359F6B377E11/image-dimensions/576x283?v=v2" width="576" height="283" role="button" title="Frank_Hartmann_0-1617110104996.png" alt="Frank_Hartmann_0-1617110104996.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 13:15:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-include-null-dates/m-p/1795672#M1211182</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2021-03-30T13:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis include null dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-include-null-dates/m-p/1795687#M1211183</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29675"&gt;@Frank_Hartmann&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply,&lt;/P&gt;&lt;P&gt;Unfortunately I can't add a where() on the script because I need all the lines for other measures.&lt;/P&gt;&lt;P&gt;I can only create calculated fields and use a set analysis to make it work&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 13:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-include-null-dates/m-p/1795687#M1211183</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2021-03-30T13:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis include null dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-include-null-dates/m-p/1795704#M1211184</link>
      <description>&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tmp:
Load * Inline [
ID, TYPE, DATE1, DATE2
1, A, 31/12/2021, 31/12/2025
2, A, 31/12/2022, 31/12/2024
3, A, 31/12/2023, 31/12/2024
4, A, 31/12/2020, 31/12/2030
5, A, 31/12/2020, 31/12/2040
6, A, 31/12/2020, 31/12/2050
7, A, 31/12/2020,
8, A, 31/12/2020,
9, A, 31/12/2020,
10, A, ,
11, A, ,
12, A, ,];&lt;/LI-CODE&gt;&lt;P&gt;Dim:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ID, TYPE&lt;/LI-CODE&gt;&lt;P&gt;Exp1:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;only({&amp;lt;DATE1={"=DATE1 &amp;lt;= '31/12/2020' "}&amp;gt;}DATE1)&lt;/LI-CODE&gt;&lt;P&gt;Exp2:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(only({&amp;lt;DATE1={"=DATE1 &amp;lt;= '31/12/2020' "}&amp;gt;}DATE1)&amp;lt;&amp;gt;null(),DATE2,null())&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Frank_Hartmann_0-1617113986732.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52083i980EC682FAE54B97/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Frank_Hartmann_0-1617113986732.png" alt="Frank_Hartmann_0-1617113986732.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 14:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-include-null-dates/m-p/1795704#M1211184</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2021-03-30T14:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis include null dates</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-include-null-dates/m-p/1795712#M1211185</link>
      <description>&lt;P&gt;this one is working fine:&amp;nbsp;&lt;/P&gt;&lt;P&gt;only({&amp;lt;DATE1={"=DATE1 &amp;lt;= '31/12/2020' "}&amp;gt;}DATE1)&lt;/P&gt;&lt;P&gt;what is the trick here ?&amp;nbsp; how does it include the NULL lines ?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 14:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-include-null-dates/m-p/1795712#M1211185</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2021-03-30T14:43:27Z</dc:date>
    </item>
  </channel>
</rss>

