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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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,

12 Replies
swuehl
MVP
MVP

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

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