Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

String Column Value Formatting

Hi,

I have a column as in which values are coming like

AX0198

AX 023487

FEWEUYU

SDERV*

AXRTYU*


If column values start with 'AX' or/and ends with * then I want to remove 'AX' and * from the values.


Thanks,

Lico

1 Solution

Accepted Solutions
Not applicable
Author

Hi Lico,

Try this formula, instead of AX0198 just put the column name.

if(Left('AX0198',2)='AX' or Right('AX0198',1) = '*', mid('AX0198',3,len('AX0198')-1))

Hope it helps

View solution in original post

2 Replies
Not applicable
Author

Hi Lico,

Try this formula, instead of AX0198 just put the column name.

if(Left('AX0198',2)='AX' or Right('AX0198',1) = '*', mid('AX0198',3,len('AX0198')-1))

Hope it helps

Not applicable
Author

That definitly helped...Thank you. I had to use else_expr part of IF function in order to get the right result.