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: 
dunnalahk123
Creator III
Creator III

How can i remove middle "-" in my value.

Hi,

Can some one help me , how can i remove hypen which i am getting in my value

For Example: i have value like 2017-11 but i want it in 201711

how can i remove that hypen in middle.

Best Regards,

Hk

1 Solution

Accepted Solutions
dionverbeke
Luminary Alumni
Luminary Alumni

replace() is your friend

or

subfield(f,'-',1) & subfield(f,'-',2)


or


left and right


Kind Regards,


Dion

View solution in original post

4 Replies
dionverbeke
Luminary Alumni
Luminary Alumni

replace() is your friend

or

subfield(f,'-',1) & subfield(f,'-',2)


or


left and right


Kind Regards,


Dion

Anil_Babu_Samineni

You can do like this?

Replace(FieldName, '-', '') as FieldName

Date(Date#(FieldName, 'YYYY-MM'), 'YYYYMM') as FieldName

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
dunnalahk123
Creator III
Creator III
Author

Hi All,

Thank You so Much 🙂

YoussefBelloum
Champion
Champion

Hi,

you can also use this:

PurgeChar(Field,'-') as Field