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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Replacing String1 with String2

Hello everyone,

 

I am pretty much new here.

I have a sales data which is stored in Postgres at multiple servers. I have retrieved them all and then unite it using tUnite. In my sales data, there is a column called Category_Name which has values like Shirt, Tshirts, Jeans etc. Now the problem is in the database, there are entries like T-shirt, T_shirts and many more. So I want to convert all of them to Tshirt. How can I do that?

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hello,

row1.Category_Name.replaceAll("Shirt", "Tshirt")||row1.Category_Name.replaceAll("Jeans", "Tshirt")

The above would replace your values to Tshirt in your string "Category_Name" and you need to define manually in tMap component.

Let us know if it is OK with you.

Best regards

Sabrina