<?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 Little Syntax trouble shorten names in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Little-Syntax-trouble-shorten-names/m-p/211209#M65552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, if the field value is always "Region XXXX" there are other options&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;SubField(FIELD,' ',2) as [DTZC Region]&lt;/LI&gt;&lt;LI&gt;right(FIELD,Index(FIELD,' ',1)-1)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;just to expand the options &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Dec 2010 22:24:31 GMT</pubDate>
    <dc:creator>hector</dc:creator>
    <dc:date>2010-12-02T22:24:31Z</dc:date>
    <item>
      <title>Little Syntax trouble shorten names</title>
      <link>https://community.qlik.com/t5/QlikView/Little-Syntax-trouble-shorten-names/m-p/211203#M65546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello you all,&lt;/P&gt;&lt;P&gt;Situation: I've got 3 regions and I want to shorten the region names. Now they are called region losser, region almelo and region enschede and I want to get rid of the word region. My script only works for 1 region. Can someone help me with the correct syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Trim([DTZC Region])= 'Region Losser', 'Losser',[DTZC Region]) , IF(Trim([DTZC Region])= 'Region Almelo', 'Almelo',[DTZC Region]) , IF(Trim([DTZC Region])= 'Region Enschede', 'Enschede',[DTZC Region]) &lt;B&gt;as&lt;/B&gt; [DTZC Region],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 15:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Little-Syntax-trouble-shorten-names/m-p/211203#M65546</guid>
      <dc:creator />
      <dc:date>2010-12-02T15:17:50Z</dc:date>
    </item>
    <item>
      <title>Little Syntax trouble shorten names</title>
      <link>https://community.qlik.com/t5/QlikView/Little-Syntax-trouble-shorten-names/m-p/211204#M65547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out 'map' and 'mapping' in the help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 15:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Little-Syntax-trouble-shorten-names/m-p/211204#M65547</guid>
      <dc:creator />
      <dc:date>2010-12-02T15:20:38Z</dc:date>
    </item>
    <item>
      <title>Little Syntax trouble shorten names</title>
      <link>https://community.qlik.com/t5/QlikView/Little-Syntax-trouble-shorten-names/m-p/211205#M65548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;P&gt;If you don't want to go the mapping approach (which would be better for many regions, but not so critical for 3), then use this expression:&lt;/P&gt;&lt;P&gt;If (Trim([DTZC Region])= 'Region Losser', 'Losser',&lt;BR /&gt;If(Trim([DTZC Region])= 'Region Almelo', 'Almelo',&lt;BR /&gt;If(Trim([DTZC Region])= 'Region Enschede', 'Enschede','')))&lt;/P&gt;&lt;P&gt;OR even&lt;/P&gt;&lt;P&gt;Replace([DTZC Region], 'Region ', '')&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 15:34:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Little-Syntax-trouble-shorten-names/m-p/211205#M65548</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-12-02T15:34:11Z</dc:date>
    </item>
    <item>
      <title>Little Syntax trouble shorten names</title>
      <link>https://community.qlik.com/t5/QlikView/Little-Syntax-trouble-shorten-names/m-p/211206#M65549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx Jonathan, this works perfect!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 16:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Little-Syntax-trouble-shorten-names/m-p/211206#M65549</guid>
      <dc:creator />
      <dc:date>2010-12-02T16:33:48Z</dc:date>
    </item>
    <item>
      <title>Little Syntax trouble shorten names</title>
      <link>https://community.qlik.com/t5/QlikView/Little-Syntax-trouble-shorten-names/m-p/211207#M65550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got another one. It seems that I do not have 3 Regions but 4. The fourth is called Amsterdam (without the word Region). With the formula you gave me, I now only see Region Losser, Almelo and Enschede. The fouth one is missing. Is there a way to get it without naming it into the formula? I do not want to name it because in the futuren there will be more regions without the word Region.&lt;/P&gt;&lt;P&gt;thx in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 17:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Little-Syntax-trouble-shorten-names/m-p/211207#M65550</guid>
      <dc:creator />
      <dc:date>2010-12-02T17:17:24Z</dc:date>
    </item>
    <item>
      <title>Little Syntax trouble shorten names</title>
      <link>https://community.qlik.com/t5/QlikView/Little-Syntax-trouble-shorten-names/m-p/211208#M65551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;P&gt;Use this:&lt;/P&gt;&lt;P&gt;If (Trim([DTZC Region])= 'Region Losser', 'Losser',&lt;BR /&gt;If(Trim([DTZC Region])= 'Region Almelo', 'Almelo',&lt;BR /&gt;If(Trim([DTZC Region])= 'Region Enschede', 'Enschede',[DTZC Region])))&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 20:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Little-Syntax-trouble-shorten-names/m-p/211208#M65551</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-12-02T20:25:33Z</dc:date>
    </item>
    <item>
      <title>Little Syntax trouble shorten names</title>
      <link>https://community.qlik.com/t5/QlikView/Little-Syntax-trouble-shorten-names/m-p/211209#M65552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, if the field value is always "Region XXXX" there are other options&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;SubField(FIELD,' ',2) as [DTZC Region]&lt;/LI&gt;&lt;LI&gt;right(FIELD,Index(FIELD,' ',1)-1)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;just to expand the options &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 22:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Little-Syntax-trouble-shorten-names/m-p/211209#M65552</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2010-12-02T22:24:31Z</dc:date>
    </item>
  </channel>
</rss>

