<?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: Missing Date Vaules in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Missing-Date-Vaules/m-p/957307#M328811</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;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;(Alt(&lt;SPAN class="keyword"&gt;Date&lt;/SPAN&gt;#(&lt;SPAN class="keyword"&gt;Date&lt;/SPAN&gt;,&lt;SPAN class="string"&gt;'DD-MMM-YYYY'&lt;/SPAN&gt;),&lt;SPAN class="string"&gt;'DD/MM/YYYY'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;), MakeDate(Right(Date, 4), If(Mid(Date, 3, 3) = 'xxx', 1, &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Mid(Date, 3, 3)), If(Left(Date, 2) = 'xx', 1, Left(Date, 2)))) as Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might need to check for the parenthesis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Aug 2015 15:54:09 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-08-19T15:54:09Z</dc:date>
    <item>
      <title>Missing Date Vaules</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-Date-Vaules/m-p/957304#M328808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a master calendar but there are some dates that are not loading into it. After investigating, I found the reason is because some of the dates are not complete and there is no way to change this from the data source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some dates are missing days and other are also missing months (below are the 3 types of date values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;03-JAN-2010&lt;/P&gt;&lt;P&gt;xx-NOV-2012&lt;/P&gt;&lt;P&gt;xx-xxx-2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I converted these text fields to date values before creating the master (below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1439998707303891" jivemacro_uid="_1439998707303891" modifiedtitle="true"&gt;
&lt;P&gt;Date(Date#(Date,'DD-MMM-YYYY'),'DD/MM/YYYY')&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the master calendar just ignores them. That means that the values that are only missing days are not appearing in their corresponding Month when looking at an overview of the Year, they are displayed as Null dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 15:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-Date-Vaules/m-p/957304#M328808</guid>
      <dc:creator>ciaran_mcgowan</dc:creator>
      <dc:date>2015-08-19T15:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Date Vaules</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-Date-Vaules/m-p/957305#M328809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What exactly does your missing day and Day Month Field look like??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOV-2012&lt;/P&gt;&lt;P&gt;2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;xx-NOV-2012&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;xx-xxx-2013&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Something else???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 15:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-Date-Vaules/m-p/957305#M328809</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-19T15:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Date Vaules</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-Date-Vaules/m-p/957306#M328810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;xx-NOV-2012&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;xx-xxx-2013&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The text &amp;amp; numbers are replaced with x&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 15:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-Date-Vaules/m-p/957306#M328810</guid>
      <dc:creator>ciaran_mcgowan</dc:creator>
      <dc:date>2015-08-19T15:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Date Vaules</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-Date-Vaules/m-p/957307#M328811</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;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;(Alt(&lt;SPAN class="keyword"&gt;Date&lt;/SPAN&gt;#(&lt;SPAN class="keyword"&gt;Date&lt;/SPAN&gt;,&lt;SPAN class="string"&gt;'DD-MMM-YYYY'&lt;/SPAN&gt;),&lt;SPAN class="string"&gt;'DD/MM/YYYY'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;), MakeDate(Right(Date, 4), If(Mid(Date, 3, 3) = 'xxx', 1, &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Mid(Date, 3, 3)), If(Left(Date, 2) = 'xx', 1, Left(Date, 2)))) as Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might need to check for the parenthesis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 15:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-Date-Vaules/m-p/957307#M328811</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-19T15:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Date Vaules</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-Date-Vaules/m-p/957308#M328812</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableName:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;MakeDate(SubField(NewDate, '-', 3), &lt;/P&gt;&lt;P&gt;Match(If(Len(Trim(SubField(NewDate, '-', 2))) = 0, 'JAN', SubField(NewDate, '-', 2)), 'JAN', 'FEB', 'MAR',&amp;nbsp; 'APR',&amp;nbsp; 'MAY',&amp;nbsp; 'JUN',&amp;nbsp; 'JUL',&amp;nbsp; 'AUG', 'SEP',&amp;nbsp; 'OCT',&amp;nbsp; 'NOV',&amp;nbsp; 'DEC'),&lt;/P&gt;&lt;P&gt;Alt(Num(SubField(NewDate, '-', 1)), 1)) AS NewFormattedDate; &lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;Replace(DateFieldName, 'x', '') AS NewDate&lt;/P&gt;&lt;P&gt;FROM DataSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 16:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-Date-Vaules/m-p/957308#M328812</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-08-19T16:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Date Vaules</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-Date-Vaules/m-p/957309#M328813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping to avoid setting unknown months and days to the beginning of the Month/Year but it looks like it can't be avoided. I already had a check to replace one incorrect date earlier in the script (below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14400019282512121 jive_text_macro" jivemacro_uid="_14400019282512121" modifiedtitle="true"&gt;
&lt;P&gt;Replace(Date,'91','xx') AS Date &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I just adapted that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14400020248954791 jive_text_macro" jivemacro_uid="_14400020248954791" modifiedtitle="true"&gt;
&lt;P&gt;Replace(Replace(Replace(Date,'91',1),'xxx','JAN'),'xx',1) AS Date&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's done the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 16:34:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-Date-Vaules/m-p/957309#M328813</guid>
      <dc:creator>ciaran_mcgowan</dc:creator>
      <dc:date>2015-08-19T16:34:11Z</dc:date>
    </item>
  </channel>
</rss>

