<?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: ETL Text File in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/ETL-Text-File/m-p/1581650#M3945</link>
    <description>&lt;P&gt;I think it looked more difficult as it is. Important ist just to find regularities within the records. If the data-structure is always the same and each entry has the same number of records you could just use recno() to identify/filter your needed records. If they are different in some way you need to search within the content of a record.&lt;/P&gt;&lt;P&gt;In your case I think I would load the file with fix length (is an option within the file-wizard) and apply a wildmatch as filter. The second step could be a cleaning of the multiple spaces with a mapping, the third picked the appropriate values with a subfield, fourth collect the various values with an interrecord-function like previous within a single record and the fifth step removed the invalid records with a flag field which is created/maintained through the load-chain.&lt;/P&gt;&lt;P&gt;load * where FLAG = true();&lt;BR /&gt;load *, previous(F2) as F3;&lt;BR /&gt;load F, subfield(F, ' ', &lt;STRONG&gt;NUMBER&lt;/STRONG&gt;) as F1, subfield(F, ' ', &lt;STRONG&gt;NUMBER&lt;/STRONG&gt;) as F2;&lt;BR /&gt;load mapsubstring('map', F) as F;&lt;BR /&gt;load @1:n as F from Source where wildmatch(@1:n, '*DATE Opened*', '*TOTAL:*');&lt;/P&gt;&lt;P&gt;A quite similar example which used such mapping on spaces could you find here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Issue-with-loading-special-character/m-p/1523494" target="_blank" rel="noopener"&gt;Issue-with-loading-special-character&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2019 15:42:09 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2019-05-17T15:42:09Z</dc:date>
    <item>
      <title>ETL Text File</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/ETL-Text-File/m-p/1558616#M3736</link>
      <description>&lt;P&gt;I have a text file with the below data format. I'm trying to find the best way to extract the Number/Name/Amount that I have highlighted below. Data for each company is between the hyphens.&lt;/P&gt;&lt;P&gt;Has anyone had any success on extracting from a file similar to this data format?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlik_Text_ETL.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8408i197312AC0B1BE0D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Qlik_Text_ETL.png" alt="Qlik_Text_ETL.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Dec 2021 20:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/ETL-Text-File/m-p/1558616#M3736</guid>
      <dc:creator>tfrazerheartlan</dc:creator>
      <dc:date>2021-12-28T20:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: ETL Text File</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/ETL-Text-File/m-p/1558752#M3740</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;can you please provide sample text file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tushar&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 06:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/ETL-Text-File/m-p/1558752#M3740</guid>
      <dc:creator>tush</dc:creator>
      <dc:date>2019-03-20T06:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: ETL Text File</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/ETL-Text-File/m-p/1559078#M3742</link>
      <description>&lt;P&gt;For some reason .txt is not a valid file type to attach here?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 14:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/ETL-Text-File/m-p/1559078#M3742</guid>
      <dc:creator>tfrazerheartlan</dc:creator>
      <dc:date>2019-03-20T14:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: ETL Text File</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/ETL-Text-File/m-p/1559084#M3743</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlik_Text_ETL_Error.png" style="width: 762px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8486i4099B72E23D0DD24/image-size/large?v=v2&amp;amp;px=999" role="button" title="Qlik_Text_ETL_Error.png" alt="Qlik_Text_ETL_Error.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 14:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/ETL-Text-File/m-p/1559084#M3743</guid>
      <dc:creator>tfrazerheartlan</dc:creator>
      <dc:date>2019-03-20T14:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: ETL Text File</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/ETL-Text-File/m-p/1559087#M3744</link>
      <description>&lt;P&gt;Attaching zip file&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2019 14:47:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/ETL-Text-File/m-p/1559087#M3744</guid>
      <dc:creator>tfrazerheartlan</dc:creator>
      <dc:date>2019-03-20T14:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: ETL Text File</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/ETL-Text-File/m-p/1581620#M3939</link>
      <description>&lt;P&gt;Was just curious if you ever had a chance to check out that attached file?&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 14:45:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/ETL-Text-File/m-p/1581620#M3939</guid>
      <dc:creator>tfrazerheartlan</dc:creator>
      <dc:date>2019-05-17T14:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: ETL Text File</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/ETL-Text-File/m-p/1581650#M3945</link>
      <description>&lt;P&gt;I think it looked more difficult as it is. Important ist just to find regularities within the records. If the data-structure is always the same and each entry has the same number of records you could just use recno() to identify/filter your needed records. If they are different in some way you need to search within the content of a record.&lt;/P&gt;&lt;P&gt;In your case I think I would load the file with fix length (is an option within the file-wizard) and apply a wildmatch as filter. The second step could be a cleaning of the multiple spaces with a mapping, the third picked the appropriate values with a subfield, fourth collect the various values with an interrecord-function like previous within a single record and the fifth step removed the invalid records with a flag field which is created/maintained through the load-chain.&lt;/P&gt;&lt;P&gt;load * where FLAG = true();&lt;BR /&gt;load *, previous(F2) as F3;&lt;BR /&gt;load F, subfield(F, ' ', &lt;STRONG&gt;NUMBER&lt;/STRONG&gt;) as F1, subfield(F, ' ', &lt;STRONG&gt;NUMBER&lt;/STRONG&gt;) as F2;&lt;BR /&gt;load mapsubstring('map', F) as F;&lt;BR /&gt;load @1:n as F from Source where wildmatch(@1:n, '*DATE Opened*', '*TOTAL:*');&lt;/P&gt;&lt;P&gt;A quite similar example which used such mapping on spaces could you find here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Development/Issue-with-loading-special-character/m-p/1523494" target="_blank" rel="noopener"&gt;Issue-with-loading-special-character&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 15:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/ETL-Text-File/m-p/1581650#M3945</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-05-17T15:42:09Z</dc:date>
    </item>
  </channel>
</rss>

