<?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: Replace Empty Dates with Max Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replace-Empty-Dates-with-Max-Date/m-p/1769065#M717394</link>
    <description>&lt;P&gt;make sure variable for max date has the right date format.&amp;nbsp; remember that when you do a max of a date it becomes a number so you need to format it correctly.&amp;nbsp; otherwise, attach you script&lt;/P&gt;</description>
    <pubDate>Wed, 16 Dec 2020 18:58:33 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2020-12-16T18:58:33Z</dc:date>
    <item>
      <title>Replace Empty Dates with Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Empty-Dates-with-Max-Date/m-p/1769008#M717390</link>
      <description>&lt;P&gt;I have ID and Dates attached to them. But some IDs don't have any Date. I need to add Max of Date for those missing dates.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;From ...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join(Table1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;if(len(Date)=0, Max(Date), Date) as Final Date&lt;/P&gt;&lt;P&gt;Resident Table1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This keeps giving me Invalid expression error&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Empty-Dates-with-Max-Date/m-p/1769008#M717390</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2024-11-15T23:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Empty Dates with Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Empty-Dates-with-Max-Date/m-p/1769013#M717391</link>
      <description>&lt;P&gt;i suggest get the maxdate first as a separate table and save the value in a variable.&amp;nbsp; then use that in your left join as&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if(isnull(Date), Date('$(vMaxDate)') )as Final Date&amp;nbsp; //where vMaxDate is the variable containing max date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;assuming a missing date means it is null.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;also, what will FInalDate be if date is not null?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 14:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Empty-Dates-with-Max-Date/m-p/1769013#M717391</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-16T14:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Empty Dates with Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Empty-Dates-with-Max-Date/m-p/1769016#M717392</link>
      <description>&lt;P&gt;Thanks Edwin.&lt;/P&gt;&lt;P&gt;If Date is not null (If there is a Date), then it should be the same date. If it is null, then I need to replace those null values with the Max(Date) value and create new field - FinalDate&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 15:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Empty-Dates-with-Max-Date/m-p/1769016#M717392</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2020-12-16T15:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Empty Dates with Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Empty-Dates-with-Max-Date/m-p/1769048#M717393</link>
      <description>&lt;P&gt;This is still giving me empty dates instead of replacing them with Max Date. I see that vMaxDate is being populated but it somehow comes empty in the expression.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 17:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Empty-Dates-with-Max-Date/m-p/1769048#M717393</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2020-12-16T17:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Empty Dates with Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Empty-Dates-with-Max-Date/m-p/1769065#M717394</link>
      <description>&lt;P&gt;make sure variable for max date has the right date format.&amp;nbsp; remember that when you do a max of a date it becomes a number so you need to format it correctly.&amp;nbsp; otherwise, attach you script&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 18:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Empty-Dates-with-Max-Date/m-p/1769065#M717394</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-16T18:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Empty Dates with Max Date</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Empty-Dates-with-Max-Date/m-p/1769066#M717395</link>
      <description>&lt;P&gt;even just the portion where you compute for max date and the part with if statement&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 18:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Empty-Dates-with-Max-Date/m-p/1769066#M717395</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-12-16T18:59:15Z</dc:date>
    </item>
  </channel>
</rss>

