<?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: Varying Columns in a Load in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Varying-Columns-in-a-Load/m-p/1650460#M48533</link>
    <description>&lt;P&gt;Is the | always separator and the format doesn't change? If yes, for getting C value you can use:&lt;/P&gt;&lt;P&gt;subfield(@1,'|',6) as C&lt;/P&gt;&lt;P&gt;and for determining if there is any D value:&lt;/P&gt;&lt;P&gt;if(wildmatch(@1,'|D|'), subfield(@1,'|',8),0) as D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 24 Nov 2019 16:44:26 GMT</pubDate>
    <dc:creator>DavidM</dc:creator>
    <dc:date>2019-11-24T16:44:26Z</dc:date>
    <item>
      <title>Varying Columns in a Load</title>
      <link>https://community.qlik.com/t5/App-Development/Varying-Columns-in-a-Load/m-p/1650342#M48523</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a situation where I am trying to parse data in a flat file that has varying column names.&lt;/P&gt;&lt;P&gt;Simplified example of the data:&lt;BR /&gt;Sample 1&lt;BR /&gt;A|John|B|123 Lane|C|345|D|765|E|Age30&lt;BR /&gt;Sample 2&lt;BR /&gt;A|John|B|123 Lane|C|345|E|Age30&lt;BR /&gt;&lt;BR /&gt;I am loading the data like this and it is working for this part:&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;textbetween(@1,'A|','|C') as Name and Address,&lt;BR /&gt;subfield(@1,'E|',2) as Age&lt;BR /&gt;From Table;&lt;/P&gt;&lt;P&gt;However, I want to load the data after 'C|', the value of 345 in this case, as a field and if the data after 'D|', but before '|E' exists, I'd like to load that as a field as well, and have it null if it doesn't exist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to solve something like this? I'd appreciate any suggestions. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 23:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Varying-Columns-in-a-Load/m-p/1650342#M48523</guid>
      <dc:creator>melissapluke</dc:creator>
      <dc:date>2019-11-22T23:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Varying Columns in a Load</title>
      <link>https://community.qlik.com/t5/App-Development/Varying-Columns-in-a-Load/m-p/1650460#M48533</link>
      <description>&lt;P&gt;Is the | always separator and the format doesn't change? If yes, for getting C value you can use:&lt;/P&gt;&lt;P&gt;subfield(@1,'|',6) as C&lt;/P&gt;&lt;P&gt;and for determining if there is any D value:&lt;/P&gt;&lt;P&gt;if(wildmatch(@1,'|D|'), subfield(@1,'|',8),0) as D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Nov 2019 16:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Varying-Columns-in-a-Load/m-p/1650460#M48533</guid>
      <dc:creator>DavidM</dc:creator>
      <dc:date>2019-11-24T16:44:26Z</dc:date>
    </item>
  </channel>
</rss>

