<?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: How convert text file into tabular format in Qlik sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-convert-text-file-into-tabular-format-in-Qlik-sense/m-p/1905741#M74669</link>
    <description>&lt;P&gt;When I use Mid() function or this Expression: Mid(Line,Index(Line,':')+1) showing An error occurs: the session has timed out due to inactivity.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TauseefKhan_0-1647406426611.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74583i13F737F87FAA3B63/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TauseefKhan_0-1647406426611.png" alt="TauseefKhan_0-1647406426611.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2022 04:54:17 GMT</pubDate>
    <dc:creator>TauseefKhan</dc:creator>
    <dc:date>2022-03-16T04:54:17Z</dc:date>
    <item>
      <title>How convert text file into tabular format in Qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/How-convert-text-file-into-tabular-format-in-Qlik-sense/m-p/1905290#M74639</link>
      <description>&lt;P&gt;I have data in text fiel in below format:&lt;/P&gt;
&lt;P&gt;----------NEW TRANSACTON-----------&lt;BR /&gt;TRANSACTION DATE : 10:02 AM, 05 Dec 2021&lt;BR /&gt;CLIENT ID : Z0119&lt;BR /&gt;CLIENT NAME : ABCZ SALE&lt;BR /&gt;AMOUNT : 180,650.00&lt;BR /&gt;TRANSACTION REF. : 021&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I need data in below format:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TauseefKhan_0-1647341880775.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74489i2148C0F1EEA73061/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TauseefKhan_0-1647341880775.png" alt="TauseefKhan_0-1647341880775.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 11:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-convert-text-file-into-tabular-format-in-Qlik-sense/m-p/1905290#M74639</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2022-03-15T11:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: How convert text file into tabular format in Qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/How-convert-text-file-into-tabular-format-in-Qlik-sense/m-p/1905306#M74642</link>
      <description>&lt;P&gt;try below script&lt;/P&gt;
&lt;P&gt;but make sure you have add only delimiter at one time , in your data&amp;nbsp;&lt;SPAN&gt;TRANSACTION DATE &lt;FONT color="#FF0000"&gt;:&lt;/FONT&gt; 10&lt;FONT color="#FF0000"&gt;:&lt;/FONT&gt;02 AM, 05 Dec 2021&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;you use same delimiter 2 time. try like&amp;nbsp;TRANSACTION DATE &lt;FONT color="#FF0000"&gt;:&lt;/FONT&gt; 10&lt;FONT color="#FF0000"&gt;.&lt;/FONT&gt;02 AM, 05 Dec 2021 then&amp;nbsp; below script&amp;nbsp; will work&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ABC:&lt;/P&gt;
&lt;P&gt;LOAD [TRANSACTION DATE], &lt;BR /&gt;[CLIENT ID], &lt;BR /&gt;[CLIENT NAME], &lt;BR /&gt;AMOUNT, &lt;BR /&gt;[TRANSACTION REF.]&lt;BR /&gt;FROM&lt;BR /&gt;[lib://desk/ss.txt]&lt;BR /&gt;(txt, codepage is 28591, embedded labels, &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;delimiter is ':', msq, filters(Transpose())&lt;/STRONG&gt;&lt;/FONT&gt;);&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 11:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-convert-text-file-into-tabular-format-in-Qlik-sense/m-p/1905306#M74642</guid>
      <dc:creator>NitinK7</dc:creator>
      <dc:date>2022-03-15T11:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: How convert text file into tabular format in Qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/How-convert-text-file-into-tabular-format-in-Qlik-sense/m-p/1905564#M74656</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming there are multiple transactions included in one file, one solution might be:&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="MarcoWedel_0-1647367264221.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74538i2E3E83B5B3B68AB5/image-size/large?v=v2&amp;amp;px=999" role="button" title="MarcoWedel_0-1647367264221.png" alt="MarcoWedel_0-1647367264221.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;using this test file:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcoWedel_1-1647367365940.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74539i95D002D8D001555C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarcoWedel_1-1647367365940.png" alt="MarcoWedel_1-1647367365940.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;tabTransactFile:
LOAD [@1:n] as Line,
     RangeSum(Peek(TransactID),-([@1:n]='----------NEW TRANSACTON-----------')) as TransactID
FROM [lib://DataFiles/Transactions.txt] (fix, codepage is 1252);

tabTransactTemp:
Generic
Load TransactID,
     SubField(Line,':',1),
     Mid(Line,Index(Line,':')+1)     
Resident tabTransactFile
Where Line&amp;lt;&amp;gt;'----------NEW TRANSACTON-----------';

Drop Table tabTransactFile;

tabTransact:
Load '' as TempField AutoGenerate 0;

FOR i = NoOfTables()-1 to 0 STEP -1
  LET vTable=TableName($(i));
  IF WildMatch('$(vTable)', 'tabTransactTemp.*') THEN
    JOIN (tabTransact) LOAD * RESIDENT [$(vTable)];
    DROP TABLE [$(vTable)];
  ENDIF
NEXT i

Drop Field TempField;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope this helps&lt;/P&gt;
&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 18:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-convert-text-file-into-tabular-format-in-Qlik-sense/m-p/1905564#M74656</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-03-15T18:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: How convert text file into tabular format in Qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/How-convert-text-file-into-tabular-format-in-Qlik-sense/m-p/1905741#M74669</link>
      <description>&lt;P&gt;When I use Mid() function or this Expression: Mid(Line,Index(Line,':')+1) showing An error occurs: the session has timed out due to inactivity.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TauseefKhan_0-1647406426611.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74583i13F737F87FAA3B63/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TauseefKhan_0-1647406426611.png" alt="TauseefKhan_0-1647406426611.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 04:54:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-convert-text-file-into-tabular-format-in-Qlik-sense/m-p/1905741#M74669</guid>
      <dc:creator>TauseefKhan</dc:creator>
      <dc:date>2022-03-16T04:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: How convert text file into tabular format in Qlik sense</title>
      <link>https://community.qlik.com/t5/App-Development/How-convert-text-file-into-tabular-format-in-Qlik-sense/m-p/1906207#M74703</link>
      <description>&lt;P&gt;I don't think this error message is related to the Mid() function.&lt;/P&gt;
&lt;P&gt;Did you try reopening your session and repeating the test?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 20:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-convert-text-file-into-tabular-format-in-Qlik-sense/m-p/1906207#M74703</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-03-16T20:55:16Z</dc:date>
    </item>
  </channel>
</rss>

