<?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 How to create a date from month and year ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879876#M658481</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;&lt;/P&gt;&lt;P&gt;Now i am using below script for date field :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;makedate(@53:57T,@50:52T,1) as date,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is wrong , so i change the above field name to date_ ( insted of date ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;makedate(@53:57T,@50:52T,1) as date_,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need change to using below 2 field to form the above date field :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; @50:52T&amp;nbsp; as month_,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; @53:57T&amp;nbsp; as year_,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my question is , what is the expression should be , so that above 2 field will be able to create field name same sa date field above ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the day i can fill with 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 May 2015 13:26:22 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2015-05-29T13:26:22Z</dc:date>
    <item>
      <title>How to create a date from month and year ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879876#M658481</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;&lt;/P&gt;&lt;P&gt;Now i am using below script for date field :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;makedate(@53:57T,@50:52T,1) as date,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is wrong , so i change the above field name to date_ ( insted of date ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;makedate(@53:57T,@50:52T,1) as date_,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need change to using below 2 field to form the above date field :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; @50:52T&amp;nbsp; as month_,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; @53:57T&amp;nbsp; as year_,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my question is , what is the expression should be , so that above 2 field will be able to create field name same sa date field above ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the day i can fill with 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 13:26:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879876#M658481</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2015-05-29T13:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a date from month and year ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879877#M658483</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;Enclosed my QV Doc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 13:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879877#M658483</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2015-05-29T13:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a date from month and year ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879878#M658485</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;Can some one help me ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 20:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879878#M658485</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2015-05-29T20:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a date from month and year ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879879#M658486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post some sample rows of your file FS_TDSTECH.txt?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;makedate(@53:57T,@50:52T,1) as date,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;could work depending from the source data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 22:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879879#M658486</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-05-29T22:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a date from month and year ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879880#M658487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Enclosed the sample of my text file. File name not same but it is ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank for yr script. I will test later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my android device.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2015 02:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879880#M658487</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2015-05-30T02:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a date from month and year ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879881#M658488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;makedate([@53:57T],[@50:52T],1) as date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Harsha Nandan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2015 10:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879881#M658488</guid>
      <dc:creator />
      <dc:date>2015-05-30T10:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a date from month and year ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879882#M658489</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;You can try Resident load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;//Existing Script&lt;/P&gt;&lt;P&gt;@50:52T&amp;nbsp; as month_,&lt;/P&gt;&lt;P&gt;@53:57T&amp;nbsp; as year_,&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;from tableName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;makeDate(year_,month_,1) as NewDate,&lt;/P&gt;&lt;P&gt;Resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Temp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //If you dont drop it then it will create Synthetic Key with Temp&amp;nbsp; and Final table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2015 10:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879882#M658489</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-05-30T10:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a date from month and year ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879883#M658490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much I try to avoid partial reload unless I have no choice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my android device.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2015 11:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879883#M658490</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2015-05-30T11:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a date from month and year ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879884#M658491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2015 11:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879884#M658491</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-05-30T11:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a date from month and year ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879885#M658492</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;another solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_166112_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/87996_QlikCommunity_Thread_166112_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_166112_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/87995_QlikCommunity_Thread_166112_Pic1.JPG" style="height: 242px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14330270159981088 jive_text_macro" jivemacro_uid="_14330270159981088"&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; year(date) as year,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(date) as month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; year(date2) as year2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(date2) as month2 &lt;/P&gt;
&lt;P&gt;Where IsNum(field1);&lt;/P&gt;
&lt;P&gt;LOAD [@1:16] as field1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [@17:47] as field2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [@48:48] as field3, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#([@50:56],'MM YYYY'),'MM/YY') as date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Date#([@57:67],'DD/MM/YYYY')) as date2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [@68:85] as field4,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [@86:101] as field5,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [@103:118] as field6,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [@119:n] as field7&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A class="" data-containerid="-1" data-containertype="-1" data-objectid="167361" data-objecttype="13" href="https://community.qlik.com/servlet/JiveServlet/download/2061-166112-786306-167361/FS_TID.TXT"&gt;https://community.qlik.com/servlet/JiveServlet/download/786306-167361/FS_TID.TXT&lt;/A&gt;&lt;SPAN&gt;] (fix, codepage is 1252);&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2015 23:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879885#M658492</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-05-30T23:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a date from month and year ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879886#M658493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my android device.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 May 2015 00:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-date-from-month-and-year/m-p/879886#M658493</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2015-05-31T00:55:56Z</dc:date>
    </item>
  </channel>
</rss>

