<?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: Changing strings to yyyy dates? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274475#M400473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No. In the&lt;STRONG&gt; Auto-generated section&lt;/STRONG&gt; I let it be completely auto-loaded, and then I changed the part as you advised:&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;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; color: #3366ff;"&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;([COMPL_PER_BEGIN_DATE])&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt; [COMPL_PER_BEGIN_YEAR],&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; color: #3366ff;"&gt;Date&lt;/SPAN&gt;([COMPL_PER_BEGIN_DATE]) as [COMPL_PER_BEGIN_DATE]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Dec 2016 14:34:57 GMT</pubDate>
    <dc:creator>Breezy</dc:creator>
    <dc:date>2016-12-19T14:34:57Z</dc:date>
    <item>
      <title>Changing strings to yyyy dates?</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274469#M400467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I loaded my Excel sheet which included a column of years (such as 2015, 2009, 2004, etc.). When my Excel file was loaded into Qlik the dates appear as strings, 42005, 39904, etc. I would like to turn them back into years. I think I need to define that column as yyyy. However, I have not actually used the Data Load Editor before. I just have it do everything automatically. Would I click 'unlock' first?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is part of the script in the LOAD section. I want to change [COMPL_PER_BEGIN_YEAR] to show just yyyy. I would like to keep the [COMPL_PER_BEGIN_DATE] as it is, however, which is 1/1/2015, 4/1/2009, etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[COMPL_PER_BEGIN_YEAR] &lt;SPAN style="color: #0000ff;"&gt;AS&lt;/SPAN&gt; [COMPL_PER_BEGIN_YEAR],&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;Date&lt;/SPAN&gt;([COMPL_PER_BEGIN_DATE] ) &lt;SPAN style="color: #3366ff;"&gt;AS&lt;/SPAN&gt; [COMPL_PER_BEGIN_DATE]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your assistance is appreciated. Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 13:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274469#M400467</guid>
      <dc:creator>Breezy</dc:creator>
      <dc:date>2016-12-16T13:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Changing strings to yyyy dates?</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274470#M400468</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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; color: #3366ff;"&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;([COMPL_PER_BEGIN_DATE])&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt; [COMPL_PER_BEGIN_YEAR],&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; color: #3366ff;"&gt;Date&lt;/SPAN&gt;([COMPL_PER_BEGIN_DATE]) as [COMPL_PER_BEGIN_DATE]&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 13:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274470#M400468</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-16T13:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Changing strings to yyyy dates?</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274471#M400469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;The good news is that worked! My years are now in the format: yyyy. However, this is my first time using the &lt;STRONG&gt;Data Load Editor.&lt;/STRONG&gt; When I go to &lt;STRONG&gt;Data Editor -&amp;gt; Associations&lt;/STRONG&gt;, it will no longer allow me to associate my tables. And I need to associate Table1, column "ID" with Table 2, column "ID." I've only joined my two tables together with "Associations" before.....so I'm not sure how to do it without using Associations.... I thought since the column names are the same ("ID") that an automatic association would occur, but this is not the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any tips? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 16:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274471#M400469</guid>
      <dc:creator>Breezy</dc:creator>
      <dc:date>2016-12-16T16:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Changing strings to yyyy dates?</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274472#M400470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to post a screenshot of your data model to show what issue you are running into?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 16:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274472#M400470</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-16T16:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Changing strings to yyyy dates?</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274473#M400471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just noticed on my other copy of my app that if I make the association and THEN I change the script, the association maintains. However, if I change the script first, I cannot make an association (you can see that below - the PWSID will not connect - it seems like upon loading, since the column names were the same, the table on the left added the table name in front of PWSID - maybe that is why they are not automatically associating).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="146903" alt="PWSID_data_model_Qlik.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/146903_PWSID_data_model_Qlik.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 17:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274473#M400471</guid>
      <dc:creator>Breezy</dc:creator>
      <dc:date>2016-12-16T17:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Changing strings to yyyy dates?</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274474#M400472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using Qualify *; somewhere before you load Nitrates_SellerID_2016Q3?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 17:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274474#M400472</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-16T17:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Changing strings to yyyy dates?</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274475#M400473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No. In the&lt;STRONG&gt; Auto-generated section&lt;/STRONG&gt; I let it be completely auto-loaded, and then I changed the part as you advised:&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;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&lt;SPAN style="font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; color: #3366ff;"&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;([COMPL_PER_BEGIN_DATE])&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt; [COMPL_PER_BEGIN_YEAR],&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; color: #3366ff;"&gt;Date&lt;/SPAN&gt;([COMPL_PER_BEGIN_DATE]) as [COMPL_PER_BEGIN_DATE]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 14:34:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274475#M400473</guid>
      <dc:creator>Breezy</dc:creator>
      <dc:date>2016-12-19T14:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Changing strings to yyyy dates?</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274476#M400474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am talking about this table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147033_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What field do you wish the two tables to be connected on?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 14:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274476#M400474</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-19T14:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Changing strings to yyyy dates?</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274477#M400475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The two tables should connect on "PWSID." But when I loaded Nitrates_SellerID_2016Q3, it modified the column name from PWSID to Nitrates_SellerID_2016Q3.PWSID, maybe to distinguish it from "PWSID" in the other table. But they won't automatically associate unless the column headings are exactly the same. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 14:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274477#M400475</guid>
      <dc:creator>Breezy</dc:creator>
      <dc:date>2016-12-19T14:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Changing strings to yyyy dates?</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274478#M400476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess at the end of your script you can rename the field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RENAME Field &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Nitrates_SellerID_2016Q3.PWSID&lt;/SPAN&gt; to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PWSID&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 14:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274478#M400476</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-19T14:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Changing strings to yyyy dates?</title>
      <link>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274479#M400477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your assistance, Sunny &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2016 15:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Changing-strings-to-yyyy-dates/m-p/1274479#M400477</guid>
      <dc:creator>Breezy</dc:creator>
      <dc:date>2016-12-19T15:00:52Z</dc:date>
    </item>
  </channel>
</rss>

