<?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: Advanced nested SubField in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Advanced-nested-SubField/m-p/1010035#M342810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe just&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14452917542129965" jivemacro_uid="_14452917542129965"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PurgeChar(YourField,'0123456789')&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could be enough?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Oct 2015 21:56:04 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2015-10-19T21:56:04Z</dc:date>
    <item>
      <title>Advanced nested SubField</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-nested-SubField/m-p/1010032#M342807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! I have a problem with my subfield function even after browsing through the forum. I hope you can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a column with addresses which looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;somestreet 123, city&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; but sometimes it will look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some street name 123, city&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I want to do is to get rid of the number so in the end my rows will look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;somestreet, city&lt;/P&gt;&lt;P&gt;some street name, city&amp;nbsp; and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried nesting my subfields but I cannot seem to get rid of the number. The problem is the various amount of blank spaces in the street name, sometimes there is none, sometimes there is 1 or more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The furthest I have come is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubField(SubField([FieldName], ' ', 1), ',', 1) &amp;amp; SubField([FieldName], ',', 2) AS [FieldName] but that of course results in the street names with spaces to be cut off and only show the beginning.&lt;/P&gt;&lt;P&gt;'somestreet123, city' works fine and becomes 'somestreet city' BUT&lt;/P&gt;&lt;P&gt;'some street name 123, city' becomes 'some city' which is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 15:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-nested-SubField/m-p/1010032#M342807</guid>
      <dc:creator />
      <dc:date>2015-10-19T15:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced nested SubField</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-nested-SubField/m-p/1010033#M342808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can make use of the PurgeChar()-function to first get rid of the numbers. Then you can split the fields into two by using SubField() and lastly you can again use PurgeChar()-function to get rid of the spaces in the first field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 16:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-nested-SubField/m-p/1010033#M342808</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-10-19T16:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced nested SubField</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-nested-SubField/m-p/1010034#M342809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe&lt;/P&gt;&lt;P&gt;purgechar(SubField(FieldName, ',',1),'0123456789') &amp;amp; ' ' &amp;amp; SubField(FieldName, ',',2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 18:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-nested-SubField/m-p/1010034#M342809</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-10-19T18:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced nested SubField</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-nested-SubField/m-p/1010035#M342810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe just&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14452917542129965" jivemacro_uid="_14452917542129965"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PurgeChar(YourField,'0123456789')&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could be enough?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 21:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-nested-SubField/m-p/1010035#M342810</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-10-19T21:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced nested SubField</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-nested-SubField/m-p/1010036#M342811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again everyone and thank you for your input &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/61824"&gt;MarcoWedel&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/146975"&gt;petter-s&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/10670"&gt;maxgro&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Your solution got me very close although there is one problem left. Some of the house numbers actually have a letter in them (sorry for not specifying that earlier). So they are like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some street name 123A, city&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if I put the letter into the purgechar then of course all streets that start with that letter also disappear.&lt;/P&gt;&lt;P&gt;Is there a way to specify the purgechar with something like&lt;/P&gt;&lt;P&gt;"if(house number contains a letter, purgechar([field], '0123456789ABC'), purgechar([field], '0123456789'))" ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 06:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-nested-SubField/m-p/1010036#M342811</guid>
      <dc:creator />
      <dc:date>2015-10-20T06:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced nested SubField</title>
      <link>https://community.qlik.com/t5/QlikView/Advanced-nested-SubField/m-p/1010037#M342812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_187405_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102732_QlikCommunity_Thread_187405_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14454629088539717" jivemacro_uid="_14454629088539717"&gt;
&lt;P&gt;tabAddress:&lt;/P&gt;
&lt;P&gt;LOAD Replace(Concat(Address,' ',IterNo),' ,',',') as Address&lt;/P&gt;
&lt;P&gt;Where not FindOneOf(Address,'0123456789')&lt;/P&gt;
&lt;P&gt;Group By RecNo;&lt;/P&gt;
&lt;P&gt;LOAD SubField(Replace(Address,',',' ,'),' ',IterNo()) as Address,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecNo() as RecNo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IterNo() as IterNo&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;Address&lt;/P&gt;
&lt;P&gt;"somestreet 123, city"&lt;/P&gt;
&lt;P&gt;"some street name 123, city"&lt;/P&gt;
&lt;P&gt;"some different street name 123A, city"&lt;/P&gt;
&lt;P&gt;"some other street name 123B, city"&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;While IterNo()&amp;lt;=SubStringCount(Replace(Address,',',' ,'),' ')+1;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 21:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Advanced-nested-SubField/m-p/1010037#M342812</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-10-21T21:28:44Z</dc:date>
    </item>
  </channel>
</rss>

