<?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 Date field loading with two different formats in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-field-loading-with-two-different-formats/m-p/1605675#M444707</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;One of the fields in my data set is a date that I'm creating , see below:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;if(Month = 'JAN', '201901',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'FEB', '201902',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'MAR', '201903',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'APR', '201904',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'MAY', '201905',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'JUN', '201906',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'JUL', '201907',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'AUG', '201908',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'SEP', '201909',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'OCT', '201910',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'NOV', '201911',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'DEC', '201912'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;)))))))))))) AS Month_Date,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Then when I resident the data and load to a qvd, I format the field as below:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;date(date#(Month_Date,'YYYYMM'),'MMM-YYYY') AS Month_Date,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;But now when I load the data from the qvd into my model, the field comes out with both formats i.e. one from the created field and the other from loading into a qvd. See attached screenshot:&lt;/P&gt;&lt;P&gt;What is causing this issue?&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Matlotlo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2019 13:35:14 GMT</pubDate>
    <dc:creator>nkosinde13</dc:creator>
    <dc:date>2019-07-24T13:35:14Z</dc:date>
    <item>
      <title>Date field loading with two different formats</title>
      <link>https://community.qlik.com/t5/QlikView/Date-field-loading-with-two-different-formats/m-p/1605675#M444707</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;One of the fields in my data set is a date that I'm creating , see below:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;if(Month = 'JAN', '201901',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'FEB', '201902',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'MAR', '201903',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'APR', '201904',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'MAY', '201905',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'JUN', '201906',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'JUL', '201907',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'AUG', '201908',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'SEP', '201909',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'OCT', '201910',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'NOV', '201911',&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;IF(Month = 'DEC', '201912'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;)))))))))))) AS Month_Date,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Then when I resident the data and load to a qvd, I format the field as below:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;date(date#(Month_Date,'YYYYMM'),'MMM-YYYY') AS Month_Date,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;But now when I load the data from the qvd into my model, the field comes out with both formats i.e. one from the created field and the other from loading into a qvd. See attached screenshot:&lt;/P&gt;&lt;P&gt;What is causing this issue?&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Matlotlo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 13:35:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-field-loading-with-two-different-formats/m-p/1605675#M444707</guid>
      <dc:creator>nkosinde13</dc:creator>
      <dc:date>2019-07-24T13:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Date field loading with two different formats</title>
      <link>https://community.qlik.com/t5/QlikView/Date-field-loading-with-two-different-formats/m-p/1605722#M444715</link>
      <description>&lt;P&gt;Perhaps the RESIDENT load is causing a concatenation if both tables have the same fields?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use NOCONCATENATE prior to the LOAD ... RESIDENT and store this table into the new file.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 14:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-field-loading-with-two-different-formats/m-p/1605722#M444715</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2019-07-24T14:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date field loading with two different formats</title>
      <link>https://community.qlik.com/t5/QlikView/Date-field-loading-with-two-different-formats/m-p/1606023#M444733</link>
      <description>&lt;P&gt;Thank you so much. It works perfectly now&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 09:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-field-loading-with-two-different-formats/m-p/1606023#M444733</guid>
      <dc:creator>nkosinde13</dc:creator>
      <dc:date>2019-07-25T09:49:58Z</dc:date>
    </item>
  </channel>
</rss>

