<?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 Using if within the Load statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-if-within-the-Load-statement/m-p/229495#M81394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that the last bracket is too much, moreover you do not need to bracket the two IF-condition, thus think that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD&lt;BR /&gt; ..&lt;BR /&gt; // if (FindOneOf(PHONE, '@') &amp;gt; 0,&lt;BR /&gt; // e-mail&lt;BR /&gt; PHONE as [Main Contact],&lt;BR /&gt; // Phone Number or FAX&lt;BR /&gt; '+1 (' &amp;amp; Left(PHONE, 3) &amp;amp; ') ' &amp;amp; Mid(PHONE, 4, 3) &amp;amp; '-' &amp;amp; Right(PHONE, 4) as [Main Contact]),&lt;BR /&gt; ......&lt;BR /&gt;FROM .....&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Feb 2010 23:26:14 GMT</pubDate>
    <dc:creator>prieper</dc:creator>
    <dc:date>2010-02-02T23:26:14Z</dc:date>
    <item>
      <title>Using if within the Load statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-if-within-the-Load-statement/m-p/229493#M81392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a data field [PHONE] that contains phone numbers and e-mails. I need to format the phone # during the load and I was trying to use the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt; ..&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; if (FindOneOf(PHONE, '@') &amp;gt; 0,&lt;BR /&gt; // e-mail&lt;/P&gt;&lt;P&gt;(PHONE as [Main Contact]),&lt;/P&gt;&lt;P&gt;// Phone Number or FAX&lt;BR /&gt; ('+1 (' &amp;amp; Left(PHONE, 3) &amp;amp; ') ' &amp;amp; Mid(PHONE, 4, 3) &amp;amp; '-' &amp;amp; Right(PHONE, 4) as [Main Contact])),&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FROM&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;QV displays the error: "Error in expression: ')' expected" and I am not sure why.&lt;/P&gt;&lt;P&gt;I would appreciate an expert advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;VK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 23:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-if-within-the-Load-statement/m-p/229493#M81392</guid>
      <dc:creator />
      <dc:date>2010-02-02T23:14:24Z</dc:date>
    </item>
    <item>
      <title>Using if within the Load statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-if-within-the-Load-statement/m-p/229494#M81393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Vladimir.&lt;/P&gt;&lt;P&gt;Does this work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if (FindOneOf(PHONE, &lt;A href="mailto:'@'"&gt;'@'&lt;/A&gt;) &amp;gt; 0, PHONE, ('+1 (' &amp;amp; Left(PHONE, 3) &amp;amp; ') ' &amp;amp; Mid(PHONE, 4, 3) &amp;amp; '-' &amp;amp; Right(PHONE, 4))) as [Main Contact],&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 23:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-if-within-the-Load-statement/m-p/229494#M81393</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-02-02T23:24:28Z</dc:date>
    </item>
    <item>
      <title>Using if within the Load statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-if-within-the-Load-statement/m-p/229495#M81394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that the last bracket is too much, moreover you do not need to bracket the two IF-condition, thus think that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD&lt;BR /&gt; ..&lt;BR /&gt; // if (FindOneOf(PHONE, '@') &amp;gt; 0,&lt;BR /&gt; // e-mail&lt;BR /&gt; PHONE as [Main Contact],&lt;BR /&gt; // Phone Number or FAX&lt;BR /&gt; '+1 (' &amp;amp; Left(PHONE, 3) &amp;amp; ') ' &amp;amp; Mid(PHONE, 4, 3) &amp;amp; '-' &amp;amp; Right(PHONE, 4) as [Main Contact]),&lt;BR /&gt; ......&lt;BR /&gt;FROM .....&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 23:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-if-within-the-Load-statement/m-p/229495#M81394</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2010-02-02T23:26:14Z</dc:date>
    </item>
    <item>
      <title>Using if within the Load statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-if-within-the-Load-statement/m-p/229496#M81395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it works. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 23:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-if-within-the-Load-statement/m-p/229496#M81395</guid>
      <dc:creator />
      <dc:date>2010-02-02T23:49:21Z</dc:date>
    </item>
    <item>
      <title>Using if within the Load statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-if-within-the-Load-statement/m-p/229497#M81396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Peter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 23:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-if-within-the-Load-statement/m-p/229497#M81396</guid>
      <dc:creator />
      <dc:date>2010-02-02T23:50:24Z</dc:date>
    </item>
  </channel>
</rss>

