<?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: split up an address into parts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283765#M622776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be SubField with comma as delimiters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SubField(Address, ',', 1) as Address,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SubField(Address, ',', 2) as City,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SubField(SubField(Address, ',' , 3), ' ', 1) as State,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;SubField(SubField(Address, ',' , 3), ' ', 2) as ZipCode,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;SubField(Address, ',', 4) as Country&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The above heavy rely on the data being consistent.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2017 20:32:37 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-02-15T20:32:37Z</dc:date>
    <item>
      <title>split up an address into parts</title>
      <link>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283764#M622775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am looking for the best way in a load script to split up an address to fields of its parts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as an example a single address field of ..&amp;nbsp; full_address of 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA&lt;/P&gt;&lt;P&gt;to be split up to&lt;/P&gt;&lt;P&gt;Country of USA&lt;/P&gt;&lt;P&gt;Zipcode of 94043&lt;/P&gt;&lt;P&gt;State of CA&lt;/P&gt;&lt;P&gt;City of Mountain View&lt;/P&gt;&lt;P&gt;Address of 1600 Amphitheatre Pkwy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is subfield the best way or right or left or mid?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 20:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283764#M622775</guid>
      <dc:creator>alan_richmond</dc:creator>
      <dc:date>2017-02-15T20:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: split up an address into parts</title>
      <link>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283765#M622776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be SubField with comma as delimiters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SubField(Address, ',', 1) as Address,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SubField(Address, ',', 2) as City,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SubField(SubField(Address, ',' , 3), ' ', 1) as State,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;SubField(SubField(Address, ',' , 3), ' ', 2) as ZipCode,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;SubField(Address, ',', 4) as Country&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The above heavy rely on the data being consistent.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 20:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283765#M622776</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-15T20:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: split up an address into parts</title>
      <link>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283766#M622777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Try this&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;subfield(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;full_address&lt;/SPAN&gt;,',',1) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Address&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;subfield(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;full_address&lt;/SPAN&gt;,',',2) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;City&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;subfield(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;full_address&lt;/SPAN&gt;,',',4) as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Country&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Purgechar(subfield(&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;full_address&lt;/STRONG&gt;,',',3),'0123456789') as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;State&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;keepchar(subfield(&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;full_address&lt;/STRONG&gt;,',',3),'0123456789') as ZIP&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 20:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283766#M622777</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2017-02-15T20:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: split up an address into parts</title>
      <link>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283767#M622778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have Australian address like ..&lt;/P&gt;&lt;P&gt;1-2 Main St, Box Hill VIC 3128, Australia&lt;/P&gt;&lt;P&gt;where there is not a comma after the City&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 20:44:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283767#M622778</guid>
      <dc:creator>alan_richmond</dc:creator>
      <dc:date>2017-02-15T20:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: split up an address into parts</title>
      <link>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283768#M622779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess if you can provide 10-15 lines of different variation of address, we might be able to provide you with a sample which might work across all the different addresses&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 20:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283768#M622779</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-15T20:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: split up an address into parts</title>
      <link>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283769#M622780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both are the output of the googleapis geocoder so it looks like all the Australian addresses miss the comma after city and the US addresses use the comma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Australian zipcode is 3 or 4 numbers and the state is always 2 or three characters and there are only 8 possible state names&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 20:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283769#M622780</guid>
      <dc:creator>alan_richmond</dc:creator>
      <dc:date>2017-02-15T20:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: split up an address into parts</title>
      <link>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283770#M622781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;How about this, Only works for Australia use it in a if statement &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;subfield(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;full_address&lt;/SPAN&gt;,',',1) as &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Address,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;PurgeChar(Purgechar(subfield(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;full_address&lt;/STRONG&gt;,',',2),'123456789'),Right(Trim(Purgechar(subfield(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;full_address&lt;/STRONG&gt;,',',2),'123456789')),3)) as City,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Right(Trim(Purgechar(subfield(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;full_address&lt;/STRONG&gt;,',',2),'123456789')),3) as State,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Keepchar(subfield(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;full_address&lt;/STRONG&gt;,',',2),'123456789') as Zip,&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 21:15:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283770#M622781</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2017-02-15T21:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: split up an address into parts</title>
      <link>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283771#M622782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;worked like a charm, thanks Aar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 21:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283771#M622782</guid>
      <dc:creator>alan_richmond</dc:creator>
      <dc:date>2017-02-15T21:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: split up an address into parts</title>
      <link>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283772#M622783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops, missed Country&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 21:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283772#M622783</guid>
      <dc:creator>alan_richmond</dc:creator>
      <dc:date>2017-02-15T21:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: split up an address into parts</title>
      <link>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283773#M622784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;subfield(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;full_address&lt;/SPAN&gt;,',',3) as &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;Country &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;only for Australia though&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;subfield(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;full_address&lt;/SPAN&gt;,',',4) as &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13px;"&gt;Country for US&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 21:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283773#M622784</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2017-02-15T21:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: split up an address into parts</title>
      <link>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283774#M622785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="2017-02-16_10-37-02.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/153267_2017-02-16_10-37-02.jpg" style="height: 461px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Hi Aar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;looks like spaces in city names are causing issues and the purge is removing characters in city names&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the current code and attached is a sample of the output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,subfield(formatted_address,',',1) as Address&lt;/P&gt;&lt;P&gt;,PurgeChar(PurgeChar(subfield(formatted_address,',',2),'123456789'),Right(trim(Purgechar(subfield(formatted_address,',',2),'123456789')),3)) as City&lt;/P&gt;&lt;P&gt;,Right(Trim(Purgechar(subfield(formatted_address,',',2),'123456789')),3) as State&lt;/P&gt;&lt;P&gt;,Keepchar(subfield(formatted_address,',',2),'123456789') as Postcode&lt;/P&gt;&lt;P&gt;,subfield(formatted_address,',',3) as Country&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 23:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283774#M622785</guid>
      <dc:creator>alan_richmond</dc:creator>
      <dc:date>2017-02-15T23:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: split up an address into parts</title>
      <link>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283775#M622786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;SPAN style="color: #ff0000;"&gt;Trim(SubField(Address, ',', 1)) as Address,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp; If(Trim(SubField(Address, ',', -1)) = 'USA', Trim(SubField(Address, ',', 2)), Trim(Left(SubField(Address, ',', 2), Index(Trim(SubField(Address, ',', 2)), ' ', -2)))) as City,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp; If(Trim(SubField(Address, ',', -1)) = 'USA', Trim(SubField(Trim(SubField(Address, ',', 3)), ' ', 1)), Trim(SubField(SubField(Address, ',', 2), ' ', -2))) as State,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp; If(Trim(SubField(Address, ',', -1)) = 'USA', Trim(SubField(Trim(SubField(Address, ',', 3)), ' ', 2)), Trim(SubField(SubField(Address, ',', 2), ' ', -1))) as ZipCode,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp; Trim(SubField(Address, ',', -1)) as Country&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Address&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1-2 Main St, Box Hill VIC 3128, Australia&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;] (delimiter is |);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/153297_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 03:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/split-up-an-address-into-parts/m-p/1283775#M622786</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-16T03:38:28Z</dc:date>
    </item>
  </channel>
</rss>

