<?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 Load only part of a string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-only-part-of-a-string/m-p/1063160#M945727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help with loading just part of a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. I have a string in the database which is "001.02" or "001-02".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When loading this into qlikview i just want to get "001" as a result - so only the left part before "." or "-".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure this is very simple but I do not know which expression is needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jan 2016 12:25:34 GMT</pubDate>
    <dc:creator>robert_gansel</dc:creator>
    <dc:date>2016-01-11T12:25:34Z</dc:date>
    <item>
      <title>Load only part of a string</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-part-of-a-string/m-p/1063160#M945727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help with loading just part of a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. I have a string in the database which is "001.02" or "001-02".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When loading this into qlikview i just want to get "001" as a result - so only the left part before "." or "-".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure this is very simple but I do not know which expression is needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 12:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-part-of-a-string/m-p/1063160#M945727</guid>
      <dc:creator>robert_gansel</dc:creator>
      <dc:date>2016-01-11T12:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Load only part of a string</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-part-of-a-string/m-p/1063161#M945728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(KeepChar(FieldName, '.-') = '.', SubField(FieldName, '.', 1), SubField(FieldName, '-', 1))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 12:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-part-of-a-string/m-p/1063161#M945728</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-11T12:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Load only part of a string</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-part-of-a-string/m-p/1063162#M945729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there only two separator "." and "_"&amp;nbsp; or there is any other separator?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 12:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-part-of-a-string/m-p/1063162#M945729</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-01-11T12:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Load only part of a string</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-part-of-a-string/m-p/1063163#M945730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use SubField like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SubField('001-02', '-', 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put instead of '-' with '.' if you have '001.02'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunny T response works like a charm also &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 12:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-part-of-a-string/m-p/1063163#M945730</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-01-11T12:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Load only part of a string</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-part-of-a-string/m-p/1063164#M945731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;if there is only two separator then try like this&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&lt;STRONG&gt;subfield(replace(replace(String,'.','*'),'-','*'),'*',1) as String_New&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;LOAD *, subfield(replace(replace(String,'.','*'),'-','*'),'*',1) as String_New Inline [&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;String&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;001.002&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;002_003&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;003.004];&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 12:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-part-of-a-string/m-p/1063164#M945731</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-01-11T12:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Load only part of a string</title>
      <link>https://community.qlik.com/t5/QlikView/Load-only-part-of-a-string/m-p/1063165#M945732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or even simpler:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=Subfield(Replace(String, '.', '-'), '-', 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or in script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'courier new', courier;"&gt;...Subfield(Replace(String, '.', '-'), '-', 1) AS String_New, ...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 13:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-only-part-of-a-string/m-p/1063165#M945732</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-11T13:49:21Z</dc:date>
    </item>
  </channel>
</rss>

