<?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 subfield unequal string length in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/subfield-unequal-string-length/m-p/215783#M69191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, one subfield too much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD * WHERE sfield like '*lines fetched";&lt;BR /&gt;LOAD ... subfield(@26:n, ',') as sfield ...;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2011 13:31:09 GMT</pubDate>
    <dc:creator>rbecher</dc:creator>
    <dc:date>2011-04-14T13:31:09Z</dc:date>
    <item>
      <title>subfield unequal string length</title>
      <link>https://community.qlik.com/t5/QlikView/subfield-unequal-string-length/m-p/215778#M69186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a log file from SAP load and want to extract the number of lines fetched form the log file (txt).&lt;/P&gt;&lt;P&gt;I tried these functions or combinations:&lt;/P&gt;&lt;P&gt;if(@26:n like '*lines fetched*', 'lines fetched', '') as find_lines,&lt;BR /&gt; subfield(subfield(@26:n, ','), 'lines fetched') as text_parts,&lt;BR /&gt; subfield(@26:n, 'lines fetched') as bla,&lt;BR /&gt; textbetween(@26:n, ',' , 'lines fetched') as lines,&lt;BR /&gt; substringcount(@26:n, ',') as [, count],&lt;BR /&gt; subfield(@26:n, ',', substringcount(@26:n, ',')) as lines?,&lt;BR /&gt; index(@26:n, ',') as index,&lt;/P&gt;&lt;P&gt;none delivered the last part of the log file sentence which contains "&amp;lt;number&amp;gt; lines fetched"&lt;/P&gt;&lt;P&gt;The text looks like this:&lt;/P&gt;&lt;P&gt;4 fields found: DIMID, SID_0CHNGID, SID_0RECORDTP, SID_0REQUID, 36 lines fetched&lt;/P&gt;&lt;P&gt;or like this&lt;/P&gt;&lt;P&gt;1 fields found: Dimensionloaded, 0 lines fetched&lt;/P&gt;&lt;P&gt;or .....&lt;/P&gt;&lt;P&gt;How can I extract the last part of each sentence? Your help is much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 12:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subfield-unequal-string-length/m-p/215778#M69186</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2011-04-14T12:23:27Z</dc:date>
    </item>
    <item>
      <title>subfield unequal string length</title>
      <link>https://community.qlik.com/t5/QlikView/subfield-unequal-string-length/m-p/215779#M69187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The following should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Lines:LOAD KeepChar(Right(@1:n, Len(@1:n) - Index(@1:n, ', ', -1) +1), '0123456789') AS LinesFROM File.csv(fix, codepage is 1252);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 12:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subfield-unequal-string-length/m-p/215779#M69187</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-04-14T12:36:57Z</dc:date>
    </item>
    <item>
      <title>subfield unequal string length</title>
      <link>https://community.qlik.com/t5/QlikView/subfield-unequal-string-length/m-p/215780#M69188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a stacked LOAD with a where clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD * WHERE sfield like '*lines fetched";&lt;BR /&gt;LOAD ... subfield(subfield(@26:n, ',') as sfield ...;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 12:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subfield-unequal-string-length/m-p/215780#M69188</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-04-14T12:46:36Z</dc:date>
    </item>
    <item>
      <title>subfield unequal string length</title>
      <link>https://community.qlik.com/t5/QlikView/subfield-unequal-string-length/m-p/215781#M69189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works great. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 12:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subfield-unequal-string-length/m-p/215781#M69189</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2011-04-14T12:58:09Z</dc:date>
    </item>
    <item>
      <title>subfield unequal string length</title>
      <link>https://community.qlik.com/t5/QlikView/subfield-unequal-string-length/m-p/215782#M69190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ralf, this statement doesn't work.&lt;/P&gt;&lt;P&gt;Subfield needs more parameters is the QV message.&lt;/P&gt;&lt;P&gt;my final row is grey despite that the subfield coding has the correct colors.&lt;/P&gt;&lt;P&gt;syntax check gives an error on 'as sfield'&lt;/P&gt;&lt;P&gt;the code:&lt;/P&gt;&lt;P&gt;copa2:&lt;BR /&gt;load * where beschrijving like '*lines fetched';&lt;BR /&gt;LOAD @1:10 as datum,&lt;BR /&gt; @11:19 as tijd,&lt;BR /&gt; @20:20 as :,&lt;BR /&gt; @21:25 as regel,&lt;BR /&gt; @26:n as beschrijving,&lt;BR /&gt; subfield(subfield(@26:n, ',') as sfield,&lt;BR /&gt; FileName() as logbestand&lt;BR /&gt;FROM&lt;/P&gt;&lt;P&gt;error: Error in expression: ')' expected&lt;/P&gt;&lt;P&gt;added )&lt;/P&gt;&lt;P&gt;copa2:&lt;BR /&gt;load * where beschrijving like '*lines fetched';&lt;BR /&gt;LOAD @1:10 as datum,&lt;BR /&gt; @11:19 as tijd,&lt;BR /&gt; @20:20 as :,&lt;BR /&gt; @21:25 as regel,&lt;BR /&gt; @26:n as beschrijving,&lt;BR /&gt; subfield(subfield(@26:n, ',')) as sfield,&lt;BR /&gt; FileName() as logbestand&lt;BR /&gt;FROM&lt;/P&gt;&lt;P&gt;error: Error in expression: SubField takes 2-3 parameters&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 13:08:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subfield-unequal-string-length/m-p/215782#M69190</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2011-04-14T13:08:09Z</dc:date>
    </item>
    <item>
      <title>subfield unequal string length</title>
      <link>https://community.qlik.com/t5/QlikView/subfield-unequal-string-length/m-p/215783#M69191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, one subfield too much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD * WHERE sfield like '*lines fetched";&lt;BR /&gt;LOAD ... subfield(@26:n, ',') as sfield ...;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 13:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/subfield-unequal-string-length/m-p/215783#M69191</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-04-14T13:31:09Z</dc:date>
    </item>
  </channel>
</rss>

