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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Replace comma and the values subsequent with ""

I have a column (row1.Fruits_and_Veggies) which has values like

Tomatoes, Potatoes        ---------------------need------------------Tomatoes
Onions, Cabbages          ---------------------need------------------Onions
Oranges, Apples           ---------------------need------------------Oranges



I need to replace the comma and the rest of the string subsequent to the comma with a "" (empty string). How can I accomplish this in tMap.

row1.Fruits_and_Veggies.replace().
Labels (2)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

Hi,
Try 
row1.Fruits_and_Veggies.replaceAll(",.*$", "")

Hope this helps.
Regards,
TRF

View solution in original post

1 Reply
TRF
Champion II
Champion II

Hi,
Try 
row1.Fruits_and_Veggies.replaceAll(",.*$", "")

Hope this helps.
Regards,
TRF