<?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: Extract name out of string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extract-name-out-of-string/m-p/1447584#M609532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this should work&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Trim(Mid(Name, Index(Name, '-', -2)-4))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Dec 2017 12:55:55 GMT</pubDate>
    <dc:creator>pradosh_thakur</dc:creator>
    <dc:date>2017-12-22T12:55:55Z</dc:date>
    <item>
      <title>Extract name out of string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-name-out-of-string/m-p/1447582#M609530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A follow-up from &lt;A _jive_internal="true" href="https://community.qlik.com/message/1377864#1377864" title="https://community.qlik.com/message/1377864#1377864"&gt;https://community.qlik.com/message/1377864#1377864&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to extract a ticket ID out of a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example strings:&lt;/P&gt;&lt;P&gt;CL AR 20171211 PHSCRC CA ADHOC Conversion Time Off - Diciembre 2017 #NMQ-644-92867&lt;/P&gt;&lt;P&gt;TicketID =&lt;SPAN style="font-size: 13.3333px;"&gt;#NMQ-644-92867&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL AR 20171211 PHSCRC CA ADHOC Conversion Time Off - Diciembre 2017 NMQ-644-92867&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TicketID = &lt;SPAN style="font-size: 13.3333px;"&gt;NMQ-644-92867&lt;/SPAN&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;CL RU 20161017 CRBCRC CA CLCP Welcome LGJ-309-18486&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TicketID = &lt;SPAN style="font-size: 13.3333px;"&gt;LGJ-309-18486&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL BG 20161121 CRBCRC CA CLCP Cross sell Black Friday Campaign&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TicketID = (BLANK)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is a ticketID it always placed at the end of the string and always consist out of:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;xxx-xxx-xxxxx&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;#&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;xxx-xxx-xxxxx&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Currently it almost works with the following function:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt; Trim(Mid(Name, Index(Name, '-')-4)) as Ticket,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;It almost works, if the '-' is also used before the ticketID it basically fails:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;CL AR 20171211 PHSCRC CA ADHOC Conversion Time Off - Diciembre 2017 #NMQ-644-92867&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Result TicketID = &lt;SPAN style="font-size: 13.3333px;"&gt;Off - Diciembre 2017 #NMQ-644-92867&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;While it should be: &lt;SPAN style="font-size: 13.3333px;"&gt;#NMQ-644-92867&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Anyone who has an idea for this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2017 12:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-name-out-of-string/m-p/1447582#M609530</guid>
      <dc:creator>twanqlik</dc:creator>
      <dc:date>2017-12-22T12:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Extract name out of string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-name-out-of-string/m-p/1447583#M609531</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;Trim(Mid(Name, Index(Name, '-', -2)-4))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2017 12:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-name-out-of-string/m-p/1447583#M609531</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-22T12:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extract name out of string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-name-out-of-string/m-p/1447584#M609532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this should work&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Trim(Mid(Name, Index(Name, '-', -2)-4))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2017 12:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-name-out-of-string/m-p/1447584#M609532</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2017-12-22T12:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extract name out of string</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-name-out-of-string/m-p/1447585#M609533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2017 13:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-name-out-of-string/m-p/1447585#M609533</guid>
      <dc:creator>twanqlik</dc:creator>
      <dc:date>2017-12-22T13:00:13Z</dc:date>
    </item>
  </channel>
</rss>

