Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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
Partner - Creator III
Partner - Creator III

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
Partner - Creator III
Partner - Creator III

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