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

Announcements
Save an extra $150 Dec 1–7 with code CYBERWEEK - stackable with early bird savings: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Replace column value: project text

Hello!

I have a input table (Table 1) which has project_nr, period, year, project_name etc. The question is, I have to replace the project name with the newest name for all months for that project in Table 2. For example:

INPUT_TABLE (TABLE 1)    
Project number Period Year Project_Name
301-19 1 2019 ABC

Output table: (Expected)

Project number Period Year Project_Name
301-19 1 2019 ABC

Now in february 2019, the name changes for project 301-19, 

Input Table1:

Project number Period Year Project_Name
301-19 1 2019 ABC
301-19 2 2019 ABC_D

Expected output for Table2:

Project number Period Year Project_Name
301-19 1 2019 ABC_D
301-19 2 2019 ABC_D

Now there is a change in the name again in march 2019,

Input Table1:

Project number Period Year Project_Name
301-19 1 2019 ABC
301-19 2 2019 ABC_D
301-19 3 2019 DEF

Expected output for Table 2:

Project number Period Year Project_Name
301-19 1 2019 DEF
301-19 2 2019 DEF
301-19 3 2019 DEF

I am not able to get the exact code for string comparison. How can I solve this issue?

 

Regards

PV

Labels (1)
  • v7.x

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

 

   I believe you are looking for below solution.

0683p000009M8YI.png

 

Please refer the screen shots below for individual component details.

0683p000009M8YN.png

 

0683p000009M8YS.png

 

0683p000009M8YX.png

0683p000009M8N6.png

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Hi,

 

   I believe you are looking for below solution.

0683p000009M8YI.png

 

Please refer the screen shots below for individual component details.

0683p000009M8YN.png

 

0683p000009M8YS.png

 

0683p000009M8YX.png

0683p000009M8N6.png

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved