<?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 Loading a character field as a date from an SQL database in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304183#M710194</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consider that the date in text format coming from your datasource is in DDMMYYYY format from field name "DateOfAssessment". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For example 12082011,13082011,14082011,15082011,16082011,.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; So to convert this into date you need to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(date#(&lt;/P&gt;DateOfAssessment,'DDMMYYYY'),'DD/MM/YYYY') as new_DateOfAssessment &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; From xyz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let me explain what does this expression mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; here the date#() takes the two parameter, first is the text and second is the format in which you have date in your datasource (i.e 'DDMMYYYY' ), Then that is passed as one of the parameter of date function and the other parameter (i.e 'DD/MM/YYYY') is the format in which you want to conver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope you understood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Aug 2011 10:47:20 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2011-08-26T10:47:20Z</dc:date>
    <item>
      <title>Loading a character field as a date from an SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304181#M710192</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 have looked a many forum solutions, but I have been unable to resolve my problem so I have bitten the bullet and posted a question!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three fields in my SQL database:&lt;/P&gt;&lt;P&gt;YEAROFASSESS - char(4)&lt;/P&gt;&lt;P&gt;MONTHOFASSESS - char(2)&lt;/P&gt;&lt;P&gt;DAYOFASSESS - char(2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I load these my script reads:&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;DAYOFASSESS + MONTHOFASSESS + YEAROFASSESS as DateOfAssessment, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use DateOfAssessment as the date field for the Calendar so I have tried converting it to a date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(DateOfAssessment) as ControlDate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(date#(DateOfAssessment('DD/MM/YYY')) as ControlDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I even tried changing the definition of the DateOfAssessment to DAYOFASSESS + / + MONTHOFASSESS + / + YEAROFASSESS...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately none of this worked and I get 'date (or date#) is not a recognised function name' error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To try and understand what was happening I tried importing dates in text format(26082011) from an excel file and attempting to using the date() function to convert the values. It did not work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/alert.png" /&gt;, and I got an error message stating that I had the wrong number of arguments for the function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This at least told me the date() function is valid, but maybe not for SQL via an OLEDB connection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please explain what I am doing wrong and come up with a possible solution to convert character fields into a date format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 10:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304181#M710192</guid>
      <dc:creator />
      <dc:date>2011-08-26T10:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a character field as a date from an SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304182#M710193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At a first glance, this line is getting trouble&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;DAYOFASSESS + MONTHOFASSESS + YEAROFASSESS as DateOfAssessment&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenation of literal strings in QlikView is done with the "&amp;amp;" instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;DAYOFASSESS &amp;amp; MONTHOFASSESS &amp;amp; YEAROFASSESS as DateOfAssessment&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if those values are numbers (although they are typed as char in the database, you can use the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;MakeDate(YEAROFASSESS, MONTHOFASSESS, DAYOFASSESS) AS Date&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this should work, returning a Date in QlikView format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 10:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304182#M710193</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-08-26T10:42:20Z</dc:date>
    </item>
    <item>
      <title>Loading a character field as a date from an SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304183#M710194</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consider that the date in text format coming from your datasource is in DDMMYYYY format from field name "DateOfAssessment". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For example 12082011,13082011,14082011,15082011,16082011,.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; So to convert this into date you need to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(date#(&lt;/P&gt;DateOfAssessment,'DDMMYYYY'),'DD/MM/YYYY') as new_DateOfAssessment &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; From xyz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let me explain what does this expression mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; here the date#() takes the two parameter, first is the text and second is the format in which you have date in your datasource (i.e 'DDMMYYYY' ), Then that is passed as one of the parameter of date function and the other parameter (i.e 'DD/MM/YYYY') is the format in which you want to conver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope you understood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 10:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304183#M710194</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-08-26T10:47:20Z</dc:date>
    </item>
    <item>
      <title>Loading a character field as a date from an SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304184#M710195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What Miguelsaid is correct.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is special with Excel as in Excel dates are not stored exactly as we see them in cells.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Say you have date like 20110826, then use makedate ( left ( date, 4 ),&amp;nbsp; mid ( date, 5, 2 ), right ( date, 2 ) );&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HTH&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 10:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304184#M710195</guid>
      <dc:creator />
      <dc:date>2011-08-26T10:52:35Z</dc:date>
    </item>
    <item>
      <title>Loading a character field as a date from an SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304185#M710196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel, Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the amazingly quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, both solutions resulted in the same error message I was getting before; namely:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ErrorMsg: 'date#' (or MakeDate) is not a recognized function name'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this because I am importing from an SQL database?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 11:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304185#M710196</guid>
      <dc:creator />
      <dc:date>2011-08-26T11:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a character field as a date from an SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304186#M710197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming you are doing a LOAD preceding the SQL SELECT statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD &lt;CODE class="jive-code"&gt;MakeDate(YEAROFASSESS, MONTHOFASSESS, DAYOFASSESS) AS Date;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;SQL SELECT YEAROFASSESS, MONTHOFASSESS, DAYOFASSESS&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;FROM Database.Table;&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two different parts and the LOAD is what allows you to clean your data up, create new fields, format and so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neither MakeDate nor Date# are SQL functions, and that's why you are getting this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 11:18:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304186#M710197</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-08-26T11:18:37Z</dc:date>
    </item>
    <item>
      <title>Loading a character field as a date from an SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304187#M710198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;Miguel,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;No I do not have a LOAD statement, so your point about it not being an SQL statement makes sense. Whilst I understand your point I am struggling to think I how I compose my script as the day, month and year of assess are not the only fields I select from that table?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;At the moment the table on the script as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #008000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;SQL Select&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;(all the fields required)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;FROM table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;With the statement below I do not see where I can select all the other fields. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;LOAD MakeDate(YEAROFASSESS, MONTHOFASSESS,DAYOFASSESS) AS &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;SQL SELECT YEAROFASSESS, MONTHOFASSESS, DAYOFASSESS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;SELECT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;FROM table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;Jason&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 11:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304187#M710198</guid>
      <dc:creator />
      <dc:date>2011-08-26T11:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a character field as a date from an SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304188#M710199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at the following example. All the fields I'm using both in the SQL and in the LOAD are guesses, but you'll get the point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Table: // Name of the table. Not required but very usefull and a must if you use STORE&lt;/P&gt;&lt;P&gt;LOAD ID, // All these fields come from the SQL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Company,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddressTo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MakeDate(Year, Month, DayNo) AS Date, // I'm creating a new field in QlikView based on 3 coming from SQL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Discount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales * (1 - (Discount / 100)) AS NetValue, // Another new field to QlikView based on existing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Sales * (1 - (Discount / 100)) &amp;gt; 100, 'Expensive', 'Cheap') AS Type; &lt;/P&gt;&lt;P&gt;SQL SELECT ID, Company, Name, AddressTo, Year, Month, DayNo, Sales, Discount&lt;/P&gt;&lt;P&gt;FROM Database.Table;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 12:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304188#M710199</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-08-26T12:01:10Z</dc:date>
    </item>
    <item>
      <title>Loading a character field as a date from an SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304189#M710200</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you want other fields too then you can specify in load statment only like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 11pt; color: #333333;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MakeDate(YEAROFASSESS, MONTHOFASSESS,DAYOFASSESS) AS&amp;nbsp; DATE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;YEAROFASSESS,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MONTHOFASSESS, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DAYOFASSESS;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL SELECT YEAROFASSESS, MONTHOFASSESS, DAYOFASSESS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM table;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333;"&gt;Kaushik Solanki&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 12:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304189#M710200</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-08-26T12:01:52Z</dc:date>
    </item>
    <item>
      <title>Loading a character field as a date from an SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304190#M710201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;Miguel,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;That worked perfectly. Thanks very much for your time and help and thank you to everyone else who took the time to read my question and assist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;Out of curiosity I will now look at the excel load and see if I understand that one out too! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;Jason&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 13:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-character-field-as-a-date-from-an-SQL-database/m-p/304190#M710201</guid>
      <dc:creator />
      <dc:date>2011-08-26T13:13:13Z</dc:date>
    </item>
  </channel>
</rss>

