<?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: How to get name in right order in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491774#M183810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't think that works as this gives me "Hof van den"&amp;nbsp; as where I would like to have "van den Hof"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jul 2013 14:51:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-17T14:51:13Z</dc:date>
    <item>
      <title>How to get name in right order</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491771#M183807</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;&lt;/P&gt;&lt;P&gt;I have a field called NameVZ which looks like this :&amp;nbsp;&amp;nbsp;&amp;nbsp; F.M.J. Hof van den &lt;/P&gt;&lt;P&gt;where F.M.J. are the initials, Hof is the surname and "van den" the preposition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to create two fields out of this. One with the Initials which is easy -&amp;gt;&amp;nbsp; SubField(NameVZ, ' ',1) as Initials&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other field should have preposition + Surname in one:&amp;nbsp;&amp;nbsp;&amp;nbsp; "van den Hof"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how do I do that as the propostion can be different for each name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to be clearer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field NameVZ&amp;nbsp;&amp;nbsp; (examples)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F.M.J. Hof van den&lt;/P&gt;&lt;P&gt;T. Johnson&lt;/P&gt;&lt;P&gt;S. Haaren van&lt;/P&gt;&lt;P&gt;B. Beuker de&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should become&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field FullnameVZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;van den Hof&lt;/P&gt;&lt;P&gt;Johnson&lt;/P&gt;&lt;P&gt;van Haaren&lt;/P&gt;&lt;P&gt;de Beuker&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preposition before the surname&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 14:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491771#M183807</guid>
      <dc:creator />
      <dc:date>2013-07-17T14:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name in right order</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491772#M183808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are many ways.&amp;nbsp; Try this for example&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;textbetween&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(NameVZ&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #363636; font-size: 8pt;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #363636; font-size: 8pt;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 14:37:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491772#M183808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-17T14:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name in right order</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491773#M183809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do a right() on the name, using the width of the intials that you've already detected.&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;right(NameVZ,Len(NameVZ)-SubField(NameVZ, ' ',1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 14:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491773#M183809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-17T14:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name in right order</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491774#M183810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't think that works as this gives me "Hof van den"&amp;nbsp; as where I would like to have "van den Hof"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 14:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491774#M183810</guid>
      <dc:creator />
      <dc:date>2013-07-17T14:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name in right order</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491775#M183811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you clarify this a bit, as I don't understand how this works in my situation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 14:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491775#M183811</guid>
      <dc:creator />
      <dc:date>2013-07-17T14:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name in right order</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491776#M183812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The textbetween(text, s1,s2) returns substring of the "text" field value between text s1 and text s2.&amp;nbsp; In your situation, I used s1 = ' ' (one space), and s2='' (nothing).&amp;nbsp; So, the result wil be from the character after the first space and to the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 14:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491776#M183812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-17T14:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name in right order</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491777#M183813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option is to use mid():&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;mid&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(NameVZ&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;index&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(NameVZ&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #363636; font-size: 8pt;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)+1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I calculate the position of the 1st space, add 1 to get to the position of the first character after space, and use mid() to cut from that position to the end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 15:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491777#M183813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-17T15:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name in right order</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491778#M183814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you want to set up a specific processing rule should you find the existence of "van den", and that this is at the very end of the string.&lt;/P&gt;&lt;P&gt;In that case, something like this may do it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET EndName = &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;textbetween&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(NameVZ&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #363636; font-size: 8pt;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #363636; font-size: 8pt;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(Lower(Right(NameVZ,7)='van den',&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; 'Van den' &amp;amp; textbetween&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(EndName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #363636; font-size: 8pt;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #363636; font-size: 8pt;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; textbetween&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(NameVZ&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #363636; font-size: 8pt;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #363636; font-size: 8pt;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I prefer Michael's texttbetween() function to the right(), mid() etc string chopping functions. Guess it's the thing I've learnt from the forum today.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 16:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491778#M183814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-17T16:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name in right order</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491779#M183815</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;You can make use of it&lt;/P&gt;&lt;P&gt;LOAD *, Trim(Mid(Trim(Mid(Text, Len(Initial)+1)), Index(Trim(Mid(Text, Len(Initial)+1)), ' ')) &amp;amp; ' ' &amp;amp; SubField(Trim(Mid(Text, Len(Initial)+1)),' ', 1)) AS Name;&lt;/P&gt;&lt;P&gt;LOAD *, Left(Text, index(Text, '.', -1)) AS Initial&amp;nbsp; Inline [&lt;/P&gt;&lt;P&gt;Text&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;F.M.J. Hof van den&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;G.N.K. Ipg wbo efo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;H.O.L. mqh xap fgp];&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 18:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491779#M183815</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-07-17T18:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name in right order</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491780#M183816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, "van den" is just a possibility. In other names it can be blank or have other options like "van" "van de" "de" "den" etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So searching on text is no option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 07:42:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491780#M183816</guid>
      <dc:creator />
      <dc:date>2013-07-18T07:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name in right order</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491781#M183817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thx Michael,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Your suggestion helped me on the right track.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This is what I've used now: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TextBetween&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TextBetween&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NaamVZ&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, ' ',''),' ','')))= 0, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SubField&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NaamVZ&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, ' ', 2), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TextBetween&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TextBetween&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NaamVZ&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, ' ',''),' ','') &amp;amp; ' ' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SubField&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NaamVZ&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, ' ', 2)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;AchternaamVZ&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;It's not 100% waterproof (e.g. da Silva de Jesus - &amp;gt;&amp;nbsp; Silva de Jesus Da) but it will do.&lt;/SPAN&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, 18 Jul 2013 08:41:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491781#M183817</guid>
      <dc:creator />
      <dc:date>2013-07-18T08:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name in right order</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491782#M183818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about looping through a set of known name prepositions then. Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SET vName ='';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SET vEndName = &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;textbetween&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(NameVZ&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #363636; font-size: 8pt;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #363636; font-size: 8pt;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FOR EACH vPrep IN ' van den',' van der',' van de',' de',' den'&lt;/P&gt;&lt;P&gt;if Lower(Right(vEndName,Len(vPrep))=vPrep THEN&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; SET vName = vPrep &amp;amp; textbetween&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(vEndName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #363636; font-size: 8pt;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #363636; font-size: 8pt;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXIT FOR&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ENDIF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF Len(vName)=0 THEN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; SET vName =vEndName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;1. the spaces at the start of each of the listed vPrep options.&lt;/P&gt;&lt;P&gt;2. the 'van ..' options should go before those without 'van ..'. The EXIT FOR command should then prevent 'der' being used before 'van der'&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 12:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491782#M183818</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-18T12:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get name in right order</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491783#M183819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx for your effort Jonathan, but Michael already got me on the right track.&lt;/P&gt;&lt;P&gt;See above for the solution I used. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 12:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-name-in-right-order/m-p/491783#M183819</guid>
      <dc:creator />
      <dc:date>2013-07-18T12:08:13Z</dc:date>
    </item>
  </channel>
</rss>

