Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
tmumaw
Specialist II
Specialist II

Syntax Problem

Hello everyone,

I am having an issue with my syntax and was wondering if someone could help me.  I only want the first 13 positions.  What am I doing wrong?  Thanks

if(len(Address2_Telephone1) >= 12,

         (Mid(Replace(Replace(Replace(Address2_Telephone1,' ',''),Chr(10),' '),Chr(13),' '),1,13)))  as New_Address2_Telephone1,

Labels (1)
12 Replies
swuehl
Champion III
Champion III

And this is exactely what I get:

New_Address2_Telephone1
(330)876-5412
settu_periasamy
Master III
Master III

I calculated including  ( ) -.

So, i think it would be 13..but not sure..

sunny_talwar
MVP
MVP

Sorry I just didn't notice the ()-. You are right.