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: 
Not applicable

Formatting

I have a varchar2 field which is like 'abc-123-w312'.I want to dispaly it as ''abc123w312'.Kindly let me know what syntax needs to be used in the qV load to get this format.

Thanks,pooja

Labels (1)
5 Replies
Not applicable
Author

=replace('abc-123-w312','-','')

Please use this.

Not applicable
Author

Load

replace('Column','-','') as Column1

;

Anonymous
Not applicable
Author

Replace is fine. Another option is purgechar:
purgechar(FieldName, '-')

Not applicable
Author

Hi Pooja2010 ,

try like this..

LOAD

subfield(ColumnName,'-',1) & subfield(ColumnName,'-',2) & subfield(ColumnName,'-',3) as NewColumName

FROM SourceFile;

Not applicable
Author

Thanks all for your quick replies.wow..there are so many ways to do this.