<?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 Formula to extract last word in bracket() otherwise in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formula-to-extract-last-word-in-bracket-otherwise/m-p/184117#M49137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The following should work (in the script)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If(Len(TextBetween(GroupName, '(', ')')), TextBetween(GroupName, '(', ')'), GroupName) AS NewField&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Mar 2011 11:04:12 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-03-28T11:04:12Z</dc:date>
    <item>
      <title>Formula to extract last word in bracket() otherwise</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-to-extract-last-word-in-bracket-otherwise/m-p/184116#M49136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, does anyone know what expression i would use to achieve the following outcomes:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3947_sourceID:3947" /&gt;&lt;/P&gt;&lt;P&gt;Basically i want the expression to look at 'GroupName' and check if there is a name enclosed in brackets (), if so then return the name inside the brackets. Otherwise just give the name.&lt;/P&gt;&lt;P&gt;Regards???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 10:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-to-extract-last-word-in-bracket-otherwise/m-p/184116#M49136</guid>
      <dc:creator />
      <dc:date>2011-03-28T10:08:45Z</dc:date>
    </item>
    <item>
      <title>Formula to extract last word in bracket() otherwise</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-to-extract-last-word-in-bracket-otherwise/m-p/184117#M49137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The following should work (in the script)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If(Len(TextBetween(GroupName, '(', ')')), TextBetween(GroupName, '(', ')'), GroupName) AS NewField&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 11:04:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-to-extract-last-word-in-bracket-otherwise/m-p/184117#M49137</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-28T11:04:12Z</dc:date>
    </item>
  </channel>
</rss>

