<?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: How load date from file? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882416#M655303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for you help, but this doesn't work too(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2015 15:55:59 GMT</pubDate>
    <dc:creator>vchuprina</dc:creator>
    <dc:date>2015-06-12T15:55:59Z</dc:date>
    <item>
      <title>How load date from file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882410#M655297</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 received files and need to load data from them, but have some problems:&lt;/P&gt;&lt;P&gt;1. Data &lt;SPAN lang="en"&gt;located in different columns and columns(A-C) and lines (3-4) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I use following code for line 3 and the same for line 4 (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;WHERE recno() = 2;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;How check two lines by one load? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(subfield(rtrim(A &amp;amp; ' ' &amp;amp; B &amp;amp; ' ' &amp;amp; C &amp;amp; ' ' &amp;amp; D ), ' ', -1)) AS Week1,&lt;/P&gt;&lt;P&gt;FROM [$(vFile)]&amp;nbsp; (ooxml, no labels, header is 2 lines, table is [$(vSheetName)])&lt;/P&gt;&lt;P&gt;WHERE recno() = 1;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled1.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/89269_Untitled1.png" style="height: auto; width: auto;" /&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89268_Untitled.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. From time to time data has different format (see screenshot), for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;05/02/2015 09:44:35&lt;/P&gt;&lt;P&gt;WE 6.06.15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried use following code to load data to variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vWEEK1 = replace(replace(peek('Week1', -1, 'Date1'),'WE',''),'.','/');&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;weekstart(date('$(vWEEK1)','YYYYMMDD'),0,-2) AS Week&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in this case for some reason I lose data in date format (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;05/02/2015 09:44:35&lt;/SPAN&gt;) and load only &lt;SPAN style="font-size: 13.3333330154419px;"&gt;WE 6.06.15,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;if I use &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;LET vWEEK1 =&lt;/SPAN&gt;(peek('Week1', -1, 'Date1')&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I load only &lt;SPAN style="font-size: 13.3333330154419px;"&gt;05/02/2015 09:44:35 and lose &lt;SPAN style="font-size: 13.3333330154419px;"&gt;WE 6.06.15,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Also I tried use 'IF' , but it doesn't work correctly and return only &lt;SPAN style="font-size: 13.3333330154419px;"&gt;WE 6.06.15 data&amp;nbsp; &lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;LET vWEEK1 = IF (Wildmatch(peek('Week1', -1, 'Date1'), '*WE*'), replace(replace(peek('Week1', -1, 'Date1'),'WE',''),'.','/'),peek('Week1', -1, 'Date1'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Vitaliy&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 12:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882410#M655297</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2015-06-12T12:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: How load date from file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882411#M655298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try it with Alt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vWEEK1 = Alt(Date#(R&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;eplace(Replace(Peek('Week1', -1, 'Date1'),'WE',''),'.','/'), 'M.DD.YY'), Date#(P&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;eek('Week1', -1, 'Date1'), 'MM/DD/YYYY hh:mm:ss'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 12:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882411#M655298</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-12T12:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: How load date from file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882412#M655299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I tried to use you code, but still have the same result&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 12:23:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882412#M655299</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2015-06-12T12:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: How load date from file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882413#M655300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you are using variable because you are checking the format for a single date, right? or do you have a column with different date formats and you are trying to force them into a date format???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 12:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882413#M655300</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-12T12:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: How load date from file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882414#M655301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using variable because date under main data and I can't load all necessary information by one load.&lt;/P&gt;&lt;P&gt;Date in 3 or 4 lines and data start from 9 line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date comes in different format from week to week (randomly)&amp;nbsp; and I'm trying load date as Date each week without any manual work.&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;05/02/2015 09:44:35&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;05/09/2015 09:40:27&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WE 6.06.15&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 12:53:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882414#M655301</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2015-06-12T12:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: How load date from file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882415#M655302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried this script, seems to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date as Date1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Community_168133.xlsx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vWEEK1 = Alt(Date(Date#(Trim(Replace(Peek('Date2', -1, 'Table2'),'WE','')), 'M.DD.YY'), 'MM/DD/YYYY'), Date(Peek('Date1', -1, 'Table1'), 'MM/DD/YYYY'));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date as Date2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Community_168133.xlsx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet2);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vWEEK2 = Alt(Date(Date#(Trim(Replace(Peek('Date2', -1, 'Table2'),'WE','')), 'M.DD.YY'), 'MM/DD/YYYY'), Date(Peek('Date1', -1, 'Table1'), 'MM/DD/YYYY'));&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 13:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882415#M655302</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-12T13:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: How load date from file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882416#M655303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for you help, but this doesn't work too(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 15:55:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882416#M655303</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2015-06-12T15:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: How load date from file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882417#M655304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample where it doesn't work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 15:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882417#M655304</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-12T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: How load date from file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882418#M655305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to load date with different format as Date.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;For example I want to see following&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89296_Untitled.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you script shows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/89297_Untitled.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 16:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882418#M655305</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2015-06-12T16:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: How load date from file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882419#M655306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I asked you intially. I never touched the field itself. I was working on the variable. If you check the variable overview, you will see the correct format. So you need the field to be fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me get you that.&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>Fri, 12 Jun 2015 16:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882419#M655306</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-12T16:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: How load date from file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882420#M655307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the attached qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 16:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-date-from-file/m-p/882420#M655307</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-12T16:33:23Z</dc:date>
    </item>
  </channel>
</rss>

