<?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 Text File data normalisation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Text-File-data-normalisation/m-p/2553497#M1334879</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there a way to format data that either comes in a single line or over multiple lines&lt;/P&gt;&lt;P&gt;Field01, Field02, Field03, Field04, Field05, Field06, Field07&lt;BR /&gt;X12049,0962019010,Y,PAP,192.123.123.18,255.255.255.0,192.123.123.1&lt;BR /&gt;X12049,0962019011,Y,PAP,192.123.123.18,255.255.255.0,192.123.123.1&lt;/P&gt;&lt;P&gt;X1T043,0962019002,Y,\&lt;BR /&gt;TXT,192.123.123.200,255.255.255.0,192.123.123.1&lt;/P&gt;&lt;P&gt;X12043,0962019004,Y,\&lt;BR /&gt;PDF,192.123.123.26,255.255.255.0,192.123.132.1&lt;/P&gt;&lt;P&gt;X12043,0962019005,Y,\&lt;BR /&gt;PDF,192.123.132.26,255.255.255.0,192.123.123.1&lt;/P&gt;&lt;P&gt;It needs to look like&lt;/P&gt;&lt;P&gt;Field01, Field02, Field03, Field04, Field05, Field06,Field07&lt;BR /&gt;X12049,0962019010,PAP,192.123.123.18,255.255.255.0,192.123.123.1&lt;BR /&gt;X12049,0962019011,PAP,192.123.123.18,255.255.255.0,192.123.123.1&lt;/P&gt;&lt;P&gt;X1T043,0962019002,TXT,192.123.123.200,255.255.255.0,192.123.123.1&lt;/P&gt;&lt;P&gt;X120431,0962019004,PDF,192.123.123.26,255.255.255.0,192.123.132.1&lt;/P&gt;&lt;P&gt;X120432,0962019005,PDF,192.123.132.26,255.255.255.0,192.123.123.1&lt;/P&gt;&lt;P&gt;I have tried using Peek but it still fails&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jul 2026 13:39:26 GMT</pubDate>
    <dc:creator>thepope</dc:creator>
    <dc:date>2026-07-20T13:39:26Z</dc:date>
    <item>
      <title>Text File data normalisation</title>
      <link>https://community.qlik.com/t5/QlikView/Text-File-data-normalisation/m-p/2553497#M1334879</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there a way to format data that either comes in a single line or over multiple lines&lt;/P&gt;&lt;P&gt;Field01, Field02, Field03, Field04, Field05, Field06, Field07&lt;BR /&gt;X12049,0962019010,Y,PAP,192.123.123.18,255.255.255.0,192.123.123.1&lt;BR /&gt;X12049,0962019011,Y,PAP,192.123.123.18,255.255.255.0,192.123.123.1&lt;/P&gt;&lt;P&gt;X1T043,0962019002,Y,\&lt;BR /&gt;TXT,192.123.123.200,255.255.255.0,192.123.123.1&lt;/P&gt;&lt;P&gt;X12043,0962019004,Y,\&lt;BR /&gt;PDF,192.123.123.26,255.255.255.0,192.123.132.1&lt;/P&gt;&lt;P&gt;X12043,0962019005,Y,\&lt;BR /&gt;PDF,192.123.132.26,255.255.255.0,192.123.123.1&lt;/P&gt;&lt;P&gt;It needs to look like&lt;/P&gt;&lt;P&gt;Field01, Field02, Field03, Field04, Field05, Field06,Field07&lt;BR /&gt;X12049,0962019010,PAP,192.123.123.18,255.255.255.0,192.123.123.1&lt;BR /&gt;X12049,0962019011,PAP,192.123.123.18,255.255.255.0,192.123.123.1&lt;/P&gt;&lt;P&gt;X1T043,0962019002,TXT,192.123.123.200,255.255.255.0,192.123.123.1&lt;/P&gt;&lt;P&gt;X120431,0962019004,PDF,192.123.123.26,255.255.255.0,192.123.132.1&lt;/P&gt;&lt;P&gt;X120432,0962019005,PDF,192.123.132.26,255.255.255.0,192.123.123.1&lt;/P&gt;&lt;P&gt;I have tried using Peek but it still fails&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2026 13:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-File-data-normalisation/m-p/2553497#M1334879</guid>
      <dc:creator>thepope</dc:creator>
      <dc:date>2026-07-20T13:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Text File data normalisation</title>
      <link>https://community.qlik.com/t5/QlikView/Text-File-data-normalisation/m-p/2554193#M1334886</link>
      <description>&lt;P&gt;Hi, for that particular example, if the error is the same as you show, you can use:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;// Load data and identify partial rows, also row numebr to keep track of loadiong order
Init:
LOAD Field01, 
     Field02, 
     Field03, 
     Field04, 
     Field05, 
     Field06, 
     Field07,
     RowNo() as RowNumber,
     If(Len(Field07)&amp;lt;5 and Field04='\',1,0) as isFirstPart,
     If(Len(Field07)&amp;lt;5 and Field04&amp;lt;&amp;gt;'\',1,0) as isSecondPart
FROM ...

// Merge rows; loading from the last row, add fields from the second part to the first part. PRevious can access the data ignored bny the 'where' filter
CreateRows:
LOAD Field01, 
     Field02, 
     Field03,
     If(isFirstPart, Previous(Field01), Field04) as Field04,
     If(isFirstPart, Previous(Field02), Field05) as Field05,
     If(isFirstPart, Previous(Field03), Field06) as Field06,
     If(isFirstPart, Previous(Field04), Field07) as Field07,
     RowNumber,
     isFirstPart
Resident Init
where isSecondPart=0
Order by RowNumber desc;

DROP Table Init;&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 01 Aug 2026 19:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-File-data-normalisation/m-p/2554193#M1334886</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2026-08-01T19:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Text File data normalisation</title>
      <link>https://community.qlik.com/t5/QlikView/Text-File-data-normalisation/m-p/2554217#M1334887</link>
      <description>&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I neater solution than I came up with&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2026 08:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-File-data-normalisation/m-p/2554217#M1334887</guid>
      <dc:creator>thepope</dc:creator>
      <dc:date>2026-08-03T08:34:52Z</dc:date>
    </item>
  </channel>
</rss>

