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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Data cleaning before loading

Hello!

I have an issue in data. From one of the application I am loading project related information in DIM_PROJECT. But few columns has following format:

PROJECTNUMBER BUILDING
10001 ["New","Rehab","Annex"]
10002 ["New"]
10003 ["New","Rehab"]
10004 ["New"]
10005 ["Rehab","Vehicles"]

 

I want to remove this -- [""] from the values. 

PROJECTNUMBER BUILDING
10001 New,Rehab,Annex
10002 New
10003 New,Rehab
10004 New
10005 Rehab,Vehicles

 

How can I achieve this?

 

Regards

Priya

Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

This bit of code should work for you. It is using a standard piece of Java String manipulation. If your data is in a column called "data" from a row called "row1", your code would look like this...

 

row1.data.replaceAll("[\\[\\]\\\"]", "")

View solution in original post

2 Replies
Anonymous
Not applicable
Author

This bit of code should work for you. It is using a standard piece of Java String manipulation. If your data is in a column called "data" from a row called "row1", your code would look like this...

 

row1.data.replaceAll("[\\[\\]\\\"]", "")
Anonymous
Not applicable
Author

@rhall Thanks! That worked! 0683p000009MACn.png