<?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: Substr and Instr in Qlikview? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Substr-and-Instr-in-Qlikview/m-p/1206015#M462007</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;instead of the "literal" translation to QlikView functions you could implement this function like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14781267425477671 jive_text_macro" jivemacro_uid="_14781267425477671"&gt;
&lt;P&gt;Lower(Mid(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EMAIL_ADDRESS,Index(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EMAIL_ADDRESS,'@'&lt;/SPAN&gt;)&lt;/SPAN&gt;))&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;(using the 2 parameter version of the &lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/StringFunctions/Mid.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/StringFunctions/Mid.htm"&gt;Mid()&lt;/A&gt; function)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if there is always one '@':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14781268295184115 jive_text_macro" jivemacro_uid="_14781268295184115"&gt;
&lt;P&gt;Lower(SubField(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EMAIL_ADDRESS,'@',2&lt;/SPAN&gt;))&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(not including the '@' in the result, but you might rather be interested in the domain name anyway, if not just preced with '@'&amp;amp;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2016 22:48:58 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2016-11-02T22:48:58Z</dc:date>
    <item>
      <title>Substr and Instr in Qlikview?</title>
      <link>https://community.qlik.com/t5/QlikView/Substr-and-Instr-in-Qlikview/m-p/1206013#M462005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having a tough time translating this SQL function to work as a load in Qlikview:&lt;/P&gt;&lt;P&gt;lower(substr(EMAIL_ADDRESS,instr(EMAIL_ADDRESS,'@'),length(EMAIL_ADDRESS))) "Email Domain"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;essentially I'm loading just the @xxxxx.xxx of the email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 21:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substr-and-Instr-in-Qlikview/m-p/1206013#M462005</guid>
      <dc:creator />
      <dc:date>2016-11-02T21:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Substr and Instr in Qlikview?</title>
      <link>https://community.qlik.com/t5/QlikView/Substr-and-Instr-in-Qlikview/m-p/1206014#M462006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lower(mid(&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'alfa.beta@gmail.com"&gt;'alfa.beta@gmail.com&lt;/A&gt;&lt;SPAN&gt;', index('&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;alfa.beta&lt;/SPAN&gt;@gmail.com', '@'), len('&lt;SPAN style="font-size: 13.3333px;"&gt;alfa.beta&lt;/SPAN&gt;@gmail.com'))) as [Email Domain],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;A class="jive-link-email-small" href="mailto:'alfa.beta@gmail.com"&gt;'alfa.beta@gmail.com&lt;/A&gt;&lt;SPAN&gt;' with EMAIL_ADDRESS&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 22:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substr-and-Instr-in-Qlikview/m-p/1206014#M462006</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-11-02T22:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Substr and Instr in Qlikview?</title>
      <link>https://community.qlik.com/t5/QlikView/Substr-and-Instr-in-Qlikview/m-p/1206015#M462007</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;instead of the "literal" translation to QlikView functions you could implement this function like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14781267425477671 jive_text_macro" jivemacro_uid="_14781267425477671"&gt;
&lt;P&gt;Lower(Mid(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EMAIL_ADDRESS,Index(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EMAIL_ADDRESS,'@'&lt;/SPAN&gt;)&lt;/SPAN&gt;))&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;(using the 2 parameter version of the &lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/StringFunctions/Mid.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/StringFunctions/Mid.htm"&gt;Mid()&lt;/A&gt; function)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or if there is always one '@':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14781268295184115 jive_text_macro" jivemacro_uid="_14781268295184115"&gt;
&lt;P&gt;Lower(SubField(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;EMAIL_ADDRESS,'@',2&lt;/SPAN&gt;))&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(not including the '@' in the result, but you might rather be interested in the domain name anyway, if not just preced with '@'&amp;amp;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 22:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Substr-and-Instr-in-Qlikview/m-p/1206015#M462007</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-11-02T22:48:58Z</dc:date>
    </item>
  </channel>
</rss>

