<?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: Finding latest date for a field, unless it has a null value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Finding-latest-date-for-a-field-unless-it-has-a-null-value/m-p/1425744#M817660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The app to host relationships are predefined in the datasource, which i am making a RESTful API call to in order to retrieve data. The scheduling information is coming from a different datasource that is used for scheduling host migrations. API call 1 brings in all application-host data, API call 2 brings in all host scheduling information and is linked via the host Inventory #&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Sep 2017 23:01:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-09-03T23:01:55Z</dc:date>
    <item>
      <title>Finding latest date for a field, unless it has a null value</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-latest-date-for-a-field-unless-it-has-a-null-value/m-p/1425737#M817653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a table chart that shows an application and its latest scheduled date. &lt;/P&gt;&lt;P&gt;The data is coming from two separate tables, connected by a hostname key&lt;/P&gt;&lt;P&gt;An application can live on multiple hosts, and those hosts are migrated at different times, so one app can have several "scheduled dates". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to do is find the latest date associated with an application.&lt;/P&gt;&lt;P&gt;But there's a catch... If one of the hosts that an app lives on has not been assigned a scheduled date yet, I need it to reflect that(ideally by displaying "Not Scheduled" in the date field). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically if all the hosts an app lives on are scheduled, show me the latest date. If at least one of the hosts an app lives on has not been scheduled, show me some sort of message informing me of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I have tried using the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=max(aggr([Schedule Date],APPLICATION_NAME,[Host Name]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this will still return the latest scheduled date, even if some hosts have not been scheduled. I suppose this has something to do with the way Null values are handled but I am fairly new to QV and am not sure how to go about this. &lt;/P&gt;&lt;P&gt;Visually this is what I need :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Host name | App name | Latest Scheduled Date&lt;/P&gt;&lt;P&gt;host1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | App1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 01/01/2017&lt;/P&gt;&lt;P&gt;host2&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | App1&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 02/02/2017&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;host3&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | App1 &lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | NULL&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;With my current expression it will return 02/02/2017 since that is the latest date in its eyes, but I need it to return the NULL(or something in its place)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Alex&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/Finding-latest-date-for-a-field-unless-it-has-a-null-value/m-p/1425737#M817653</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Finding latest date for a field, unless it has a null value</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-latest-date-for-a-field-unless-it-has-a-null-value/m-p/1425738#M817654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you know the Null is the latest, is it because it is associated with host3?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 15:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-latest-date-for-a-field-unless-it-has-a-null-value/m-p/1425738#M817654</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-01T15:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Finding latest date for a field, unless it has a null value</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-latest-date-for-a-field-unless-it-has-a-null-value/m-p/1425739#M817655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it has a Null, then it has yet to be scheduled, which would make whatever date is eventually chosen the latest date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 15:20:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-latest-date-for-a-field-unless-it-has-a-null-value/m-p/1425739#M817655</guid>
      <dc:creator />
      <dc:date>2017-09-01T15:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Finding latest date for a field, unless it has a null value</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-latest-date-for-a-field-unless-it-has-a-null-value/m-p/1425740#M817656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the issue is that if any of the hosts of an app are not scheduled, I need to show that it is still waiting to be completely scheduled. But if they are all scheduled, i just need to see the latest date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way we can track which apps are on un-scheduled host&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 15:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-latest-date-for-a-field-unless-it-has-a-null-value/m-p/1425740#M817656</guid>
      <dc:creator />
      <dc:date>2017-09-01T15:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Finding latest date for a field, unless it has a null value</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-latest-date-for-a-field-unless-it-has-a-null-value/m-p/1425741#M817657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So essentially when you say Null, there will be 'NULL' written as text or there won't be any value present? Would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 15:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-latest-date-for-a-field-unless-it-has-a-null-value/m-p/1425741#M817657</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-01T15:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Finding latest date for a field, unless it has a null value</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-latest-date-for-a-field-unless-it-has-a-null-value/m-p/1425742#M817658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There won't be any value present&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 15:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-latest-date-for-a-field-unless-it-has-a-null-value/m-p/1425742#M817658</guid>
      <dc:creator />
      <dc:date>2017-09-01T15:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Finding latest date for a field, unless it has a null value</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-latest-date-for-a-field-unless-it-has-a-null-value/m-p/1425743#M817659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;How do we know if an app is hosted on a particular host? There must be something other than a value for Latest Scheduled Date otherwise we can't differentiate between apps not present and those that are present but haven't been scheduled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 21:26:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-latest-date-for-a-field-unless-it-has-a-null-value/m-p/1425743#M817659</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-09-01T21:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Finding latest date for a field, unless it has a null value</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-latest-date-for-a-field-unless-it-has-a-null-value/m-p/1425744#M817660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The app to host relationships are predefined in the datasource, which i am making a RESTful API call to in order to retrieve data. The scheduling information is coming from a different datasource that is used for scheduling host migrations. API call 1 brings in all application-host data, API call 2 brings in all host scheduling information and is linked via the host Inventory #&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Sep 2017 23:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-latest-date-for-a-field-unless-it-has-a-null-value/m-p/1425744#M817660</guid>
      <dc:creator />
      <dc:date>2017-09-03T23:01:55Z</dc:date>
    </item>
  </channel>
</rss>

