<?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 Get value between two special characters. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-value-between-two-special-characters/m-p/296334#M109906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quickest way i can think of is : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;subfield(subfield(&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'marguerite.e.sheehan@idea.com"&gt;'marguerite.e.sheehan@idea.com&lt;/A&gt;&lt;SPAN&gt;','.',3),'@',1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have Fun,&lt;/P&gt;&lt;P&gt;GM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Nov 2011 10:05:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-04T10:05:42Z</dc:date>
    <item>
      <title>Get value between two special characters.</title>
      <link>https://community.qlik.com/t5/QlikView/Get-value-between-two-special-characters/m-p/296333#M109905</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 table like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="35" style="width: 514px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" width="205"&gt;&lt;STRONG&gt;Emailid&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="117"&gt;&lt;STRONG&gt;First Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="192"&gt;&lt;STRONG&gt;Last Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: medium none;"&gt;&lt;A class="jive-link-email-small" href="mailto:marguerite.e.sheehan@idea.com"&gt;marguerite.e.sheehan@idea.com&lt;/A&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;Marguerite&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last Name may be blank sometimes, i need to find a formula which will say, if (Last Name is &lt;STRONG&gt;blank&lt;/STRONG&gt;, then Last Name should be from email id between '.' and '@')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem i have here is, the email id has middle name, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my output should look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 514px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="205"&gt;&lt;STRONG&gt;Emailid&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="117"&gt;&lt;STRONG&gt;First Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="192"&gt;&lt;STRONG&gt;Last Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt;&lt;A class="jive-link-email-small" href="mailto:marguerite.e.sheehan@idea.com"&gt;marguerite.e.sheehan@idea.com&lt;/A&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none; border-left: medium none;"&gt;Marguerite&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none; border-left: medium none;"&gt;Sheehan&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried something with subfield, but its not giving the right answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 10:02:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-value-between-two-special-characters/m-p/296333#M109905</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2011-11-04T10:02:39Z</dc:date>
    </item>
    <item>
      <title>Get value between two special characters.</title>
      <link>https://community.qlik.com/t5/QlikView/Get-value-between-two-special-characters/m-p/296334#M109906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quickest way i can think of is : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;subfield(subfield(&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'marguerite.e.sheehan@idea.com"&gt;'marguerite.e.sheehan@idea.com&lt;/A&gt;&lt;SPAN&gt;','.',3),'@',1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have Fun,&lt;/P&gt;&lt;P&gt;GM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 10:05:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-value-between-two-special-characters/m-p/296334#M109906</guid>
      <dc:creator />
      <dc:date>2011-11-04T10:05:42Z</dc:date>
    </item>
    <item>
      <title>Get value between two special characters.</title>
      <link>https://community.qlik.com/t5/QlikView/Get-value-between-two-special-characters/m-p/296335#M109907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this a bit shorter &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;textbetween(&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'marguerite.e.sheehan@idea.com"&gt;'marguerite.e.sheehan@idea.com&lt;/A&gt;&lt;SPAN&gt;','.','@',2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the name capitalized, use&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Capitalize(textbetween(&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'marguerite.e.sheehan@idea.com"&gt;'marguerite.e.sheehan@idea.com&lt;/A&gt;&lt;SPAN&gt;','.','@',2))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if you have records with middle name and some without, i.e. 1 or two occurences of '.' before the '@', use something like this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Capitalize(textbetween(&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'marguerite.e.sheehan@idea.com"&gt;'marguerite.e.sheehan@idea.com&lt;/A&gt;&lt;SPAN&gt;','.','@',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SubStringcount(left(&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'marguerite.e.sheehan@idea.com"&gt;'marguerite.e.sheehan@idea.com&lt;/A&gt;&lt;SPAN&gt;',index(&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'marguerite.e.sheehan@idea.com"&gt;'marguerite.e.sheehan@idea.com&lt;/A&gt;&lt;SPAN&gt;','@')),'.')))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Of course you should replace &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'marguerite.e.sheehan@idea.com"&gt;'marguerite.e.sheehan@idea.com&lt;/A&gt;&lt;SPAN&gt;' with your field name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 10:23:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-value-between-two-special-characters/m-p/296335#M109907</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-04T10:23:23Z</dc:date>
    </item>
  </channel>
</rss>

