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: 
ali_hijazi
Partner - Master II
Partner - Master II

Help in eliminating character patterns

Hello
I'm reading data from database table
one of the fields has some of the following values:

  • xxx as EMP_NUM, MONTH_NUM, REGION, xxx as EMPH_KEY
  • EMP_NUM, MONTH_NUM, xxx as REGION, xxx as EMPH_KEY
  • PORTFOLIO, MONTH_NUM, EMPH_KEY
  • xxx as EMP_NUM, REGION

what I want to accomplish is the following:
I want to eliminate substrings that start with xxx
so the output for the above sample would be:

  • MONTH_NUM, REGION
  • EMP_NUM, MONTH_NUM
  • PORTFOLIO, MONTH_NUM, EMPH_KEY
  • REGION

how can I accomplish this in a tMap component?

so in summary I want to eliminate an substring that contains xxx as YYYY 

I can walk on water when it freezes
Labels (3)
1 Solution

Accepted Solutions
Shicong_Hong
Employee
Employee

@ali_hijazi You can process the data line by line as shown below, let me know if you have any questions/concerns.

2025-10-21_17-25-12.png

Detailed component settings:

2025-10-21_17-31-06.png2025-10-21_17-30-37.png2025-10-21_17-30-13.png2025-10-21_17-29-40.png2025-10-21_17-27-01.png2025-10-21_17-28-22.png

 

Regards

Shicong

 

View solution in original post

5 Replies
Vegar
MVP
MVP

Without knowing the syntax of Talend i suggest that you do this approach. 

Splitt each string by the comma and space (', '), filtering out any items that start with 'xxx as ', and then rejoining the remaining items.

 

If Talend have regex support, then I suppose that is a way forward to clear out the unwanted parts as well.

ali_hijazi
Partner - Master II
Partner - Master II
Author

I had this in mind
but I don't know how to use it in a tMap
you know in tMap component I'm dealing row by row 
so I need help in either RegEx or anyting else

I can walk on water when it freezes
Shicong_Hong
Employee
Employee

@ali_hijazi these values are in one line or there are 4 lines?

ali_hijazi
Partner - Master II
Partner - Master II
Author

the above sample data is 4 rows (lines)

I can walk on water when it freezes
Shicong_Hong
Employee
Employee

@ali_hijazi You can process the data line by line as shown below, let me know if you have any questions/concerns.

2025-10-21_17-25-12.png

Detailed component settings:

2025-10-21_17-31-06.png2025-10-21_17-30-37.png2025-10-21_17-30-13.png2025-10-21_17-29-40.png2025-10-21_17-27-01.png2025-10-21_17-28-22.png

 

Regards

Shicong