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: 
beck_bakytbek
Master
Master

dynamic way of replacing

Hi Folks,

 

i got a question, are there any way to replace dynamically, for instance:

Fieldvalue:

1215_A12

Expected Output:

1215A12

 

I dont know whethere is that possible. Does anybody have any idea?

Thanks a lot in  advance

Beck

Labels (1)
2 Solutions

Accepted Solutions
MayilVahanan

Hi @beck_bakytbek 

Try like below

Replace(FieldName, '_', '') as FieldName

ex: Replace('1215_A12', '_', '') gives 1215A12

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

Taoufiq_Zarra

@beck_bakytbek like :

keepchar(Fieldvalue,'0123456789azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN') AS oUTPUTFIELD

 

?

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

4 Replies
MayilVahanan

Hi @beck_bakytbek 

Try like below

Replace(FieldName, '_', '') as FieldName

ex: Replace('1215_A12', '_', '') gives 1215A12

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Taoufiq_Zarra

@beck_bakytbek like :

keepchar(Fieldvalue,'0123456789azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN') AS oUTPUTFIELD

 

?

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
beck_bakytbek
Master
Master
Author

Hello Taoufiq_Zarra,

thanks a lot for your time and help

beck_bakytbek
Master
Master
Author

Hello MayilVahanan,

thanks a lot for your time and help