<?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: Convert Fact Table from XML and TXT in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Convert-Fact-Table-from-XML-and-TXT/m-p/2097880#M12545</link>
    <description>&lt;P&gt;Eventually I managed to solve this, so for anyone who finds the same issue:&lt;/P&gt;
&lt;P&gt;The xml file gives the coordinates to extract data from the txt file using the "MID(start, length)" function. Where it says "Repeat" is just reapeating the function over and over again for x repeats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2023 13:05:57 GMT</pubDate>
    <dc:creator>Igor-Ribeiro-Nordica</dc:creator>
    <dc:date>2023-07-27T13:05:57Z</dc:date>
    <item>
      <title>Convert Fact Table from XML and TXT</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Convert-Fact-Table-from-XML-and-TXT/m-p/2094995#M12520</link>
      <description>&lt;P&gt;I received two files to represent a fact table. One is a .xml file and other is a .txt.&amp;nbsp;How can I use these two files to create a comprehensive normal format fact table in Qlik SaaS?&lt;/P&gt;
&lt;P&gt;XML:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
    &amp;lt;FlatFileDefinition TemplateName="MDTRM: Fcc, OutletCode - SIN Reporte" FileName="FFFC_BRA_SMPMDTRM_150A_202206.txt" ZipName=""&amp;gt;
      &amp;lt;Columns&amp;gt;
        &amp;lt;Column Name="Outlet_Code" Start="1" Length="10" Repeat="1" Type="Field" /&amp;gt;
        &amp;lt;Column Name="Regi_Cod" Start="11" Length="3" Repeat="1" Type="Field" /&amp;gt;
        &amp;lt;Column Name="Dist_Cod" Start="14" Length="4" Repeat="1" Type="Field" /&amp;gt;
        &amp;lt;Column Name="Terr_Cod" Start="18" Length="6" Repeat="1" Type="Field" /&amp;gt;
        &amp;lt;Column Name="Clie_Let" Start="24" Length="1" Repeat="1" Type="Field" /&amp;gt;
        &amp;lt;Column Name="Fcc" Start="25" Length="10" Repeat="1" Type="Field" /&amp;gt;
        &amp;lt;Column Name="Units_PeriodNumber" Start="35" Length="15" Repeat="24" Type="Measure" /&amp;gt;
        &amp;lt;Column Name="Values_PeriodNumber" Start="395" Length="15" Repeat="24" Type="Measure" /&amp;gt;
        &amp;lt;Column Name="WholeSaler_Code" Start="755" Length="10" Repeat="1" Type="Field" /&amp;gt;
        &amp;lt;Column Name="SumControl_Units_PeriodNumber" Start="765" Length="25" Repeat="1" Type="MeasureControl" /&amp;gt;
        &amp;lt;Column Name="SumControl_Values_PeriodNumber" Start="790" Length="25" Repeat="1" Type="MeasureControl" /&amp;gt;
      &amp;lt;/Columns&amp;gt;
    &amp;lt;/FlatFileDefinition&amp;gt;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;TXT (first 2 lines):&lt;/P&gt;
&lt;P&gt;00002810900010010000001A0000050790000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000002.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000077.4900000081900000000000000000000002.000000000000000000000077.49&lt;BR /&gt;00003967640010010000001A0000050790000000000000.00000000000000.00000000000000.00000000000002.00000000000000.00000000000000.00000000000000.00000000000002.00000000000000.00000000000000.00000000000002.00000000000000.00000000000000.00000000000000.00000000000000.00000000000002.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000090.55000000000000.00000000000000.00000000000000.00000000000081.13000000000000.00000000000000.00000000000085.83000000000000.00000000000000.00000000000000.00000000000000.00000000000072.59000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.00000000000000.0000000021870000000000000000000008.000000000000000000000330.10&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 16:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Convert-Fact-Table-from-XML-and-TXT/m-p/2094995#M12520</guid>
      <dc:creator>Igor-Ribeiro-Nordica</dc:creator>
      <dc:date>2023-07-18T16:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Fact Table from XML and TXT</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Convert-Fact-Table-from-XML-and-TXT/m-p/2097880#M12545</link>
      <description>&lt;P&gt;Eventually I managed to solve this, so for anyone who finds the same issue:&lt;/P&gt;
&lt;P&gt;The xml file gives the coordinates to extract data from the txt file using the "MID(start, length)" function. Where it says "Repeat" is just reapeating the function over and over again for x repeats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 13:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Convert-Fact-Table-from-XML-and-TXT/m-p/2097880#M12545</guid>
      <dc:creator>Igor-Ribeiro-Nordica</dc:creator>
      <dc:date>2023-07-27T13:05:57Z</dc:date>
    </item>
  </channel>
</rss>

