<?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: Syntax Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945608#M325723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would be best if you can share 2-3 data lines. Also I notice you don't have a false condition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;if(len(Address2_Telephone1) &amp;gt;= 12,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Mid(Replace(Replace(Replace(Address2_Telephone1,' ',''),Chr(10),' '),Chr(13),' '),1,13)), &lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Address2_Telephone1&lt;/SPAN&gt;)&amp;nbsp; as New_Address2_Telephone1,&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Nov 2015 17:11:15 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-11-19T17:11:15Z</dc:date>
    <item>
      <title>Syntax Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945607#M325722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am having an issue with my syntax and was wondering if someone could help me.&amp;nbsp; I only want the first 13 positions.&amp;nbsp; What am I doing wrong?&amp;nbsp; Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(Address2_Telephone1) &amp;gt;= 12,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Mid(Replace(Replace(Replace(Address2_Telephone1,' ',''),Chr(10),' '),Chr(13),' '),1,13)))&amp;nbsp; as New_Address2_Telephone1,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 17:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945607#M325722</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2015-11-19T17:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945608#M325723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would be best if you can share 2-3 data lines. Also I notice you don't have a false condition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;if(len(Address2_Telephone1) &amp;gt;= 12,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Mid(Replace(Replace(Replace(Address2_Telephone1,' ',''),Chr(10),' '),Chr(13),' '),1,13)), &lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Address2_Telephone1&lt;/SPAN&gt;)&amp;nbsp; as New_Address2_Telephone1,&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 17:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945608#M325723</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-19T17:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945609#M325724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you also want to review your order of replace statements, maybe the replace of ' ' (space) with an empty string '' should be last when executing inner to outer Replace functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also want to consider using PurgeChar() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 17:16:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945609#M325724</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-19T17:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945610#M325725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the above syntax is giving me more than 13 positions in my output row.&amp;nbsp; Example: (330)876-5412x998&amp;nbsp; I only want the first 13 positions (330)876-5412.&amp;nbsp; Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 17:18:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945610#M325725</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2015-11-19T17:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945611#M325726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Address2_Telephone1&lt;/SPAN&gt;, 13) as &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Address2_Telephone1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 17:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945611#M325726</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-19T17:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945612#M325727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your original script seems to work for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;if(len(Address2_Telephone1) &amp;gt;= 12,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Mid(Replace(Replace(Replace(Address2_Telephone1,' ',''),Chr(10),' '),Chr(13),' '),1,13)))&amp;nbsp; as New_Address2_Telephone1;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Address2_Telephone1&lt;/P&gt;&lt;P&gt;(330)876-5412x998&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 17:27:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945612#M325727</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-19T17:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945613#M325728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't want the x998 at the end.&amp;nbsp; I only want this (330)876-5412&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 17:33:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945613#M325728</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2015-11-19T17:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945614#M325729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This isn't working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Left(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Address2_Telephone1&lt;/SPAN&gt;, 13) as &lt;/STRONG&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Address2_Telephone1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 17:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945614#M325729</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-19T17:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945615#M325730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left (keepchar (Address2_Telephone1&lt;/P&gt;&lt;P&gt;,'0123456789 ()-'),13) as New_Address2_Telephone1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 17:37:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945615#M325730</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-11-19T17:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945616#M325731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;I think if he does this, then may be just 10?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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="text-decoration: line-through;"&gt;left (keepchar (Address2_Telephone1&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="text-decoration: line-through;"&gt;,'0123456789 ()-'),&lt;STRONG&gt;10&lt;/STRONG&gt;) as New_Address2_Telephone1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 17:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945616#M325731</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-19T17:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945617#M325732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And this is exactely what I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;New_Address2_Telephone1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;(330)876-5412&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 17:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945617#M325732</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-19T17:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945618#M325733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I calculated including&amp;nbsp; ( ) -.&lt;/P&gt;&lt;P&gt;So, i think it would be 13..but not sure..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 17:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945618#M325733</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-11-19T17:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945619#M325734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I just didn't notice the ()-. You are right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 17:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-Problem/m-p/945619#M325734</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-19T17:54:28Z</dc:date>
    </item>
  </channel>
</rss>

