Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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.