<?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 Help needed to transform and load data from flat file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-needed-to-transform-and-load-data-from-flat-file/m-p/879353#M997799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/space/2003"&gt;New to QlikView&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi I am getting some data in flat file in the given format and i want to load these data in a tabular format with two columns Say used % and Description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the usage % is 100 then there will not be any other line but if its lesser then it will show the components which are not being used .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i want to capture the usage % in used % colum and component in description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be getting the flat file with data in below format ..&amp;nbsp; the text in bold will remain same but the values like 98% or ABC , XYZ may change . component not used will be listed below the second bold line . if the usage is 100 as in SAMPLE2.txt then the below line will not be there .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Usage =&lt;/STRONG&gt; 98%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The following components are not used&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ABC&lt;/P&gt;&lt;P&gt;XYZ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2015 08:54:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-23T08:54:56Z</dc:date>
    <item>
      <title>Help needed to transform and load data from flat file</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-to-transform-and-load-data-from-flat-file/m-p/879353#M997799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/space/2003"&gt;New to QlikView&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi I am getting some data in flat file in the given format and i want to load these data in a tabular format with two columns Say used % and Description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the usage % is 100 then there will not be any other line but if its lesser then it will show the components which are not being used .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i want to capture the usage % in used % colum and component in description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be getting the flat file with data in below format ..&amp;nbsp; the text in bold will remain same but the values like 98% or ABC , XYZ may change . component not used will be listed below the second bold line . if the usage is 100 as in SAMPLE2.txt then the below line will not be there .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Usage =&lt;/STRONG&gt; 98%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The following components are not used&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ABC&lt;/P&gt;&lt;P&gt;XYZ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 08:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-to-transform-and-load-data-from-flat-file/m-p/879353#M997799</guid>
      <dc:creator />
      <dc:date>2015-06-23T08:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed to transform and load data from flat file</title>
      <link>https://community.qlik.com/t5/QlikView/Help-needed-to-transform-and-load-data-from-flat-file/m-p/879354#M997800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT *;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;If(WildMatch(@1, 'Usage*'), Trim(SubField(@1, '=', 2))) AS Usage,&lt;/P&gt;&lt;P&gt;FileName() AS FileName&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is '\t', msq)&lt;/P&gt;&lt;P&gt;WHERE WildMatch(@1, 'Usage*');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN(Data)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;If(NOT WildMatch(@1, 'Usage*', 'The following components*'), @1) AS Component,&lt;/P&gt;&lt;P&gt;FileName() AS FileName&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is '\t', msq)&lt;/P&gt;&lt;P&gt;WHERE NOT WildMatch(@1, 'Usage*', 'The following components*');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 09:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-needed-to-transform-and-load-data-from-flat-file/m-p/879354#M997800</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-06-23T09:13:51Z</dc:date>
    </item>
  </channel>
</rss>

