<?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: Extract field values &amp;amp; DateTime in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extract-field-values-amp-DateTime/m-p/1728786#M452186</link>
    <description>&lt;P&gt;Assuming that you have same format of the other values. You can do below&lt;/P&gt;&lt;P&gt;If format of the time in string is different then you need to provide same format in timestamp# function.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Data:
Load *,
     date(floor(timestamp#(TextBetween(Field,'[',']'),'YYYYMMDD hh:mm:ss')),'DD/MM/YYYY') as Date,
     time(timestamp#(TextBetween(Field,'[',']'),'YYYYMMDD hh:mm:ss')) as Time,
     TextBetween(Field,'[',']',2) as IP,
     SubField(Field,']',-1) as DESC
Inline "
Field
[20200303 14:00:00] [86.245.198.170] southern stores 588872 " &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jul 2020 10:58:07 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-07-17T10:58:07Z</dc:date>
    <item>
      <title>Extract field values &amp; DateTime</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-field-values-amp-DateTime/m-p/1728732#M452181</link>
      <description>&lt;P&gt;HI,&amp;nbsp; Im reading some log files where each row starts as a datetime and an IP address:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-07-17 at 09.25.51.png" style="width: 442px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37606i441322967BE5117B/image-dimensions/442x42?v=v2" width="442" height="42" role="button" title="Screenshot 2020-07-17 at 09.25.51.png" alt="Screenshot 2020-07-17 at 09.25.51.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can someone advise please on how to split the field into the following data items :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-07-17 at 09.31.14.png" style="width: 523px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37607i58AC42571080B979/image-dimensions/523x51?v=v2" width="523" height="51" role="button" title="Screenshot 2020-07-17 at 09.31.14.png" alt="Screenshot 2020-07-17 at 09.31.14.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-field-values-amp-DateTime/m-p/1728732#M452181</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2024-11-16T18:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Extract field values &amp; DateTime</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-field-values-amp-DateTime/m-p/1728735#M452182</link>
      <description>&lt;P&gt;see attached&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 08:50:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-field-values-amp-DateTime/m-p/1728735#M452182</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2020-07-17T08:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extract field values &amp; DateTime</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-field-values-amp-DateTime/m-p/1728743#M452183</link>
      <description>&lt;P&gt;One solution :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Data:

load Date(TimeStamp#(replace(subfield(A,']',1),'[',''),'YYYYMMDD hh:mm:ss')) as Date,
Time(TimeStamp#(replace(subfield(A,']',1),'[',''),'YYYYMMDD hh:mm:ss')) as Time,
replace(subfield(A,']',2),'[','') as IP,
subfield(A,']',3) as DESC

FROM
.\Downloads\dsds.xlsx
(ooxml, explicit labels, table is Feuil1);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Input:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 563px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37610i3F7C71F7E43DC272/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 576px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37611i579C957A1AD2A742/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 09:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-field-values-amp-DateTime/m-p/1728743#M452183</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-07-17T09:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extract field values &amp; DateTime</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-field-values-amp-DateTime/m-p/1728786#M452186</link>
      <description>&lt;P&gt;Assuming that you have same format of the other values. You can do below&lt;/P&gt;&lt;P&gt;If format of the time in string is different then you need to provide same format in timestamp# function.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Data:
Load *,
     date(floor(timestamp#(TextBetween(Field,'[',']'),'YYYYMMDD hh:mm:ss')),'DD/MM/YYYY') as Date,
     time(timestamp#(TextBetween(Field,'[',']'),'YYYYMMDD hh:mm:ss')) as Time,
     TextBetween(Field,'[',']',2) as IP,
     SubField(Field,']',-1) as DESC
Inline "
Field
[20200303 14:00:00] [86.245.198.170] southern stores 588872 " &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 10:58:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-field-values-amp-DateTime/m-p/1728786#M452186</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-07-17T10:58:07Z</dc:date>
    </item>
  </channel>
</rss>

