<?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: How to create a flag for null Date values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-for-null-Date-values/m-p/1718086#M724455</link>
    <description>&lt;P&gt;To capture the NULL, you can try all these options.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(isNull([Last Update Date]) Or [Last Update Date]='' Or Len(Trim([Last Update Date]))=0
,1,0)&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 11 Jun 2020 21:25:35 GMT</pubDate>
    <dc:creator>Saravanan_Desingh</dc:creator>
    <dc:date>2020-06-11T21:25:35Z</dc:date>
    <item>
      <title>How to create a flag for null Date values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-for-null-Date-values/m-p/1718051#M724453</link>
      <description>&lt;P&gt;I want to create a flag to denote a project that has never had an update. In my dataset one project can appear multiple times if it's had multiple updates and [Last Update Date] will give the date of that update. I am using my [Last Update Date] in a different flag but realize i am missing out on all those projects that don't get counted because they don't have a [Last Update Date].&lt;/P&gt;&lt;P&gt;How can I flag the projects where the [Last Update Date] is null because it has never been updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the load script right after [Last Update Date] I tried the line&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(isnull([Last Update Date]),1,0)&lt;/LI-CODE&gt;&lt;P&gt;but that only flags when the column [Last Update Date] is null rather than when that column is null for a particular project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I'm trying&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Null_Flag_Test:
Load
      [Project Code], 
      date(MONTHSTART(max([Last Update Date])),'DD/MM/YYYY')  as MaxUpdateDate,
      if(len(date(MONTHSTART(max([Last Update Date])),'YYYY-MMM')),0,1)
From
[..DataSource.qvd]
(qvd)
group by [Project Code];&lt;/LI-CODE&gt;&lt;P&gt;but it doesnt seem to work either. I figure that given there are multiple update dates that this table would give me the project code and its most recent [Last Update Date] and if the column was null then there would be no Max so it would get flagged in the third column. It doesnt seem to work though. Can anyone offer suggestions?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-for-null-Date-values/m-p/1718051#M724453</guid>
      <dc:creator>DaithiOK</dc:creator>
      <dc:date>2024-11-16T00:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a flag for null Date values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-for-null-Date-values/m-p/1718065#M724454</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Firstly, in both the if statements you are missing the condition.&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(isnull([Last Update Date])=-1,1,0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; Or I would suggest&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(len(Max([Last Update Date]))&amp;lt;&amp;gt;0,0,1) as Missing_Update&lt;/LI-CODE&gt;&lt;P&gt;All 1's would give you projects with no update date.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 19:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-for-null-Date-values/m-p/1718065#M724454</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2020-06-11T19:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a flag for null Date values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-for-null-Date-values/m-p/1718086#M724455</link>
      <description>&lt;P&gt;To capture the NULL, you can try all these options.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(isNull([Last Update Date]) Or [Last Update Date]='' Or Len(Trim([Last Update Date]))=0
,1,0)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 11 Jun 2020 21:25:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-for-null-Date-values/m-p/1718086#M724455</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-06-11T21:25:35Z</dc:date>
    </item>
  </channel>
</rss>

